3 # - check if PyXML is really required during build
5 Summary: A WebDAV server in Python
6 Summary(pl): Serwer WebDAV napisany w Pythonie
11 Group: Networking/Daemons
12 Source0: http://download.berlios.de/pyfilesync/PyFileServer-0.2.1.zip
13 # Source0-md5: 7a46d3f94e05d81b4110e6d0780c642b
14 URL: http://pyfilesync.berlios.de/pyfileserver.html
15 BuildRequires: python >= 2.3
17 %pyrequires_eq python-modules
18 Requires: python-PyXML
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 PyFileServer implements up to Class 2 of the WebDAV specification,
24 including support for shared and exclusive write locking, and setting
25 arbitrary dead properties. It also implements HTTP user authentication
26 using both basic and digest schemes, HTTP single range retrievals and
27 conditional processing headers (If_Match, If_Modified_Since, etc).
29 PyFileServer also allows custom components to be developed easily by
30 having clear interfaces for:
31 - Resource Abstraction Layer
42 %py_comp pyfileserver/
43 %py_ocomp pyfileserver/
46 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT{%{py_sitescriptdir},%{_bindir}}
50 cp -r pyfileserver $RPM_BUILD_ROOT%{py_sitescriptdir}
51 echo "#!/usr/bin/python" > $RPM_BUILD_ROOT%{_bindir}/PyFileServer.py
52 cat ext_wsgiutils_server.py >> $RPM_BUILD_ROOT%{_bindir}/PyFileServer.py
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
61 %doc ADDONS.txt DEVELOPERS.txt PyFileServer-example.conf README.txt
62 %doc THANKS.txt TODO.txt TUTORIAL.txt
63 %attr(755,root,root) %{_bindir}/*
64 %{py_sitescriptdir}/pyfileserver