forked from pool/python-python-aiml
Accepting request 807632 from home:pgajdos:python
submit OBS-URL: https://build.opensuse.org/request/show/807632 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-aiml?expand=0&rev=7
This commit is contained in:
committed by
Git OBS Bridge
parent
e401b045e9
commit
858b87d86d
@@ -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>
|
||||
|
||||
|
@@ -29,6 +29,8 @@ BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: unzip
|
||||
Requires: python-setuptools
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Obsoletes: python-aiml < 0.9.0
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
@@ -49,16 +51,26 @@ for a long time.
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/aiml-bot
|
||||
%python_clone -a %{buildroot}%{_bindir}/aiml-validate
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%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}
|
||||
%doc CHANGES.txt README.rst
|
||||
%license COPYING.txt
|
||||
%python3_only %{_bindir}/aiml-validate
|
||||
%python3_only %{_bindir}/aiml-bot
|
||||
%python_alternative %{_bindir}/aiml-validate
|
||||
%python_alternative %{_bindir}/aiml-bot
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user