Hello community,

here is the log from the commit of package python-PyWebDAV for openSUSE:Factory 
checked in at 2017-09-29 11:55:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-PyWebDAV (Old)
 and      /work/SRC/openSUSE:Factory/.python-PyWebDAV.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-PyWebDAV"

Fri Sep 29 11:55:42 2017 rev:2 rq:527097 version:0.9.8

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-PyWebDAV/python-PyWebDAV.changes  
2016-07-09 09:23:19.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-PyWebDAV.new/python-PyWebDAV.changes     
2017-09-29 11:55:48.495233273 +0200
@@ -1,0 +2,9 @@
+Mon Sep 18 17:40:07 UTC 2017 - [email protected]
+
+- Implement update-alternatives for compatibility with newer
+  alternatives
+- Use more up-to-date macros
+- General spec file cleanups
+- Fix license
+
+-------------------------------------------------------------------

Old:
----
  _service

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-PyWebDAV.spec ++++++
--- /var/tmp/diff_new_pack.OkM27n/_old  2017-09-29 11:55:50.298978931 +0200
+++ /var/tmp/diff_new_pack.OkM27n/_new  2017-09-29 11:55:50.302978367 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pywebdav
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -14,46 +14,75 @@
 
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 
-%define mod_name PyWebDAV
 
 Name:           python-PyWebDAV
-BuildRequires:  python-setuptools
 Version:        0.9.8
-Release:        1
-License:        GPL-3.0+
-Source:         
https://files.pythonhosted.org/packages/e9/14/5f2a654233e533797f32dd670dab8dd61ac974d5105950481e872bddb898/%{mod_name}-%{version}.tar.gz
-Url:           https://pypi.io/project/PyWebDAV/
-
-Requires:              python-setuptools
-
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-%{!?python_sitelib: %global python_sitelib %(python -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%else
-BuildArch:      noarch  
-%endif
-
+Release:        0
+License:        LGPL-2.0
+Summary:        WebDAV library including a standalone server for python2
+Url:            https://code.google.com/archive/p/pywebdav/
 Group:          Productivity/Networking/Web/Servers
-Summary:        Python-based WebDAV server
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+Source:         
https://files.pythonhosted.org/packages/source/P/PyWebDAV/PyWebDAV-%{version}.tar.gz
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
+BuildRequires:  python-setuptools
+Provides:       python2-PyWebDAV = %{version}
+BuildArch:      noarch
+Requires(post):   update-alternatives
+Requires(postun):  update-alternatives
 
 %description
-Python WebDAV implementation (level 1 and 2) that features a library that 
enables you to integrate WebDAV server capabilities to your application.
-A fully working example on how to use the library is included. You can find a 
server in the DAVServer package. This server is fully functional and can even 
be run as daemon.
-If you search an easy to use WebDAV server that supports most clients 
(cadaver, Mac OS X Finder, Windows Explorer, ...) then try out PyWebDAV. 
+WebDAV library for python2.
+
+Consists of a server that is ready to run Serve and the DAV package
+that provides WebDAV server functionality.
+
+Currently supports
 
+ * WebDAV level 1
+ * Level 2 (LOCK, UNLOCK)
+ * Experimental iterator support
+
+It plays nice with
+
+  * Mac OS X Finder
+  * Windows Explorer
+  * iCal
+  * cadaver
+  * Nautilus
+
+This package does not provide client functionality.
 
 %prep
-%setup -q -n %{mod_name}-%{version}
+%setup -q -n PyWebDAV-%{version}
 
 %build
-python setup.py build
+%python2_build
 
 %install
-python setup.py install --prefix=%_prefix --root=%buildroot 
+%python2_install
+%fdupes %{buildroot}%{python2_sitelib}
+
+chmod a+x %{buildroot}%{python2_sitelib}/pywebdav/server/server.py
+sed -i "s|^#!/usr/bin/env python$|#!%{__python2}|" 
%{buildroot}%{python2_sitelib}/pywebdav/server/server.py
+%fdupes %{buildroot}%{python2_sitelib}
+python2 -m compileall -d %{python2_sitelib} 
%{buildroot}%{python2_sitelib}/pywebdav/server/
+python2 -O -m compileall -d %{python2_sitelib} 
%{buildroot}%{python2_sitelib}/pywebdav/server/
+%fdupes %{buildroot}%{python2_sitelib}/pywebdav/server/
+
+mv %{buildroot}%{_bindir}/davserver 
%{buildroot}%{_bindir}/davserver-%{python2_bin_suffix}
+mkdir -p %{buildroot}%{_sysconfdir}/alternatives
+ln -s -f %{_sysconfdir}/alternatives/davserver %{buildroot}%{_bindir}/davserver
+
+%post
+%python2_install_alternative davserver
+
+%postun
+%python2_uninstall_alternative davserver
 
 %files
 %defattr(-,root,root)
-%doc README doc/*
-%{python_sitelib}/*
-%{_bindir}/davserver
+%doc README doc/Changes doc/LICENSE doc/TODO
+%python2_alternative %{_bindir}/davserver
+%{python2_sitelib}/*
 


Reply via email to