- remove minizip headers to minizip-devel
- spec file cleanup - fix minizip.pc file
This commit is contained in:
parent
ff254449b6
commit
ea1725f73c
12
zlib-1.2.3-minizip.patch
Normal file
12
zlib-1.2.3-minizip.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -up zlib-1.2.3/contrib/minizip/minizip.pc.in.pom zlib-1.2.3/contrib/minizip/minizip.pc.in
|
||||||
|
--- zlib-1.2.3/contrib/minizip/minizip.pc.in.pom 2007-11-23 11:00:38.000000000 +0100
|
||||||
|
+++ zlib-1.2.3/contrib/minizip/minizip.pc.in 2007-11-23 11:01:37.000000000 +0100
|
||||||
|
@@ -1,7 +1,7 @@
|
||||||
|
prefix=@prefix@
|
||||||
|
exec_prefix=@exec_prefix@
|
||||||
|
libdir=@libdir@
|
||||||
|
-includedir=@includedir@
|
||||||
|
+includedir=@includedir@/minizip
|
||||||
|
|
||||||
|
Name: @PACKAGE_NAME@
|
||||||
|
Description: Minizip zip file manipulation library
|
19
zlib.spec
19
zlib.spec
@ -1,11 +1,12 @@
|
|||||||
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: 15%{?dist}
|
Release: 16%{?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
|
||||||
Patch4: minizip-1.2.3-autotools.patch
|
Patch4: minizip-1.2.3-autotools.patch
|
||||||
|
Patch5: zlib-1.2.3-minizip.patch
|
||||||
URL: http://www.gzip.org/zlib/
|
URL: http://www.gzip.org/zlib/
|
||||||
License: BSD
|
License: BSD
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
@ -41,13 +42,14 @@ Group: System Environment/Libraries
|
|||||||
Requires: zlib = %{version}-%{release}
|
Requires: zlib = %{version}-%{release}
|
||||||
|
|
||||||
%description -n minizip
|
%description -n minizip
|
||||||
Minizip manipulates files from a .zip archive
|
Minizip manipulates files from a .zip archive.
|
||||||
|
|
||||||
%package -n minizip-devel
|
%package -n minizip-devel
|
||||||
Summary: Development files for the minizip library
|
Summary: Development files for the minizip library
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: minizip = %{version}-%{release}
|
Requires: minizip = %{version}-%{release}
|
||||||
Requires: zlib-devel = %{version}-%{release}
|
Requires: zlib-devel = %{version}-%{release}
|
||||||
|
Requires: pkgconfig
|
||||||
|
|
||||||
%description -n minizip-devel
|
%description -n minizip-devel
|
||||||
This package contains the libraries and header files needed for
|
This package contains the libraries and header files needed for
|
||||||
@ -57,6 +59,7 @@ developing applications which use minizip.
|
|||||||
%setup -q
|
%setup -q
|
||||||
%patch3 -p1 -b .autotools
|
%patch3 -p1 -b .autotools
|
||||||
%patch4 -p1 -b .autotools2
|
%patch4 -p1 -b .autotools2
|
||||||
|
%patch5 -p1 -b .inc
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf --install;
|
autoreconf --install;
|
||||||
@ -95,7 +98,7 @@ rm -f $RPM_BUILD_ROOT/%{_lib}/libz.la
|
|||||||
# install minizip subpackage
|
# install minizip subpackage
|
||||||
cd contrib/minizip
|
cd contrib/minizip
|
||||||
|
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
|
||||||
rm -f $RPM_BUILD_ROOT/%{_bindir}/miniunzip
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/miniunzip
|
||||||
rm -f $RPM_BUILD_ROOT/%{_bindir}/minizip
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/minizip
|
||||||
rm -f $RPM_BUILD_ROOT/%{_libdir}/libminizip.la
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/libminizip.la
|
||||||
@ -121,7 +124,8 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc README algorithm.txt minigzip.c example.c
|
%doc README algorithm.txt minigzip.c example.c
|
||||||
%{_libdir}/libz.so
|
%{_libdir}/libz.so
|
||||||
%{_includedir}/*
|
%{_includedir}/zconf.h
|
||||||
|
%{_includedir}/zlib.h
|
||||||
%{_mandir}/man3/zlib.3*
|
%{_mandir}/man3/zlib.3*
|
||||||
|
|
||||||
%files static
|
%files static
|
||||||
@ -136,10 +140,17 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||||||
|
|
||||||
%files -n minizip-devel
|
%files -n minizip-devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
%dir %{_includedir}/minizip
|
||||||
|
%{_includedir}/minizip/*.h
|
||||||
%{_libdir}/libminizip.so
|
%{_libdir}/libminizip.so
|
||||||
%{_libdir}/pkgconfig/minizip.pc
|
%{_libdir}/pkgconfig/minizip.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Nov 23 2007 Ivana Varekova <varekova@redhat.com> - 1.2.3-16
|
||||||
|
- remove minizip headers to minizip-devel
|
||||||
|
- spec file cleanup
|
||||||
|
- fix minizip.pc file
|
||||||
|
|
||||||
* Wed Nov 14 2007 Ivana Varekova <varekova@redhat.com> - 1.2.3-15
|
* Wed Nov 14 2007 Ivana Varekova <varekova@redhat.com> - 1.2.3-15
|
||||||
- separate static subpackage
|
- separate static subpackage
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user