15bec5421Sopenharmony_ciName: libpng 25bec5421Sopenharmony_ciEpoch: 2 35bec5421Sopenharmony_ciVersion: 1.6.38 45bec5421Sopenharmony_ciRelease: 2 55bec5421Sopenharmony_ciSummary: A library of functions for manipulating PNG image format files 65bec5421Sopenharmony_ciLicense: zlib 75bec5421Sopenharmony_ciURL: http://www.libpng.org/pub/png/libpng.html 85bec5421Sopenharmony_ciSource0: https://github.com/glennrp/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz 95bec5421Sopenharmony_ciSource1: pngusr.dfa 105bec5421Sopenharmony_ci 115bec5421Sopenharmony_ciPatch0: libpng-multilib.patch 125bec5421Sopenharmony_ciPatch1: libpng-fix-arm-neon.patch 135bec5421Sopenharmony_ciPatch2: CVE-2019-6129.patch 145bec5421Sopenharmony_ci 155bec5421Sopenharmony_ciBuildRequires: zlib-devel autoconf automake libtool 165bec5421Sopenharmony_ci 175bec5421Sopenharmony_ci%description 185bec5421Sopenharmony_ciThe libpng package contains libraries used by other programs for reading and writing PNG format files. 195bec5421Sopenharmony_ciThe PNG format was designed as a replacement for GIF and, to a lesser extent, TIFF, 205bec5421Sopenharmony_ciwith many improvements and extensions and lack of patent problems. 215bec5421Sopenharmony_ci 225bec5421Sopenharmony_ci%package devel 235bec5421Sopenharmony_ciSummary: Development files for libpng 245bec5421Sopenharmony_ciRequires: %{name}%{?_isa} = %{epoch}:%{version}-%{release} zlib-devel%{?_isa} pkgconfig%{?_isa} 255bec5421Sopenharmony_ci 265bec5421Sopenharmony_ci%description devel 275bec5421Sopenharmony_ciThe libpng-devel package contains libraries and header files for developing 285bec5421Sopenharmony_ciapplications that using the PNG library. 295bec5421Sopenharmony_ci 305bec5421Sopenharmony_ci%package static 315bec5421Sopenharmony_ciSummary: Static PNG image format file library 325bec5421Sopenharmony_ciRequires: %{name}-devel%{?_isa} = %{epoch}:%{version}-%{release} 335bec5421Sopenharmony_ci 345bec5421Sopenharmony_ci%description static 355bec5421Sopenharmony_ciThe libpng-static package contains the statically linkable version of libpng. 365bec5421Sopenharmony_ciLinking to static libraries is discouraged for most applications, but it is 375bec5421Sopenharmony_cinecessary for some boot packages. 385bec5421Sopenharmony_ci 395bec5421Sopenharmony_ci%package tools 405bec5421Sopenharmony_ciSummary: Tools for PNG image format file library 415bec5421Sopenharmony_ciRequires: %{name}%{?_isa} = %{epoch}:%{version}-%{release} 425bec5421Sopenharmony_ci 435bec5421Sopenharmony_ci%description tools 445bec5421Sopenharmony_ciThe libpng-tools package contains tools used by the authors of libpng. 455bec5421Sopenharmony_ci 465bec5421Sopenharmony_ci%package help 475bec5421Sopenharmony_ciSummary: Help documents for libpng 485bec5421Sopenharmony_ci 495bec5421Sopenharmony_ci%description help 505bec5421Sopenharmony_ciThis package contain the license files and help documents for libpng. 515bec5421Sopenharmony_ci 525bec5421Sopenharmony_ci%prep 535bec5421Sopenharmony_ci%autosetup -n %{name}-%{version} -p1 545bec5421Sopenharmony_cicp -p %{SOURCE1} . 555bec5421Sopenharmony_ci 565bec5421Sopenharmony_ci%build 575bec5421Sopenharmony_ciautoreconf -vif 585bec5421Sopenharmony_ci%configure 595bec5421Sopenharmony_ci%make_build DFA_XTRA=pngusr.dfa 605bec5421Sopenharmony_ci 615bec5421Sopenharmony_ci%install 625bec5421Sopenharmony_ci%make_install 635bec5421Sopenharmony_cirm -f %{buildroot}%{_libdir}/*.la 645bec5421Sopenharmony_ci 655bec5421Sopenharmony_ci%check 665bec5421Sopenharmony_cimake check 675bec5421Sopenharmony_ci 685bec5421Sopenharmony_ci%ldconfig_post 695bec5421Sopenharmony_ci%ldconfig_postun 705bec5421Sopenharmony_ci 715bec5421Sopenharmony_ci%files 725bec5421Sopenharmony_ci%{!?_licensedir:%global license %%doc} 735bec5421Sopenharmony_ci%license LICENSE 745bec5421Sopenharmony_ci%{_libdir}/libpng16.so.* 755bec5421Sopenharmony_ci 765bec5421Sopenharmony_ci%files devel 775bec5421Sopenharmony_ci%{_includedir}/* 785bec5421Sopenharmony_ci%{_libdir}/libpng*.so 795bec5421Sopenharmony_ci%{_libdir}/pkgconfig/libpng*.pc 805bec5421Sopenharmony_ci 815bec5421Sopenharmony_ci%files static 825bec5421Sopenharmony_ci%{_libdir}/libpng*.a 835bec5421Sopenharmony_ci 845bec5421Sopenharmony_ci%files tools 855bec5421Sopenharmony_ci%{_bindir}/* 865bec5421Sopenharmony_ci 875bec5421Sopenharmony_ci%files help 885bec5421Sopenharmony_ci%doc libpng-manual.txt TODO CHANGES 895bec5421Sopenharmony_ci%{_mandir}/man*/* 905bec5421Sopenharmony_ci 915bec5421Sopenharmony_ci%changelog 925bec5421Sopenharmony_ci* Thu Dec 15 2022 zhouwenpei <zhouwenpei1@h-partners.com> - 1.6.38-2 935bec5421Sopenharmony_ci- remove example.c from help 945bec5421Sopenharmony_ci 955bec5421Sopenharmony_ci* Thu Nov 03 2022 zhouwenpei <zhouwenpei1@h-partners.com> - 1.6.38-1 965bec5421Sopenharmony_ci- update 1.6.38 975bec5421Sopenharmony_ci 985bec5421Sopenharmony_ci* Tue Mar 29 2022 liuyumeng <liuyumeng5@h-partners.com> - 1.6.37-3 995bec5421Sopenharmony_ci- enable test and fix failed tests 1005bec5421Sopenharmony_ci 1015bec5421Sopenharmony_ci* Sat Dec 25 2021 hanhui <hanhui15@huawei.com> - 1.6.37-2 1025bec5421Sopenharmony_ci- DESC:split tools and static packages 1035bec5421Sopenharmony_ci 1045bec5421Sopenharmony_ci* Mon May 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.6.37-1 1055bec5421Sopenharmony_ci- Type:requirement 1065bec5421Sopenharmony_ci- ID:NA 1075bec5421Sopenharmony_ci- SUG:NA 1085bec5421Sopenharmony_ci- DESC:update 1.6.37 1095bec5421Sopenharmony_ci 1105bec5421Sopenharmony_ci* Sun Jan 12 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.6.36-4 1115bec5421Sopenharmony_ci- Type:bugfix 1125bec5421Sopenharmony_ci- ID:NA 1135bec5421Sopenharmony_ci- SUG:NA 1145bec5421Sopenharmony_ci- DESC:fix cve 1155bec5421Sopenharmony_ci 1165bec5421Sopenharmony_ci* Tue Dec 31 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.6.36-3 1175bec5421Sopenharmony_ci- Type:bugfix 1185bec5421Sopenharmony_ci- ID:NA 1195bec5421Sopenharmony_ci- SUG:NA 1205bec5421Sopenharmony_ci- DESC:optimization the spec 1215bec5421Sopenharmony_ci 1225bec5421Sopenharmony_ci* Wed Sep 18 2019 chenzhenyu <chenzhenyu13@huawei.com> - 1.6.36-2 1235bec5421Sopenharmony_ci- Package init 124