SPECS: python-setuptools.spec - cool trunk version with setup for ...
arekm
arekm at pld-linux.org
Mon Dec 19 23:57:37 CET 2005
Author: arekm Date: Mon Dec 19 22:57:37 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- cool trunk version with setup for --single-version-externally-managed
---- Files affected:
SPECS:
python-setuptools.spec (1.4 -> 1.5)
---- Diffs:
================================================================
Index: SPECS/python-setuptools.spec
diff -u SPECS/python-setuptools.spec:1.4 SPECS/python-setuptools.spec:1.5
--- SPECS/python-setuptools.spec:1.4 Thu Dec 15 22:49:02 2005
+++ SPECS/python-setuptools.spec Mon Dec 19 23:57:32 2005
@@ -1,16 +1,18 @@
# $Revision$, $Date$
%define module setuptools
+%define snap 20051219
Summary: A collection of enhancements to the Python distutils
Summary(pl): Zestaw rozszerzeń dla pythonowych distutils
Name: python-setuptools
-Version: 0.6a8
-Release: 1
+Version: 0.6a9
+Release: 0.%{snap}.1
License: GPL
Group: Development/Languages/Python
-Source0: http://cheeseshop.python.org/packages/source/s/setuptools/setuptools-%{version}.zip
-# Source0-md5: 3eecdf66c1a2cf8a6556bc00b69d572a
+# Source0: http://cheeseshop.python.org/packages/source/s/setuptools/setuptools-%{version}.zip
+Source0: setuptools-%{snap}.tar.gz
+# Source0-md5: 594f178498539c14f646bb00fb382a98
URL: http://peak.telecommunity.com/DevCenter/setuptools
BuildRequires: findutils
%pyrequires_eq python
@@ -34,7 +36,7 @@
od innych pakietów.
%prep
-%setup -q -n %{module}-%{version}
+%setup -q -n %{module}
%build
python ./setup.py build
@@ -43,19 +45,16 @@
rm -rf $RPM_BUILD_ROOT
python ./setup.py install \
+ --single-version-externally-managed \
--optimize 2 \
--root=$RPM_BUILD_ROOT
-find $RPM_BUILD_ROOT -type f -name '*.pyc' -exec rm "{}" ";"
-find $RPM_BUILD_ROOT -type f -name '*.pyo' -exec rm "{}" ";"
-find $RPM_BUILD_ROOT -type f -exec sed -i -e "s#$RPM_BUILD_ROOT##g" "{}" ";"
+rm -f $RPM_BUILD_ROOT%{py_sitescriptdir}/*/*.exe
%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
%py_postclean
-echo '%{module}-%{version}-py%{py_ver}.egg' > $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}.pth
-
%clean
rm -rf $RPM_BUILD_ROOT
@@ -64,6 +63,7 @@
%doc *.txt
%attr(755,root,root) %{_bindir}/*
%{py_sitescriptdir}/%{module}*
+%{py_sitescriptdir}/*.py[co]
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -71,6 +71,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.5 2005/12/19 22:57:32 arekm
+- cool trunk version with setup for --single-version-externally-managed
+
Revision 1.4 2005/12/15 21:49:02 qboosh
- pl
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/python-setuptools.spec?r1=1.4&r2=1.5&f=u
More information about the pld-cvs-commit
mailing list