SPECS: athcool.spec - use pkg-config to find needed libs - BR: pkg...

sls sls at pld-linux.org
Tue Jul 10 23:28:53 CEST 2007


Author: sls                          Date: Tue Jul 10 21:28:53 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- use pkg-config to find needed libs
- BR: pkgconfig

---- Files affected:
SPECS:
   athcool.spec (1.32 -> 1.33) 

---- Diffs:

================================================================
Index: SPECS/athcool.spec
diff -u SPECS/athcool.spec:1.32 SPECS/athcool.spec:1.33
--- SPECS/athcool.spec:1.32	Tue Jul 10 22:54:46 2007
+++ SPECS/athcool.spec	Tue Jul 10 23:28:48 2007
@@ -13,6 +13,7 @@
 Source2:	%{name}.sysconfig
 URL:		http://members.jcom.home.ne.jp/jacobi/linux/softwares.html
 BuildRequires:	pciutils-devel
+BuildRequires:	pkgconfig
 BuildRequires:	rpmbuild(macros) >= 1.268
 Requires(post,preun):	/sbin/chkconfig
 Requires:	rc-scripts
@@ -50,7 +51,7 @@
 %{__make} \
 	CC="%{__cc}" \
 	CFLAGS="%{rpmcflags}" \
-	LIBS="-lpci -lz"
+	LIBS="`pkg-config --libs libpci`"
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -89,6 +90,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.33  2007/07/10 21:28:48  sls
+- use pkg-config to find needed libs
+- BR: pkgconfig
+
 Revision 1.32  2007/07/10 20:54:46  sls
 - pass LIBS to make (missing -lz in Makefile)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/athcool.spec?r1=1.32&r2=1.33&f=u



More information about the pld-cvs-commit mailing list