SPECS: python-pypar.spec - not noarch - added BRs - fixed install ...

baggins baggins at pld-linux.org
Thu May 4 16:09:13 CEST 2006


Author: baggins                      Date: Thu May  4 14:09:13 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- not noarch
- added BRs
- fixed install
- builds

---- Files affected:
SPECS:
   python-pypar.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SPECS/python-pypar.spec
diff -u SPECS/python-pypar.spec:1.1 SPECS/python-pypar.spec:1.2
--- SPECS/python-pypar.spec:1.1	Thu May  4 15:55:42 2006
+++ SPECS/python-pypar.spec	Thu May  4 16:09:07 2006
@@ -7,17 +7,16 @@
 Version:	1.9.2
 %define		_vername %(echo %{version}|tr . _)
 Release:	0.1
-License:	BSD-like
+License:	GPL
 Group:		Libraries/Python
 Source0:	http://datamining.anu.edu.au/~ole/pypar/%{module}_%{_vername}.tgz
 # Source0-md5:	a21bf293f64ae4531ebcdb7be74b5415
 URL:		http://datamining.anu.edu.au/~ole/pypar/
+BuildRequires:	mpich
 BuildRequires:	python-devel >= 1:2.3
+%pyrequires_eq	python-libs
 BuildRequires:	python-numarray-devel
 BuildRequires:	python-numpy
-BuildRequires:	mpich-devel
-%pyrequires_eq	python-libs
-BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -42,28 +41,32 @@
 %setup -q -n %{module}_%{_vername}
 
 %build
+CFLAGS="%{rpmcflags}"
+export CFLAGS
 python setup.py build_ext
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{py_sitescriptdir},%{_examplesdir}/%{name}-%{version}}
+install -d $RPM_BUILD_ROOT{%{py_sitedir},%{_examplesdir}/%{name}-%{version}}
 
 python setup.py install \
 	--root=$RPM_BUILD_ROOT \
-	--install-lib=%{py_sitescriptdir} \
+	--install-lib=%{py_sitedir} \
 	--optimize=2
 
-find $RPM_BUILD_ROOT%{py_sitescriptdir} -name \*.py -exec rm {} \;
+find $RPM_BUILD_ROOT%{py_sitedir} -name \*.py -exec rm {} \;
 
-cp -ar example/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -ar examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README.txt
-%{py_sitescriptdir}/pypar
+%doc DOC FAQ README
+%dir %{py_sitedir}/%{module}
+%{py_sitedir}/%{module}/*.py[co]
+%attr(755,root,root) %{py_sitedir}/%{module}/*.so
 
 %files examples
 %defattr(644,root,root,755)
@@ -75,6 +78,12 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2006/05/04 14:09:07  baggins
+- not noarch
+- added BRs
+- fixed install
+- builds
+
 Revision 1.1  2006/05/04 13:55:42  baggins
 - initial revision
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/python-pypar.spec?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list