mydns.spec

Darek Moszkowicz mospanek at interia.pl
Fri Sep 12 17:14:19 CEST 2008


Sławomir Paszkiewicz wrote:
> Jak wysylasz poprawke do istniejacego speca, to wysylaj diff, a nie caly 
> spec, bo wtedy latwiej jest nam to przejrzec i dac ewentualne wskazowki
ok, przesylam wiec diff do weryfykacji
dzieki


----------------------------------------------------------------------
>> Sprawdz swoja najblizsza przyszlosc!
>> http://link.interia.pl/f1f0b   
-------------- next part --------------
--- mydns.spec.	2008-09-11 20:11:16.113430185 -0500
+++ mydns.spec	2008-09-11 23:29:17.199269012 -0500
@@ -18,7 +18,7 @@
 Source1:	%{name}.conf
 Source2:	%{name}.init
 Source3:	%{name}.sysconfig
-Patch0:		%{name}-configure.patch
+Patch0:		%{name}-m4.patch
 URL:		http://mydns.bboy.net/
 BuildRequires:	autoconf >= 2.59
 BuildRequires:	automake >= 1:1.9.6
@@ -48,8 +48,14 @@
 %patch0 -p1
 
 %build
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoheader}
+%{__automake}
+%{__autoconf}
 %configure \
 	--disable-nls \
+	--disable-dependency-tracking \
 	--with-confdir=%{_sysconfdir}/%{name} \
 	--with%{?with_mysql:out}-pgsql \
 	--with%{?with_pgsql:out}-mysql \

-------------- next part --------------
diff -urN mydns-1.1.0-org/configure.ac mydns-1.1.0/configure.ac
--- mydns-1.1.0-org/configure.ac	2005-04-21 11:40:13.000000000 -0500
+++ mydns-1.1.0/configure.ac	2008-09-09 17:13:24.000000000 -0500
@@ -21,6 +21,7 @@
 AC_INIT(mydns, [1.1.0], [bboy at bboy.net])		## Package name, version, bugreport address
 AC_PREREQ([2.59])
 AC_COPYRIGHT([Portions of this script are Copyright 2002-2005 Don Moore])
+AC_CONFIG_MACRO_DIR([m4])
 AM_INIT_AUTOMAKE([1.9.5 dist-bzip2])
 AM_CONFIG_HEADER(config.h)
 
diff -urN mydns-1.1.0-org/m4/mydns.m4 mydns-1.1.0/m4/mydns.m4
--- mydns-1.1.0-org/m4/mydns.m4	2006-01-18 16:08:14.000000000 -0600
+++ mydns-1.1.0/m4/mydns.m4	2008-09-08 13:08:07.000000000 -0500
@@ -47,7 +47,7 @@
 		do
 			if test "$ac_ssl_lib_found" != yes
 			then
-				AC_CHECK_FILE($dir/libssl.a, ac_ssl_lib_found=yes, ac_ssl_lib_found=no)
+				AC_CHECK_FILE($dir/libssl.so, ac_ssl_lib_found=yes, ac_ssl_lib_found=no)
 				if test "$ac_ssl_lib_found" = yes
 				then
 					LIBSSL="-L$dir -lssl -lcrypto"
@@ -59,7 +59,7 @@
 			AC_MSG_ERROR([
 
 ][  ###
-][  ###  OpenSSL libraries (libssl.a/libcrypto.a) not found!
+][  ###  OpenSSL libraries (libssl.so/libcrypto.a) not found!
 ][  ###
 ][  ###  If your OpenSSL libraries are in an unusual location,
 ][  ###  specify the directory where they are located with:
@@ -461,7 +461,7 @@
 		do
 			if test "$ac_zlib_found" != yes
 			then
-				AC_CHECK_FILE($dir/libz.a, ac_zlib_found=yes, ac_zlib_found=no)
+				AC_CHECK_FILE($dir/libz.so, ac_zlib_found=yes, ac_zlib_found=no)
 				if test "$ac_zlib_found" = yes
 				then
 					AC_CHECK_LIB(z, deflate, ac_zlib_ok=yes, ac_zlib_ok=no)
@@ -524,7 +524,7 @@
 		libmysqlclient_found=no, libmysqlclient_ok=no
 		for libmysqlclient_dir in $libmysqlclient_dirs; do
 			if test "$libmysqlclient_found" != yes; then
-				AC_CHECK_FILE($libmysqlclient_dir/libmysqlclient.a, libmysqlclient_found=yes, libmysqlclient_found=no)
+				AC_CHECK_FILE($libmysqlclient_dir/libmysqlclient.so, libmysqlclient_found=yes, libmysqlclient_found=no)
 				if test "$libmysqlclient_found" != yes; then
 					AC_CHECK_FILE($libmysqlclient_dir/libmysqlclient.so.10, libmysqlclient_found=yes, libmysqlclient_found=no)
 				fi
@@ -541,7 +541,7 @@
 						AC_MSG_ERROR([
 
 ][  ###
-][  ###  zlib compression library (libz.a) not found.
+][  ###  zlib compression library (libz.so) not found.
 ][  ###
 ][  ###  Please download and install the zlib compression
 ][  ###  library from the following URL:
@@ -553,7 +553,7 @@
 ])
      				fi
 					LIBMYSQLCLIENT="-L$libmysqlclient_dir -lmysqlclient"
-					#LIBMYSQLCLIENT="$libmysqlclient_dir/libmysqlclient.a"
+					#LIBMYSQLCLIENT="$libmysqlclient_dir/libmysqlclient.so"
 					libmysqlclient_found=yes
 				fi
 			fi
@@ -630,7 +630,7 @@
 		do
 			if test "$ac_mydns_lib_found" != yes
 			then
-				AC_CHECK_FILE($dir/libpq.a, ac_mydns_lib_found=yes, ac_mydns_lib_found=no)
+				AC_CHECK_FILE($dir/libpq.so, ac_mydns_lib_found=yes, ac_mydns_lib_found=no)
 				if test "$ac_mydns_lib_found" = "yes"; then
 					LIBPQ="-L$dir -lpq"
 



More information about the pld-devel-pl mailing list