This commit is contained in:
parent
c339ac5fd4
commit
2dab7424f6
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Mar 21 16:23:42 CET 2009 - crrodriguez@suse.de
|
||||||
|
|
||||||
|
- there is one valid use case of static zlib in "qemu" package
|
||||||
|
split a -devel-static subpackage, please do not BuildRequire
|
||||||
|
this package unless you are 100% sure you need it, if in doubt
|
||||||
|
mail either the security team or me.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Feb 27 19:58:04 CET 2009 - crrodriguez@suse.de
|
Fri Feb 27 19:58:04 CET 2009 - crrodriguez@suse.de
|
||||||
|
|
||||||
|
32
zlib.spec
32
zlib.spec
@ -30,7 +30,7 @@ Obsoletes: zlib-64bit
|
|||||||
%endif
|
%endif
|
||||||
#
|
#
|
||||||
Version: 1.2.3
|
Version: 1.2.3
|
||||||
Release: 137
|
Release: 138
|
||||||
Summary: Data Compression Library
|
Summary: Data Compression Library
|
||||||
Source: zlib-%{version}.tar.bz2
|
Source: zlib-%{version}.tar.bz2
|
||||||
Patch: zlib-1.2.1-make-test.patch
|
Patch: zlib-1.2.1-make-test.patch
|
||||||
@ -74,6 +74,20 @@ libraries.
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
%package devel-static
|
||||||
|
License: Other uncritical OpenSource License
|
||||||
|
Summary: Include Files and Libraries mandatory for Development
|
||||||
|
Group: Development/Languages/C and C++
|
||||||
|
Provides: %{name}-devel:%{_libdir}/libz.a
|
||||||
|
Requires: %{name}-devel = %{version}
|
||||||
|
|
||||||
|
%description devel-static
|
||||||
|
This package contains all necessary include files and libraries needed
|
||||||
|
to develop applications that require the provided includes and
|
||||||
|
libraries.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch -p1
|
%patch -p1
|
||||||
@ -99,8 +113,8 @@ make install \
|
|||||||
%{__ln_s} -v /%{_lib}/$(readlink %{buildroot}/%{_lib}/libz.so) %{buildroot}%{_libdir}/libz.so
|
%{__ln_s} -v /%{_lib}/$(readlink %{buildroot}/%{_lib}/libz.so) %{buildroot}%{_libdir}/libz.so
|
||||||
%{__rm} -v %{buildroot}/%{_lib}/libz.so
|
%{__rm} -v %{buildroot}/%{_lib}/libz.so
|
||||||
# static lib
|
# static lib
|
||||||
#make libz.a
|
make libz.a
|
||||||
#install -m 644 libz.a $RPM_BUILD_ROOT/usr/%{_lib}
|
install -m 644 libz.a $RPM_BUILD_ROOT/%{_libdir}
|
||||||
# manpage
|
# manpage
|
||||||
install -m 644 zlib.3 $RPM_BUILD_ROOT/%{_mandir}/man3
|
install -m 644 zlib.3 $RPM_BUILD_ROOT/%{_mandir}/man3
|
||||||
install -m 644 zutil.h $RPM_BUILD_ROOT%{_includedir}
|
install -m 644 zutil.h $RPM_BUILD_ROOT%{_includedir}
|
||||||
@ -124,10 +138,18 @@ rm -rf %{buildroot}
|
|||||||
/usr/include/zlib.h
|
/usr/include/zlib.h
|
||||||
/usr/include/zconf.h
|
/usr/include/zconf.h
|
||||||
/usr/include/zutil.h
|
/usr/include/zutil.h
|
||||||
/usr/%{_lib}/libz.so
|
%{_libdir}/libz.so
|
||||||
#/usr/%{_lib}/libz.a
|
|
||||||
|
%files devel-static
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_libdir}/libz.a
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Mar 21 2009 crrodriguez@suse.de
|
||||||
|
- there is one valid use case of static zlib in "qemu" package
|
||||||
|
split a -devel-static subpackage, please do not BuildRequire
|
||||||
|
this package unless you are 100%% sure you need it, if in doubt
|
||||||
|
mail either the security team or me.
|
||||||
* Fri Feb 27 2009 crrodriguez@suse.de
|
* Fri Feb 27 2009 crrodriguez@suse.de
|
||||||
- add patch from gentoo that makes zlib to only export
|
- add patch from gentoo that makes zlib to only export
|
||||||
its public API using GCC visibility features, this will
|
its public API using GCC visibility features, this will
|
||||||
|
Loading…
Reference in New Issue
Block a user