rpms/zlib/devel zlib.spec,1.32,1.33
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Tue Feb 20 12:58:53 UTC 2007
Author: atkac
Update of /cvs/dist/rpms/zlib/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv28737/zlib/devel
Modified Files:
zlib.spec
Log Message:
compilation is fully automatized
Index: zlib.spec
===================================================================
RCS file: /cvs/dist/rpms/zlib/devel/zlib.spec,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- zlib.spec 20 Feb 2007 10:32:33 -0000 1.32
+++ zlib.spec 20 Feb 2007 12:58:51 -0000 1.33
@@ -1,15 +1,17 @@
Summary: The zlib compression and deprefix=${RPM_BUILD_ROOT}%{_prefix}compression library
Name: zlib
Version: 1.2.3
-Release: 6%{?dist}
+Release: 7%{?dist}
Group: System Environment/Libraries
Source: http://www.zlib.net/zlib-%{version}.tar.gz
-Patch0: zlib-1.1.4-make-test.patch
-Patch1: zlib-1.2.3-cflags.patch
-Patch2: zlib-1.2.3-lib.patch
+#Patch0: zlib-1.1.4-make-test.patch
+#Patch1: zlib-1.2.3-cflags.patch
+#Patch2: zlib-1.2.3-lib.patch
+Patch3: zlib-1.2.3-autotools.patch
URL: http://www.gzip.org/zlib/
License: BSD
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires: automake, autoconf, libtool
%description
Zlib is a general-purpose, patent-free, lossless data compression
@@ -27,34 +29,33 @@
%prep
%setup -q
-%patch0 -p1 -b .make-test
-%patch1 -p1 -b .cflags
-%patch2 -p1 -b .lib
+#%patch0 -p1 -b .make-test
+#%patch1 -p1 -b .cflags
+#%patch2 -p1 -b .lib
+%patch3 -p1 -b .autotools
%build
-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
-
-# created Makefile for the static lib
-CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=${RPM_BUILD_ROOT}%{_prefix} \
- --libdir=${RPM_BUILD_ROOT}%{_libdir}
-mv Makefile Makefile.static
-
-make -f Makefile.shared
-make -f Makefile.static clean
-make -f Makefile.static
+
+autoreconf --install;
+%configure
+make %{?_smp_mflags}
%install
-make -f Makefile.shared install
-make -f Makefile.static install
-
-%check
-make -f Makefile.shared %{?_smp_mflags} test
-make -f Makefile.static %{?_smp_mflags} test
+rm -rf ${RPM_BUILD_ROOT}
+
+make install DESTDIR=$RPM_BUILD_ROOT
+mkdir -p ${RPM_BUILD_ROOT}%{_includedir}
+cp zconf.h ${RPM_BUILD_ROOT}%{_includedir}
+cp zlib.h ${RPM_BUILD_ROOT}%{_includedir}
+cp zutil.h ${RPM_BUILD_ROOT}%{_includedir}
+
+mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man3
+cp zlib.3 ${RPM_BUILD_ROOT}%{_mandir}/man3
+
+# Remove bogus files created by libtool
+rm -f $RPM_BUILD_ROOT%{_libdir}/libz.la
+
%clean
rm -rf ${RPM_BUILD_ROOT}
@@ -76,6 +77,10 @@
%{_mandir}/man3/zlib.3*
%changelog
+* Tue Feb 20 2007 Adam Tkac <atkac redhat com> - 1.2.3-7
+- building is now automatized
+- specfile cleanup
+
* Tue Feb 20 2007 Ivana Varekova <varekova at redhat.com> - 1.2.3-6
- remove the compilation part to build section
some minor changes
More information about the fedora-cvs-commits
mailing list