rpms/readahead/devel readahead.spec,1.21,1.22

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Fri Jan 13 08:50:52 UTC 2006


Author: kzak

Update of /cvs/dist/rpms/readahead/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv24465

Modified Files:
	readahead.spec 
Log Message:
fix spec file


Index: readahead.spec
===================================================================
RCS file: /cvs/dist/rpms/readahead/devel/readahead.spec,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- readahead.spec	13 Jan 2006 08:37:50 -0000	1.21
+++ readahead.spec	13 Jan 2006 08:50:50 -0000	1.22
@@ -17,7 +17,8 @@
 Prereq:		/sbin/chkconfig
 Requires:	procps /bin/awk
 BuildPreReq:	e2fsprogs-devel
-BuildPreReq:	python
+BuildRequires:	python
+BuildRequires:	pkgconfig
 Obsoletes:	kernel-utils
 
 %description
@@ -33,11 +34,11 @@
 mkdir -p %{buildroot}%{_sbindir}
 mkdir -p %{buildroot}/etc/rc.d/init.d
 mkdir -p %{buildroot}/etc/sysconfig
-gcc $RPM_OPT_FLAGS %{SOURCE0} -o readahead -lext2fs -lblkid
+gcc $RPM_OPT_FLAGS %{SOURCE0} -o readahead `pkg-config --libs ext2fs blkid`
 
 for file in %{SOURCE2} %{SOURCE4} ; do
   f=${file##*/}
-  ./readahead-gen --template=$file --output=${f%%.in}
+  %{SOURCE7} --template=$file --output=${f%%.in}
 done
 
 %install




More information about the fedora-cvs-commits mailing list