Hello community, here is the log from the commit of package python-killswitch for openSUSE:Factory checked in at 2018-06-28 15:11:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-killswitch (Old) and /work/SRC/openSUSE:Factory/.python-killswitch.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-killswitch" Thu Jun 28 15:11:44 2018 rev:14 rq:619001 version:0.4 Changes: -------- --- /work/SRC/openSUSE:Factory/python-killswitch/python-killswitch.changes 2014-02-22 18:16:17.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-killswitch.new/python-killswitch.changes 2018-06-28 15:11:44.883776745 +0200 @@ -1,0 +2,10 @@ +Mon Jun 25 15:33:16 UTC 2018 - [email protected] + +- Clean SPEC file + +------------------------------------------------------------------- +Thu Aug 24 13:43:50 UTC 2017 - [email protected] + +- singlespec auto-conversion + +------------------------------------------------------------------- @@ -51,0 +62 @@ + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-killswitch.spec ++++++ --- /var/tmp/diff_new_pack.t9sToU/_old 2018-06-28 15:11:45.455775696 +0200 +++ /var/tmp/diff_new_pack.t9sToU/_new 2018-06-28 15:11:45.455775696 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-killswitch # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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 @@ -15,22 +15,24 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + +%define skip_python3 1 + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-killswitch Version: 0.4 Release: 0 Summary: Python module providing functions for killswitches License: WTFPL Group: Development/Languages/Python +URL: http://blog.homac.de Source: python-killswitch-%{version}.tar.gz -Url: http://blog.homac.de -BuildRequires: python-devel -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%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 +BuildRequires: %{python_module devel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros Requires: urfkill +BuildArch: noarch +%python_subpackages %description python-killswitch provides a python module called killswitch. It provides @@ -40,16 +42,18 @@ %prep %setup -q +sed -i -e '1d' killswitch.py %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} -%files -%defattr(-,root,root) -%doc COPYING README +%files %{python_files} +%license COPYING +%doc README %{python_sitelib} %changelog
