Hello community,

here is the log from the commit of package pybugz for openSUSE:Factory checked 
in at 2017-07-12 19:35:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/pybugz (Old)
 and      /work/SRC/openSUSE:Factory/.pybugz.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "pybugz"

Wed Jul 12 19:35:48 2017 rev:4 rq:509481 version:0.13

Changes:
--------
--- /work/SRC/openSUSE:Factory/pybugz/pybugz.changes    2016-11-24 
21:25:25.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.pybugz.new/pybugz.changes       2017-07-12 
19:35:49.189926308 +0200
@@ -1,0 +2,5 @@
+Tue Jul 11 13:54:03 UTC 2017 - mplus...@suse.com
+
+- Convert to singlespec
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ pybugz.spec ++++++
--- /var/tmp/diff_new_pack.m8RchP/_old  2017-07-12 19:35:49.721851169 +0200
+++ /var/tmp/diff_new_pack.m8RchP/_new  2017-07-12 19:35:49.721851169 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package pybugz
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,14 +24,18 @@
 Group:          Productivity/Networking/Web/Utilities
 Url:            http://www.liquidx.net/pybugz
 Source0:        
https://github.com/williamh/pybugz/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
-BuildRequires:  python3-devel
-BuildRequires:  python3-setuptools
-Recommends:     bash-completion
-Provides:       %{name}-bash-completion = %{version}
-Obsoletes:      %{name}-bash-completion < %{version}
-Provides:       %{name}-zsh-completion = %{version}
-Obsoletes:      %{name}-zsh-completion < %{version}
+BuildRequires:  %{python_module base}
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  fdupes
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:      noarch
+%ifpython3
+Provides:       pybugz = %{version}
+Obsoletes:      pybugz < %{version}
+%endif
+%python_subpackages
 
 %description
 PyBugz is a python and command line interface to Bugzilla.
@@ -42,26 +46,55 @@
 contribute to the project very quickly. Developers alike can easily extract
 attachments and close bugs all from the comfort of the command line.
 
+%package -n %{name}-common
+Summary:        Common files for %{name}
+Group:          Development/Languages/Python
+Supplements:    python2-%{name}
+Supplements:    python3-%{name}
+
+%description -n %{name}-common
+PyBugz is a python and command line interface to Bugzilla.
+
+It was conceived as a tool to speed up the workflow for Gentoo Linux
+developers and contributors when dealing with bugs using Bugzilla. By
+avoiding the clunky web interface, the user quickly search, isolate and
+contribute to the project very quickly. Developers alike can easily extract
+attachments and close bugs all from the comfort of the command line.
+
+This package contains common files for %{name}.
+
 %prep
 %setup -q
 
 %build
-python3 setup.py build
+%python_build
 
 %install
-python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
-install -D -p -m 0644  contrib/bash-completion 
%{buildroot}%{_datadir}/bash-completion/completions/bugz
-install -D -p -m 0644  contrib/zsh-completion  
%{buildroot}%{_datadir}/zsh/site-functions/_bugz
+%python_install
+%python_clone -a %{buildroot}%{_bindir}/bugz
+%python_clone -a %{buildroot}%{_mandir}/man1/bugz.1
+%fdupes %{buildroot}
+
+install -Dpm 0644  contrib/bash-completion \
+  %{buildroot}%{_datadir}/bash-completion/completions/bugz
+install -Dpm 0644  contrib/zsh-completion  \
+  %{buildroot}%{_datadir}/zsh/site-functions/_bugz
 install -d -m 0755  %{buildroot}%{_sysconfdir}/pybugz.d
 
-%files
-%defattr(-,root,root,-)
+%post
+%{python_install_alternative bugz bugz.1}
+
+%postun
+%{python_uninstall_alternative bugz bugz.1}
+
+%files %{python_files}
 %doc LICENSE README
-%{_bindir}/bugz
+%python_alternative %{_bindir}/bugz
+%python_alternative %{_mandir}/man1/bugz.1%{ext_man}
+%{python_sitelib}/*
+
+%files -n %{name}-common
 %dir %{_sysconfdir}/pybugz.d
-%{python3_sitelib}/bugz
-%{python3_sitelib}/%{name}-%{version}-py%{py3_ver}.egg-info
-%{_mandir}/man1/bugz.1%{ext_man}
 %{_mandir}/man5/pybugz.d.5%{ext_man}
 %dir %{_datadir}/pybugz.d
 %{_datadir}/pybugz.d/busybox.conf


Reply via email to