forked from pool/python-xhtml2pdf
Accepting request 805849 from home:pgajdos:python
submit OBS-URL: https://build.opensuse.org/request/show/805849 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xhtml2pdf?expand=0&rev=15
This commit is contained in:
committed by
Git OBS Bridge
parent
a627ec0c95
commit
fb6e196689
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 15 12:56:36 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||||
|
|
||||||
|
- %python3_only -> %python_alternative
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Feb 6 12:19:52 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
Thu Feb 6 12:19:52 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||||
|
|
||||||
|
@@ -41,6 +41,8 @@ Requires: python-PyPDF2 >= 1.26
|
|||||||
Requires: python-html5lib >= 1.0
|
Requires: python-html5lib >= 1.0
|
||||||
Requires: python-reportlab >= 3.0
|
Requires: python-reportlab >= 3.0
|
||||||
Requires: python-six
|
Requires: python-six
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
Conflicts: python-pisa
|
Conflicts: python-pisa
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
@@ -61,16 +63,26 @@ able to generate PDF templates very quickly without learning new technologies.
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/xhtml2pdf
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/pisa
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# as in setup.py: test_suite = "tests", They're not even working yet
|
# as in setup.py: test_suite = "tests", They're not even working yet
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative xhtml2pdf
|
||||||
|
%python_install_alternative pisa
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative xhtml2pdf
|
||||||
|
%python_uninstall_alternative pisa
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
%python3_only %{_bindir}/pisa
|
%python_alternative %{_bindir}/pisa
|
||||||
%python3_only %{_bindir}/xhtml2pdf
|
%python_alternative %{_bindir}/xhtml2pdf
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user