Changed files:
PyFileServer.spec -> 1.3
Summary(pl): Serwer WebDAV napisany w Pythonie
Name: PyFileServer
Version: 0.2.1
Summary(pl): Serwer WebDAV napisany w Pythonie
Name: PyFileServer
Version: 0.2.1
License: BSD
Group: Networking/Daemons
Source0: http://download.berlios.de/pyfilesync/PyFileServer-0.2.1.zip
License: BSD
Group: Networking/Daemons
Source0: http://download.berlios.de/pyfilesync/PyFileServer-0.2.1.zip
%setup -q -n %{name}
%build
%setup -q -n %{name}
%build
-%py_comp pyfileserver/
-%py_ocomp pyfileserver/
%install
rm -rf $RPM_BUILD_ROOT
%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
echo "#!/usr/bin/python" > $RPM_BUILD_ROOT%{_bindir}/PyFileServer.py
cat ext_wsgiutils_server.py >> $RPM_BUILD_ROOT%{_bindir}/PyFileServer.py
%doc THANKS.txt TODO.txt TUTORIAL.txt
%attr(755,root,root) %{_bindir}/*
%{py_sitescriptdir}/pyfileserver
%doc THANKS.txt TODO.txt TUTORIAL.txt
%attr(755,root,root) %{_bindir}/*
%{py_sitescriptdir}/pyfileserver
+%{py_sitescriptdir}/PyFileServer*