forked from pool/python-msoffcrypto-tool
Accepting request 808651 from home:pgajdos:python
submit OBS-URL: https://build.opensuse.org/request/show/808651 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-msoffcrypto-tool?expand=0&rev=8
This commit is contained in:
committed by
Git OBS Bridge
parent
a272efcc60
commit
cf01e408bd
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 25 06:50:54 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||||
|
|
||||||
|
- %python3_only -> %python_alternative
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Apr 15 13:57:30 UTC 2020 - pgajdos@suse.com
|
Wed Apr 15 13:57:30 UTC 2020 - pgajdos@suse.com
|
||||||
|
|
||||||
|
|||||||
@@ -31,6 +31,8 @@ BuildRequires: python-rpm-macros
|
|||||||
Requires: python-cryptography >= 2.3
|
Requires: python-cryptography >= 2.3
|
||||||
Requires: python-olefile >= 0.45
|
Requires: python-olefile >= 0.45
|
||||||
Requires: python-setuptools
|
Requires: python-setuptools
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module coverage}
|
BuildRequires: %{python_module coverage}
|
||||||
@@ -54,15 +56,22 @@ wc -c msoffcrypto/method/xor_obfuscation.py | sed -n '/^0/{s/^0\s//;p}' | xargs
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/msoffcrypto-tool
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%python_exec -m nose --with-doctest
|
%python_exec -m nose --with-doctest
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative msoffcrypto-tool
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative msoffcrypto-tool
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%python3_only %{_bindir}/msoffcrypto-tool
|
%python_alternative %{_bindir}/msoffcrypto-tool
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user