rpms/adns/FC-5 adns.spec,1.7,1.8

Mihai Ibanescu (misa) fedora-extras-commits at redhat.com
Tue May 9 14:35:52 UTC 2006


Author: misa

Update of /cvs/extras/rpms/adns/FC-5
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv13006

Modified Files:
	adns.spec 
Log Message:
More work done - added -fPIC, removed DESTDIR patch


Index: adns.spec
===================================================================
RCS file: /cvs/extras/rpms/adns/FC-5/adns.spec,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- adns.spec	8 May 2006 17:50:06 -0000	1.7
+++ adns.spec	9 May 2006 14:35:52 -0000	1.8
@@ -1,6 +1,6 @@
 Name:		adns
 Version:	1.2
-Release:	1
+Release:	2
 
 Summary:	Advanced, easy to use, asynchronous-capable DNS client library
 
@@ -8,7 +8,6 @@
 License:	GPL
 URL:		http://www.chiark.greenend.org.uk/~ian/adns/
 Source0:        ftp://ftp.chiark.greenend.org.uk/users/ian/adns/%{name}-%{version}.tar.gz
-Patch0:		%{name}-DESTDIR.patch
 Patch1:         %{name}-ac_fix.patch
 Patch2:         %{name}-autoconf-noexpand.patch
 #BuildRequires:	autoconf
@@ -71,20 +70,23 @@
 
 %prep
 %setup -q
-%patch0 -p1 -b .destdir
 %patch1 -p1 -b .ac_fix
 %patch2 -p1 -b .noexpand
 
 %build
 #aclocal
 #%{__autoconf}
+export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -fPIC"
 %configure --enable-dynamic
 make %{?_smp_mflags}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
-ln -sf libadns.so.1.0 $RPM_BUILD_ROOT%{_libdir}/libadns.so
+make install \
+    prefix=$RPM_BUILD_ROOT/usr \
+    bin_dir=$RPM_BUILD_ROOT%{_bindir} \
+    include_dir=$RPM_BUILD_ROOT%{_includedir} \
+    lib_dir=$RPM_BUILD_ROOT%{_libdir}
 
 %clean
 rm -fr $RPM_BUILD_ROOT
@@ -108,6 +110,11 @@
 %attr(755,root,root) %{_bindir}/*
 
 %changelog
+* Tue May  9 2006 Mihai Ibanescu <misa[AT]redhat.com> 1.2-2
+- Dropped the DESTDIR patch since it was not accepted upstream.
+- Added -fPIC in the compiled flags, otherwise we won't be able to link
+  against this library.
+
 * Mon May  8 2006 Mihai Ibanescu <misa[AT]redhat.com> 1.2-1
 - Updated to 1.2, some of the patches were already upstream
 - Removed dependency on autoconf/automake since it builds just fine without




More information about the scm-commits mailing list