SPECS: scons.spec - updated BRs, proper %install - rel. 1

charles charles at pld-linux.org
Tue Nov 15 16:58:13 CET 2005


Author: charles                      Date: Tue Nov 15 15:58:13 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- updated BRs, proper %install
- rel. 1

---- Files affected:
SPECS:
   scons.spec (1.13 -> 1.14) 

---- Diffs:

================================================================
Index: SPECS/scons.spec
diff -u SPECS/scons.spec:1.13 SPECS/scons.spec:1.14
--- SPECS/scons.spec:1.13	Tue Nov  8 22:05:09 2005
+++ SPECS/scons.spec	Tue Nov 15 16:58:08 2005
@@ -3,17 +3,16 @@
 Summary(pl):	OpenSourcowe narzędzie do tworzenia oprogramowania
 Name:		scons
 Version:	0.96.91
-Release:	0.1
+Release:	1
 License:	MIT, freely distributable
 Group:		Development/Tools
 Source0:	http://dl.sourceforge.net/scons/%{name}-%{version}.tar.gz
 # Source0-md5:	af5bd40fcc0e8d0b7c7210d513991802
 URL:		http://www.scons.org/
-BuildRequires:	python >= 1.6
 BuildRequires:	python-devel >= 1.6
-BuildRequires:	python-modules >= 1.6
+BuildRequires:	rpm-pythonprov
 BuildRequires:	sed >= 4.0
-Requires:	python >= 1.5.2
+%pyrequires_eq	python-modules
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -50,22 +49,23 @@
 
 %prep
 %setup -q
+%{__sed} -i "s,'lib','share',g" script/{scons,sconsign}
 
 %build
-%{__sed} -i "s,'lib','share',g" script/{scons,sconsign}
 python setup.py build
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 python setup.py install \
+	--no-version-script \
+	--optimize=2 \
 	--root=$RPM_BUILD_ROOT \
-	--record=INSTALLED_FILES \
+	--install-data=%{_datadir} \
 	--install-lib=%{py_sitescriptdir} \
 	--install-scripts=%{_bindir}
 
-install -d $RPM_BUILD_ROOT%{_mandir}/man1
-install scons*.1 $RPM_BUILD_ROOT%{_mandir}/man1
+find $RPM_BUILD_ROOT%{py_sitescriptdir} -name \*.py -exec rm -f {} \;
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -74,7 +74,7 @@
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/*
 %{py_sitescriptdir}/*
-%{_mandir}/man?/*
+%{_mandir}/man1/*
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -82,6 +82,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.14  2005/11/15 15:58:08  charles
+- updated BRs, proper %install
+- rel. 1
+
 Revision 1.13  2005/11/08 21:05:09  paszczus
 - updated to 0.96.91 ; seems to work but please test it ; rel 0.1
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/scons.spec?r1=1.13&r2=1.14&f=u




More information about the pld-cvs-commit mailing list