From 915af8f305d7125dceae92ce39715f15a5c4d254 Mon Sep 17 00:00:00 2001 From: shirely16 Date: Sat, 25 Dec 2021 16:46:50 +0800 Subject: [PATCH] split tools and static packages --- libpng.spec | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/libpng.spec b/libpng.spec index c2a2668..8af57ad 100644 --- a/libpng.spec +++ b/libpng.spec @@ -1,7 +1,7 @@ Name: libpng Epoch: 2 Version: 1.6.37 -Release: 1 +Release: 2 Summary: A library of functions for manipulating PNG image format files License: zlib URL: http://www.libpng.org/pub/png/libpng.html @@ -13,8 +13,6 @@ Patch1: libpng-fix-arm-neon.patch Patch2: CVE-2019-6129.patch BuildRequires: zlib-devel autoconf automake libtool -Provides: libpng-tools -Obsoletes: libpng-tools %description The libpng package contains libraries used by other programs for reading and writing PNG format files. @@ -25,13 +23,26 @@ with many improvements and extensions and lack of patent problems. Summary: Development files for libpng Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release} zlib-devel%{?_isa} pkgconfig%{?_isa} -Provides: libpng-static -Obsoletes: libpng-static - %description devel The libpng-devel package contains libraries and header files for developing applications that using the PNG library. +%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. + %package help Summary: Help documents for libpng @@ -65,17 +76,24 @@ make check %{_libdir}/libpng16.so.* %files devel -%{_bindir}/* %{_includedir}/* %{_libdir}/libpng*.so -%{_libdir}/libpng*.a %{_libdir}/pkgconfig/libpng*.pc +%files static +%{_libdir}/libpng*.a + +%files tools +%{_bindir}/* + %files help %doc libpng-manual.txt example.c TODO CHANGES %{_mandir}/man*/* %changelog +* Sat Dec 25 2021 hanhui - 1.6.37-2 +- DESC:split tools and static packages + * Mon May 11 2020 openEuler Buildteam - 1.6.37-1 - Type:requirement - ID:NA -- Gitee