14
0

Accepting request 809383 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/809383
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fastimport?expand=0&rev=7
This commit is contained in:
2020-06-05 17:59:00 +00:00
committed by Git OBS Bridge
2 changed files with 25 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 26 06:34:12 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Thu Aug 23 09:48:00 UTC 2018 - tchvatal@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-fastimport
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@@ -28,6 +28,8 @@ Source: https://files.pythonhosted.org/packages/source/f/fastimport/fast
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
@@ -46,17 +48,30 @@ git-remote-hg use a slightly modified version of it.
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/fast-import-query
%python_clone -a %{buildroot}%{_bindir}/fast-import-info
%python_clone -a %{buildroot}%{_bindir}/fast-import-filter
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec -m unittest fastimport.tests.test_suite
%post
%python_install_alternative fast-import-query
%python_install_alternative fast-import-info
%python_install_alternative fast-import-filter
%postun
%python_uninstall_alternative fast-import-query
%python_uninstall_alternative fast-import-info
%python_uninstall_alternative fast-import-filter
%files %{python_files}
%doc NEWS README.md
%license COPYING
%{python_sitelib}/fastimport*
%python3_only %{_bindir}/fast-import-filter
%python3_only %{_bindir}/fast-import-info
%python3_only %{_bindir}/fast-import-query
%python_alternative %{_bindir}/fast-import-filter
%python_alternative %{_bindir}/fast-import-info
%python_alternative %{_bindir}/fast-import-query
%changelog