forked from pool/python-qet_tb_generator
Accepting request 807226 from home:pgajdos:python
submit OBS-URL: https://build.opensuse.org/request/show/807226 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-qet_tb_generator?expand=0&rev=11
This commit is contained in:
committed by
Git OBS Bridge
parent
7fb01973aa
commit
cd70a4585f
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 19 09:27:36 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||||
|
|
||||||
|
- %python3_only -> %python_alternative
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Mar 8 17:46:46 UTC 2020 - aloisio@gmx.com
|
Sun Mar 8 17:46:46 UTC 2020 - aloisio@gmx.com
|
||||||
|
|
||||||
|
@@ -32,6 +32,8 @@ BuildRequires: fdupes
|
|||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-qt5
|
Requires: python-qt5
|
||||||
Requires: qelectrotech
|
Requires: qelectrotech
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@@ -53,12 +55,19 @@ sed -i 's/qet_tb_generator=src.main:main/qet_tb_generator=qet_tb_generator.main:
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/%{modname}
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative %{modname}
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative %{modname}
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README
|
%doc README
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%python3_only %{_bindir}/%{modname}
|
%python_alternative %{_bindir}/%{modname}
|
||||||
%{python_sitelib}/qet_tb_generator*
|
%{python_sitelib}/qet_tb_generator*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user