- separate static subpackage

This commit is contained in:
Ivana Varekova 2007-11-14 15:30:48 +00:00
parent 34f1e9dbde
commit ff254449b6

View File

@ -1,7 +1,7 @@
Summary: The zlib compression and decompression library Summary: The zlib compression and decompression library
Name: zlib Name: zlib
Version: 1.2.3 Version: 1.2.3
Release: 14%{?dist} Release: 15%{?dist}
Group: System Environment/Libraries Group: System Environment/Libraries
Source: http://www.zlib.net/zlib-%{version}.tar.gz Source: http://www.zlib.net/zlib-%{version}.tar.gz
Patch3: zlib-1.2.3-autotools.patch Patch3: zlib-1.2.3-autotools.patch
@ -18,13 +18,23 @@ library which is used by many different programs.
%package devel %package devel
Summary: Header files and libraries for Zlib development Summary: Header files and libraries for Zlib development
Group: Development/Libraries Group: Development/Libraries
Requires: zlib = %{version}-%{release} Requires: %{name} = %{version}-%{release}
%description devel %description devel
The zlib-devel package contains the header files and libraries needed The zlib-devel package contains the header files and libraries needed
to develop programs that use the zlib compression and decompression to develop programs that use the zlib compression and decompression
library. library.
%package static
Summary: Static libraries for Zlib development
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
%description static
The zlib-static package includes static libraries needed
to develop programs that use the zlib compression and
decompression library.
%package -n minizip %package -n minizip
Summary: Minizip manipulates files from a .zip archive Summary: Minizip manipulates files from a .zip archive
Group: System Environment/Libraries Group: System Environment/Libraries
@ -49,7 +59,6 @@ developing applications which use minizip.
%patch4 -p1 -b .autotools2 %patch4 -p1 -b .autotools2
%build %build
make %{?_smp_mflags}
autoreconf --install; autoreconf --install;
%configure %configure
make %{?_smp_mflags} make %{?_smp_mflags}
@ -110,12 +119,16 @@ rm -rf ${RPM_BUILD_ROOT}
%files devel %files devel
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc algorithm.txt minigzip.c example.c %doc README algorithm.txt minigzip.c example.c
%{_libdir}/libz.a
%{_libdir}/libz.so %{_libdir}/libz.so
%{_includedir}/* %{_includedir}/*
%{_mandir}/man3/zlib.3* %{_mandir}/man3/zlib.3*
%files static
%defattr(-,root,root,-)
%doc README
%{_libdir}/libz.a
%files -n minizip %files -n minizip
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc contrib/minizip/ChangeLogUnzip %doc contrib/minizip/ChangeLogUnzip
@ -127,6 +140,9 @@ rm -rf ${RPM_BUILD_ROOT}
%{_libdir}/pkgconfig/minizip.pc %{_libdir}/pkgconfig/minizip.pc
%changelog %changelog
* Wed Nov 14 2007 Ivana Varekova <varekova@redhat.com> - 1.2.3-15
- separate static subpackage
* Wed Aug 15 2007 Ivana Varekova <varekova@redhat.com> - 1.2.3-14 * Wed Aug 15 2007 Ivana Varekova <varekova@redhat.com> - 1.2.3-14
- create minizip subpackage - create minizip subpackage