SPECS: PyFileServer.spec - use setup.py to build and install (inst...
radzio
radzio at pld-linux.org
Sun Feb 19 13:19:25 CET 2006
Author: radzio Date: Sun Feb 19 12:19:25 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- use setup.py to build and install (instead of %py_{,o}comp and cp)
---- Files affected:
SPECS:
PyFileServer.spec (1.2 -> 1.3)
---- Diffs:
================================================================
Index: SPECS/PyFileServer.spec
diff -u SPECS/PyFileServer.spec:1.2 SPECS/PyFileServer.spec:1.3
--- SPECS/PyFileServer.spec:1.2 Mon Sep 5 18:22:48 2005
+++ SPECS/PyFileServer.spec Sun Feb 19 13:19:19 2006
@@ -7,7 +7,7 @@
Summary(pl): Serwer WebDAV napisany w Pythonie
Name: PyFileServer
Version: 0.2.1
-Release: 0.1
+Release: 1
License: BSD
Group: Networking/Daemons
Source0: http://download.berlios.de/pyfilesync/PyFileServer-0.2.1.zip
@@ -53,18 +53,20 @@
%setup -q -n %{name}
%build
-%py_comp pyfileserver/
-%py_ocomp pyfileserver/
+python setup.py build
%install
rm -rf $RPM_BUILD_ROOT
+python setup.py install \
+ --single-version-externally-managed \
+ --optimize=2 \
+ --root=$RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{py_sitescriptdir},%{_bindir}}
-cp -r pyfileserver $RPM_BUILD_ROOT%{py_sitescriptdir}
+
+install -d $RPM_BUILD_ROOT%{_bindir}
echo "#!/usr/bin/python" > $RPM_BUILD_ROOT%{_bindir}/PyFileServer.py
cat ext_wsgiutils_server.py >> $RPM_BUILD_ROOT%{_bindir}/PyFileServer.py
-
%py_postclean
%clean
@@ -76,6 +78,7 @@
%doc THANKS.txt TODO.txt TUTORIAL.txt
%attr(755,root,root) %{_bindir}/*
%{py_sitescriptdir}/pyfileserver
+%{py_sitescriptdir}/PyFileServer*
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -83,6 +86,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.3 2006/02/19 12:19:19 radzio
+- use setup.py to build and install (instead of %py_{,o}comp and cp)
+
Revision 1.2 2005/09/05 16:22:48 qboosh
- pl desc
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/PyFileServer.spec?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list