rpms/bti/F-11 bti.spec,1.7,1.8

Michel Alexandre Salim salimma at fedoraproject.org
Thu Aug 20 05:30:15 UTC 2009


Author: salimma

Update of /cvs/pkgs/rpms/bti/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv3836/F-11

Modified Files:
	bti.spec 
Log Message:
Adjust build process to use bti's new configure system



Index: bti.spec
===================================================================
RCS file: /cvs/pkgs/rpms/bti/F-11/bti.spec,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -p -r1.7 -r1.8
--- bti.spec	20 Aug 2009 01:34:27 -0000	1.7
+++ bti.spec	20 Aug 2009 05:30:15 -0000	1.8
@@ -10,7 +10,7 @@ Source0:        http://www.kernel.org/pu
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 # still supporting EL-5, rename to libcurl-devel once this changes
-BuildRequires:  curl-devel readline-devel libxml2-devel
+BuildRequires:  curl-devel readline-devel libxml2-devel pcre-devel
 #Requires:       
 
 %description
@@ -23,14 +23,13 @@ and fast manner to annoy the whole world
 
 
 %build
-CFLAGS=$RPM_OPT_FLAGS make %{?_smp_mflags}
+%configure
+make %{?_smp_mflags}
 
 
 %install
 rm -rf $RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT%{_bindir} $RPM_BUILD_ROOT%{_mandir}/man1
-cp -p bti $RPM_BUILD_ROOT%{_bindir}/
-cp -p bti.1 $RPM_BUILD_ROOT%{_mandir}/man1/
+make install DESTDIR=$RPM_BUILD_ROOT
 # bash completion
 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
 cp -p bti-bashcompletion $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/bti
@@ -42,11 +41,13 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root,-)
-%doc bti.example ChangeLog COPYING HACKING README RELEASE-NOTES
+%doc bti.example ChangeLog COPYING README RELEASE-NOTES
 # Own the directory so that we do not need to Require:
 # bash-completion just for one file
-%config %{_sysconfdir}/bash_completion.d
+%dir %{_sysconfdir}/bash_completion.d
+%config(noreplace) %{_sysconfdir}/bash_completion.d/bti
 %{_bindir}/bti
+%{_bindir}/bti-shrink-urls
 %{_mandir}/man1/*
 
 




More information about the fedora-extras-commits mailing list