diff --git a/python-enzyme-rpmlintrc b/python-enzyme-rpmlintrc deleted file mode 100644 index bb1d6f0..0000000 --- a/python-enzyme-rpmlintrc +++ /dev/null @@ -1,3 +0,0 @@ -# remove warnings about modules not being executable -addFilter("non-executable-script") - diff --git a/python-enzyme.changes b/python-enzyme.changes index f1de272..f8e0d64 100644 --- a/python-enzyme.changes +++ b/python-enzyme.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Mar 1 11:29:33 UTC 2017 - aloisio@gmx.com + +- Converted to single spec. +- Dropped python-enzyme-rpmlintrc + ------------------------------------------------------------------- Sun Feb 15 13:06:51 UTC 2015 - p.drouand@gmail.com diff --git a/python-enzyme.spec b/python-enzyme.spec index 239e6f3..3a010c6 100644 --- a/python-enzyme.spec +++ b/python-enzyme.spec @@ -1,7 +1,7 @@ # # spec file for package python-enzyme # -# Copyright (c) 2015 SUSE LINUX Products 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 @@ -16,6 +16,7 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-enzyme Version: 0.4.1 Release: 0 @@ -24,14 +25,13 @@ License: Apache-2.0 Group: Development/Languages/Python Url: https://github.com/Diaoul/enzyme Source0: https://pypi.python.org/packages/source/e/enzyme/enzyme-%{version}.tar.gz -Source99: %{name}-rpmlintrc -BuildRequires: python-devel -BuildRequires: python-setuptools +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} > 1110 BuildArch: noarch -%endif - +%python_subpackages %description Enzyme is a Python module to parse video metadata. @@ -40,14 +40,16 @@ Enzyme is a Python module to parse video metadata. %setup -q -n enzyme-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root %{buildroot} +%python_install +%python_expand %fdupes -s %{buildroot}%{$python_sitelib} -%files +%files %{python_files} %defattr(-,root,root,-) %doc HISTORY.rst LICENSE README.rst -%{python_sitelib}/* +%{python_sitelib}/enzyme +%{python_sitelib}/enzyme-%{version}-py%{py_ver}.egg-info %changelog