From d6df6cfbb49520139faddf73aba3510274449a00 Mon Sep 17 00:00:00 2001 From: jpc Date: Mon, 5 Sep 2005 00:32:19 +0000 Subject: [PATCH] - new spec Changed files: PyFileServer.spec -> 1.1 --- PyFileServer.spec | 64 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 PyFileServer.spec diff --git a/PyFileServer.spec b/PyFileServer.spec new file mode 100644 index 0000000..7612b23 --- /dev/null +++ b/PyFileServer.spec @@ -0,0 +1,64 @@ +# +# TODO: +# - check if PyXML is really required during build +# +Summary: A WebDAV server in Python +Summary(pl): Serwer WebDAV napisany w Pythonie +Name: PyFileServer +Version: 0.2.1 +Release: 0.1 +License: BSD +Group: Networking/Daemons +Source0: http://download.berlios.de/pyfilesync/PyFileServer-0.2.1.zip +# Source0-md5: 7a46d3f94e05d81b4110e6d0780c642b +URL: http://pyfilesync.berlios.de/pyfileserver.html +BuildRequires: python >= 2.3 +BuildRequires: unzip +%pyrequires_eq python-modules +Requires: python-PyXML +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +PyFileServer implements up to Class 2 of the WebDAV specification, +including support for shared and exclusive write locking, and setting +arbitrary dead properties. It also implements HTTP user authentication +using both basic and digest schemes, HTTP single range retrievals and +conditional processing headers (If_Match, If_Modified_Since, etc). + +PyFileServer also allows custom components to be developed easily by +having clear interfaces for: + - Resource Abstraction Layer + - Lock Manager + - Property Manager + - Domain Controllers + +#description -l pl + +%prep +%setup -q -n %{name} + +%build +%py_comp pyfileserver/ +%py_ocomp pyfileserver/ + +%install +rm -rf $RPM_BUILD_ROOT + +install -d $RPM_BUILD_ROOT{%{py_sitescriptdir},%{_bindir}} + +cp -r pyfileserver $RPM_BUILD_ROOT%{py_sitescriptdir} +echo "#!/usr/bin/python" > $RPM_BUILD_ROOT%{_bindir}/PyFileServer.py +cat ext_wsgiutils_server.py >> $RPM_BUILD_ROOT%{_bindir}/PyFileServer.py + +%py_postclean + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc ADDONS.txt DEVELOPERS.txt PyFileServer-example.conf README.txt +%doc THANKS.txt TODO.txt TUTORIAL.txt +%attr(755,root,root) %{_bindir}/* +%{py_sitescriptdir}/pyfileserver -- 2.43.0