• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Name:           libpng
2Epoch:          2
3Version:        1.6.38
4Release:        2
5Summary:        A library of functions for manipulating PNG image format files
6License:        zlib
7URL:            http://www.libpng.org/pub/png/libpng.html
8Source0:        https://github.com/glennrp/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
9Source1:        pngusr.dfa
10
11Patch0:         libpng-multilib.patch
12Patch1:         libpng-fix-arm-neon.patch
13Patch2:         CVE-2019-6129.patch
14
15BuildRequires:  zlib-devel autoconf automake libtool
16
17%description
18The libpng package contains libraries used by other programs for reading and writing PNG format files.
19The PNG format was designed as a replacement for GIF and, to a lesser extent, TIFF,
20with many improvements and extensions and lack of patent problems.
21
22%package        devel
23Summary:        Development files for libpng
24Requires:       %{name}%{?_isa} = %{epoch}:%{version}-%{release} zlib-devel%{?_isa} pkgconfig%{?_isa}
25
26%description    devel
27The libpng-devel package contains libraries and header files for developing
28applications that using the PNG library.
29
30%package static
31Summary:       Static PNG image format file library
32Requires:      %{name}-devel%{?_isa} = %{epoch}:%{version}-%{release}
33
34%description static
35The libpng-static package contains the statically linkable version of libpng.
36Linking to static libraries is discouraged for most applications, but it is
37necessary for some boot packages.
38
39%package tools
40Summary:       Tools for PNG image format file library
41Requires:      %{name}%{?_isa} = %{epoch}:%{version}-%{release}
42
43%description tools
44The libpng-tools package contains tools used by the authors of libpng.
45
46%package        help
47Summary:        Help documents for libpng
48
49%description    help
50This package contain the license files and help documents for libpng.
51
52%prep
53%autosetup -n %{name}-%{version} -p1
54cp -p %{SOURCE1} .
55
56%build
57autoreconf -vif
58%configure
59%make_build DFA_XTRA=pngusr.dfa
60
61%install
62%make_install
63rm -f %{buildroot}%{_libdir}/*.la
64
65%check
66make check
67
68%ldconfig_post
69%ldconfig_postun
70
71%files
72%{!?_licensedir:%global license %%doc}
73%license LICENSE
74%{_libdir}/libpng16.so.*
75
76%files devel
77%{_includedir}/*
78%{_libdir}/libpng*.so
79%{_libdir}/pkgconfig/libpng*.pc
80
81%files static
82%{_libdir}/libpng*.a
83
84%files tools
85%{_bindir}/*
86
87%files help
88%doc libpng-manual.txt TODO CHANGES
89%{_mandir}/man*/*
90
91%changelog
92* Thu Dec 15 2022 zhouwenpei <zhouwenpei1@h-partners.com> - 1.6.38-2
93- remove example.c from help
94
95* Thu Nov 03 2022 zhouwenpei <zhouwenpei1@h-partners.com> - 1.6.38-1
96- update 1.6.38
97
98* Tue Mar 29 2022 liuyumeng <liuyumeng5@h-partners.com> - 1.6.37-3
99- enable test and fix failed tests
100
101* Sat Dec 25 2021 hanhui <hanhui15@huawei.com> - 1.6.37-2
102- DESC:split tools and static packages
103
104* Mon May 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.6.37-1
105- Type:requirement
106- ID:NA
107- SUG:NA
108- DESC:update 1.6.37
109
110* Sun Jan 12 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.6.36-4
111- Type:bugfix
112- ID:NA
113- SUG:NA
114- DESC:fix cve
115
116* Tue Dec 31 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.6.36-3
117- Type:bugfix
118- ID:NA
119- SUG:NA
120- DESC:optimization the spec
121
122* Wed Sep 18 2019 chenzhenyu <chenzhenyu13@huawei.com> - 1.6.36-2
123- Package init
124