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