libpng/libpng.spec

121 lines
3.1 KiB
RPMSpec
Raw Normal View History

2019-09-30 10:57:37 -04:00
Name: libpng
Epoch: 2
2022-11-03 06:36:16 +00:00
Version: 1.6.38
Release: 1
2019-09-30 10:57:37 -04:00
Summary: A library of functions for manipulating PNG image format files
License: zlib
URL: http://www.libpng.org/pub/png/libpng.html
Source0: https://github.com/glennrp/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
Source1: pngusr.dfa
Patch0: libpng-multilib.patch
Patch1: libpng-fix-arm-neon.patch
2020-05-11 17:04:21 +08:00
Patch2: CVE-2019-6129.patch
2019-09-30 10:57:37 -04:00
BuildRequires: zlib-devel autoconf automake libtool
%description
The libpng package contains libraries used by other programs for reading and writing PNG format files.
The PNG format was designed as a replacement for GIF and, to a lesser extent, TIFF,
with many improvements and extensions and lack of patent problems.
%package devel
Summary: Development files for libpng
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release} zlib-devel%{?_isa} pkgconfig%{?_isa}
%description devel
The libpng-devel package contains libraries and header files for developing
applications that using the PNG library.
2021-12-25 16:46:50 +08:00
%package static
Summary: Static PNG image format file library
Requires: %{name}-devel%{?_isa} = %{epoch}:%{version}-%{release}
%description static
The libpng-static package contains the statically linkable version of libpng.
Linking to static libraries is discouraged for most applications, but it is
necessary for some boot packages.
%package tools
Summary: Tools for PNG image format file library
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
%description tools
The libpng-tools package contains tools used by the authors of libpng.
2019-09-30 10:57:37 -04:00
%package help
Summary: Help documents for libpng
%description help
This package contain the license files and help documents for libpng.
%prep
%autosetup -n %{name}-%{version} -p1
cp -p %{SOURCE1} .
%build
autoreconf -vif
%configure
%make_build DFA_XTRA=pngusr.dfa
%install
%make_install
rm -f %{buildroot}%{_libdir}/*.la
%check
make check
%ldconfig_post
%ldconfig_postun
%files
%{!?_licensedir:%global license %%doc}
%license LICENSE
%{_libdir}/libpng16.so.*
%files devel
%{_includedir}/*
%{_libdir}/libpng*.so
%{_libdir}/pkgconfig/libpng*.pc
2021-12-25 16:46:50 +08:00
%files static
%{_libdir}/libpng*.a
%files tools
%{_bindir}/*
2019-09-30 10:57:37 -04:00
%files help
%doc libpng-manual.txt example.c TODO CHANGES
%{_mandir}/man*/*
%changelog
2022-11-03 06:36:16 +00:00
* Thu Nov 03 2022 zhouwenpei <zhouwenpei1@h-partners.com> - 1.6.38-1
- update 1.6.38
2022-03-29 17:29:20 +08:00
* Tue Mar 29 2022 liuyumeng <liuyumeng5@h-partners.com> - 1.6.37-3
- enable test and fix failed tests
2021-12-25 16:46:50 +08:00
* Sat Dec 25 2021 hanhui <hanhui15@huawei.com> - 1.6.37-2
- DESC:split tools and static packages
2020-05-11 17:04:21 +08:00
* Mon May 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.6.37-1
- Type:requirement
- ID:NA
- SUG:NA
- DESC:update 1.6.37
2020-01-12 12:48:11 +08:00
* Sun Jan 12 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.6.36-4
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix cve
2020-01-03 09:39:32 +08:00
* Tue Dec 31 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.6.36-3
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:optimization the spec
2019-09-30 10:57:37 -04:00
* Wed Sep 18 2019 chenzhenyu <chenzhenyu13@huawei.com> - 1.6.36-2
- Package init