Hello community,

here is the log from the commit of package python-zdaemon for openSUSE:Factory 
checked in at 2014-02-26 06:55:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-zdaemon (Old)
 and      /work/SRC/openSUSE:Factory/.python-zdaemon.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-zdaemon"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-zdaemon/python-zdaemon.changes    
2013-10-25 11:36:48.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-zdaemon.new/python-zdaemon.changes       
2014-02-26 06:55:25.000000000 +0100
@@ -1,0 +2,18 @@
+Sun Feb 16 18:16:37 UTC 2014 - os-...@jacraig.com
+
+- Update to 4.0.0:
+  * Note / test support for Python 3.2.
+- Add requirement for python-ZConfig, see setup.py.
+- Update source URL, .zip not available for this version.
+
+-------------------------------------------------------------------
+Fri Feb  7 13:17:03 UTC 2014 - p.drou...@gmail.com
+
+- Fix wrong implementation
+
+-------------------------------------------------------------------
+Fri Feb  7 12:43:58 UTC 2014 - p.drou...@gmail.com
+
+- Implement update-alternative
+
+-------------------------------------------------------------------

Old:
----
  zdaemon-4.0.0a1.zip

New:
----
  zdaemon-4.0.0.tar.gz

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

Other differences:
------------------
++++++ python-zdaemon.spec ++++++
--- /var/tmp/diff_new_pack.HkfHT8/_old  2014-02-26 06:55:25.000000000 +0100
+++ /var/tmp/diff_new_pack.HkfHT8/_new  2014-02-26 06:55:25.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-zdaemon
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 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
@@ -18,19 +18,19 @@
 
 %define modname zdaemon
 
-Name:           python-zdaemon
-Version:        4.0.0a1
+Name:           python-%{modname}
+Version:        4.0.0
 Release:        0
 Summary:        Daemon process control library and tools
 License:        ZPL-2.1
-Group:          Development/Libraries/Python
+Group:          Development/Languages/Python
 Url:            http://pypi.python.org/pypi/zdaemon
-Source:         
https://pypi.python.org/packages/source/z/zdaemon/%{modname}-%{version}.zip
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-%{py_requires}
+Source:         
https://pypi.python.org/packages/source/z/zdaemon/%{modname}-%{version}.tar.gz
 BuildRequires:  python-devel
 BuildRequires:  python-setuptools
-BuildRequires:  unzip
+BuildRequires:  update-alternatives
+Requires(pre):  update-alternatives
+Requires:       python-ZConfig
 BuildArch:      noarch
 
 %description
@@ -41,15 +41,33 @@
 
 %prep
 %setup -q -n %{modname}-%{version}
+sed -i "s|%{modname} =|%{modname}-%{py_ver} =|" setup.py
 
 %build
 python setup.py build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT 
--record-rpm=INSTALLED_FILES
+python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+# create a dummy target for /etc/alternatives/zdaemon
+mkdir -p %{buildroot}%{_sysconfdir}/alternatives
+touch %{buildroot}%{_sysconfdir}/alternatives/%{modname}
+ln -s -f %{_sysconfdir}/alternatives/%{modname} 
%{buildroot}/%{_bindir}/%{modname}
+
+%post
+update-alternatives \
+    --install %{_bindir}/%{modname} %{modname} %{_bindir}/%{modname}-%{py_ver} 
20
+
+%preun
+if [ $1 -eq 0 ] ; then
+    update-alternatives --remove %{modname} %{_bindir}/%{modname}-%{py_ver}
+fi
 
-%files -f INSTALLED_FILES
+%files
 %defattr(-,root,root)
 %doc README.txt CHANGES.txt
+%ghost %{_sysconfdir}/alternatives/%{modname}
+%{python_sitelib}
+%{_bindir}/%{modname}
+%{_bindir}/%{modname}-%{py_ver}
 
 %changelog

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to