SPECS: python-cElementTree.spec - new setuptools way
arekm
arekm at pld-linux.org
Tue Dec 20 21:30:02 CET 2005
Author: arekm Date: Tue Dec 20 20:30:02 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new setuptools way
---- Files affected:
SPECS:
python-cElementTree.spec (1.5 -> 1.6)
---- Diffs:
================================================================
Index: SPECS/python-cElementTree.spec
diff -u SPECS/python-cElementTree.spec:1.5 SPECS/python-cElementTree.spec:1.6
--- SPECS/python-cElementTree.spec:1.5 Fri Dec 9 22:52:19 2005
+++ SPECS/python-cElementTree.spec Tue Dec 20 21:29:57 2005
@@ -29,46 +29,33 @@
używa 2-5 razy mniej pamięci.
%prep
-%setup -c -T
-%{_bindir}/easy_install \
- -eb ${PWD} \
- -f%{SOURCE0} \
- %{module}
-cd celementtree
+%setup -q -n %{module}-%{version}-%{_snap}
rm -rf expat
%patch0 -p1
%build
-cd celementtree
CFLAGS="%{rpmcflags}" %{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
-%{_bindir}/easy_install \
- --no-deps \
- --script-dir="$RPM_BUILD_ROOT%{_bindir}" \
- --install-dir="$RPM_BUILD_ROOT%{py_sitedir}" \
- --build-directory=${PWD} \
- --always-unzip \
- %{SOURCE0}
+
+python ./setup.py install \
+ --single-version-externally-managed \
+ --optimize 2 \
+ --root=$RPM_BUILD_ROOT
%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
%py_comp $RPM_BUILD_ROOT%{py_sitedir}
%py_postclean
-m=$(ls -1d $RPM_BUILD_ROOT%{py_sitedir}/%{module}*)
-echo $(basename $m) > $RPM_BUILD_ROOT%{py_sitedir}/%{module}.pth
-
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc celementtree/{samples,README,CHANGES}
-%attr(755,root,root) %{py_sitedir}/*/cElementTree.so
-%{py_sitedir}/*/*.py[co]
-%{py_sitedir}/*/EGG-INFO
-%{py_sitedir}/*.pth
+%doc {samples,README,CHANGES}
+%attr(755,root,root) %{py_sitedir}/cElementTree.so
+%{py_sitedir}/%{module}*
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -76,6 +63,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.6 2005/12/20 20:29:57 arekm
+- new setuptools way
+
Revision 1.5 2005/12/09 21:52:19 arekm
- rel .3; package egg version
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/python-cElementTree.spec?r1=1.5&r2=1.6&f=u
More information about the pld-cvs-commit
mailing list