- remove the compilation part to build section some minor changes
This commit is contained in:
parent
efc80efeb7
commit
d44953292a
29
zlib.spec
29
zlib.spec
@ -1,7 +1,7 @@
|
|||||||
Summary: The zlib compression and decompression library
|
Summary: The zlib compression and deprefix=${RPM_BUILD_ROOT}%{_prefix}compression library
|
||||||
Name: zlib
|
Name: zlib
|
||||||
Version: 1.2.3
|
Version: 1.2.3
|
||||||
Release: 5%{?dist}
|
Release: 6%{?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
|
||||||
Patch0: zlib-1.1.4-make-test.patch
|
Patch0: zlib-1.1.4-make-test.patch
|
||||||
@ -9,7 +9,6 @@ Patch1: zlib-1.2.3-cflags.patch
|
|||||||
Patch2: zlib-1.2.3-lib.patch
|
Patch2: zlib-1.2.3-lib.patch
|
||||||
URL: http://www.gzip.org/zlib/
|
URL: http://www.gzip.org/zlib/
|
||||||
License: BSD
|
License: BSD
|
||||||
Prefix: %{_prefix}
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -33,19 +32,25 @@ library.
|
|||||||
%patch2 -p1 -b .lib
|
%patch2 -p1 -b .lib
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="$RPM_OPT_FLAGS -fPIC" ./configure --shared --prefix=%{_prefix}
|
rm -rf ${RPM_BUILD_ROOT}
|
||||||
|
# created Makefile for the shared lib
|
||||||
|
CFLAGS="$RPM_OPT_FLAGS -fPIC" ./configure --shared --prefix=${RPM_BUILD_ROOT}%{_prefix} \
|
||||||
|
--libdir=${RPM_BUILD_ROOT}%{_libdir}
|
||||||
mv Makefile Makefile.shared
|
mv Makefile Makefile.shared
|
||||||
|
|
||||||
# created Makefile for the static lib
|
# created Makefile for the static lib
|
||||||
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix}
|
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=${RPM_BUILD_ROOT}%{_prefix} \
|
||||||
|
--libdir=${RPM_BUILD_ROOT}%{_libdir}
|
||||||
mv Makefile Makefile.static
|
mv Makefile Makefile.static
|
||||||
|
|
||||||
|
make -f Makefile.shared
|
||||||
|
make -f Makefile.static clean
|
||||||
|
make -f Makefile.static
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf ${RPM_BUILD_ROOT}
|
make -f Makefile.shared install
|
||||||
|
make -f Makefile.static install
|
||||||
make -f Makefile.shared install prefix=${RPM_BUILD_ROOT}%{_prefix}
|
|
||||||
make -f Makefile.static install prefix=${RPM_BUILD_ROOT}%{_prefix}
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make -f Makefile.shared %{?_smp_mflags} test
|
make -f Makefile.shared %{?_smp_mflags} test
|
||||||
make -f Makefile.static %{?_smp_mflags} test
|
make -f Makefile.static %{?_smp_mflags} test
|
||||||
@ -71,6 +76,10 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||||||
%{_mandir}/man3/zlib.3*
|
%{_mandir}/man3/zlib.3*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Feb 20 2007 Ivana Varekova <varekova@redhat.com> - 1.2.3-6
|
||||||
|
- remove the compilation part to build section
|
||||||
|
some minor changes
|
||||||
|
|
||||||
* Mon Feb 19 2007 Ivana Varekova <varekova@redhat.com> - 1.2.3-5
|
* Mon Feb 19 2007 Ivana Varekova <varekova@redhat.com> - 1.2.3-5
|
||||||
- incorporate package review feedback
|
- incorporate package review feedback
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user