Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 0a2bf50a71a17d61b537a349b3d91edd > files > 2

python-pywebdav-0.9.4.1-2.mga3.src.rpm

%define srcname PyWebDAV

Name:           python-pywebdav
Version:        0.9.4.1
Release:        %mkrel 2
Summary:        WebDAV library
Group:		Development/Python
License:        LGPLv2+
URL:            http://www.webdav.de/
Source0:        http://pywebdav.googlecode.com/files/%{srcname}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  python-setuptools

%description
WebDAV library for Python. WebDAV is an extension to the normal HTTP/1.1
protocol allowing the user to upload data, create collections of objects,
store properties for objects, etc.


%prep
%setup -q -n %{srcname}-%{version}

# remove the shebang lines
pushd DAV
for f in AuthServer.py BufferingHTTPServer.py INI_Parse.py davcopy.py davmove.py delete.py errors.py propfind.py utils.py
do
    sed -i -e '1d' $f
done
popd

chmod a-x DAVServer/server.py

%build
%{__python} setup.py build

%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT

rm -fr %buildroot%{_bindir}/* %buildroot%{python_sitelib}/DAVServer
 
%files
%defattr(-,root,root,-)
%doc doc/*
%doc DAVServer
%{python_sitelib}/DAV
%{python_sitelib}/%{srcname}*


%changelog

* Sun Jan 13 2013 umeabot <umeabot> 0.9.4.1-2.mga3
+ Revision: 379421
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Sun Jul 17 2011 fwang <fwang> 0.9.4.1-1.mga2
+ Revision: 125375
- imported package python-pywebdav