SPECS: python-GooeyPy.spec - removed Cellulose to python-Cellulose...
cactus
cactus at pld-linux.org
Mon May 28 23:12:10 CEST 2007
Author: cactus Date: Mon May 28 21:12:10 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- removed Cellulose to python-Cellulose.spec
- more simple installation but works for all python version
- docs added
---- Files affected:
SPECS:
python-GooeyPy.spec (1.7 -> 1.8)
---- Diffs:
================================================================
Index: SPECS/python-GooeyPy.spec
diff -u SPECS/python-GooeyPy.spec:1.7 SPECS/python-GooeyPy.spec:1.8
--- SPECS/python-GooeyPy.spec:1.7 Sun May 27 20:35:20 2007
+++ SPECS/python-GooeyPy.spec Mon May 28 23:12:04 2007
@@ -1,7 +1,5 @@
# $Revision$, $Date$
#
-# TODO :
-# - Remove Cellulose to different spec
#
%define module GooeyPy
@@ -19,9 +17,8 @@
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: rpmbuild(macros) >= 1.219
-#Requires: python-Cellulose
+Requires: python-Cellulose
%pyrequires_eq python-modules
-Provides: python-Cellulose
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -47,25 +44,19 @@
%setup -q -n %{module}-%{version}
%build
-python setup.py build
+python setup.py build
%install
rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{py_sitescriptdir}
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-python setup.py install \
- --root=$RPM_BUILD_ROOT \
- --optimize=2
-
-# Cellulose
-unzip -d $RPM_BUILD_ROOT%{py_sitescriptdir} $RPM_BUILD_ROOT%{py_sitescriptdir}/Cellulose-0.1.2-py%{py_ver}.egg
-rm -f $RPM_BUILD_ROOT%{py_sitescriptdir}/Cellulose-0.1.2-py%{py_ver}.egg
-
-cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-rm -f $RPM_BUILD_ROOT%{py_sitescriptdir}/*.py[co]
-rm -rf $RPM_BUILD_ROOT%{py_sitescriptdir}/EGG-INFO
-cp -a $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}-%{version}-py%{py_ver}.egg/gooeypy $RPM_BUILD_ROOT%{py_sitescriptdir}/gooeypy
-rm -rf $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}-%{version}-py%{py_ver}.egg
+#python setup.py install \
+# --root=$RPM_BUILD_ROOT \
+# --optimize=2
+
+cp -af examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -af gooeypy $RPM_BUILD_ROOT%{py_sitescriptdir}/gooeypy
%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
@@ -77,8 +68,8 @@
%files
%defattr(644,root,root,755)
%doc AUTHORS CHANGELOG README
+%doc docs
%{py_sitescriptdir}/gooeypy
-%{py_sitescriptdir}/cellulose
%files examples
%defattr(644,root,root,755)
@@ -90,6 +81,11 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.8 2007/05/28 21:12:04 cactus
+- removed Cellulose to python-Cellulose.spec
+- more simple installation but works for all python version
+- docs added
+
Revision 1.7 2007/05/27 18:35:20 qboosh
- removed LICENSE.txt from doc (just LGPL)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/python-GooeyPy.spec?r1=1.7&r2=1.8&f=u
More information about the pld-cvs-commit
mailing list