forked from pool/python-metaextract
- Change preun to postun for update alternatives
- Remove not needed setup.py patch - Change shared files python-sitelib glob to package - Update source package OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-metaextract?expand=0&rev=37
This commit is contained in:
@@ -35,7 +35,7 @@ Requires: python-setuptools
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun):update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -47,8 +47,6 @@ The tool was first developed in py2pack but is now its own module.
|
||||
|
||||
%prep
|
||||
%setup -q -n metaextract-%{version}
|
||||
# https://github.com/toabctl/metaextract/issues/13
|
||||
sed -i 's:.pytest-runner.::' setup.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -62,7 +60,7 @@ sed -i 's:.pytest-runner.::' setup.py
|
||||
%post
|
||||
%python_install_alternative metaextract
|
||||
|
||||
%preun
|
||||
%postun
|
||||
%python_uninstall_alternative metaextract
|
||||
|
||||
%check
|
||||
@@ -73,6 +71,7 @@ sed -i 's:.pytest-runner.::' setup.py
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%python_alternative %{_bindir}/metaextract
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/metaextract
|
||||
%{python_sitelib}/metaextract-%{version}*-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user