forked from pool/python-python-aiml
Accepting request 807676 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/807676 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-aiml?expand=0&rev=4
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 20 07:26:47 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||||
|
|
||||||
|
- %python3_only -> %python_alternative
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Mar 9 09:38:30 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
Mon Mar 9 09:38:30 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
@@ -29,6 +29,8 @@ BuildRequires: fdupes
|
|||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: unzip
|
BuildRequires: unzip
|
||||||
Requires: python-setuptools
|
Requires: python-setuptools
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
Obsoletes: python-aiml < 0.9.0
|
Obsoletes: python-aiml < 0.9.0
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
@@ -49,16 +51,26 @@ for a long time.
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/aiml-bot
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/aiml-validate
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%python_exec setup.py test
|
%python_exec setup.py test
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative aiml-bot
|
||||||
|
%python_install_alternative aiml-validate
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative aiml-bot
|
||||||
|
%python_uninstall_alternative aiml-validate
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc CHANGES.txt README.rst
|
%doc CHANGES.txt README.rst
|
||||||
%license COPYING.txt
|
%license COPYING.txt
|
||||||
%python3_only %{_bindir}/aiml-validate
|
%python_alternative %{_bindir}/aiml-validate
|
||||||
%python3_only %{_bindir}/aiml-bot
|
%python_alternative %{_bindir}/aiml-bot
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user