diff --git a/python-pdfkit.spec b/python-pdfkit.spec index c2f276e..d821352 100644 --- a/python-pdfkit.spec +++ b/python-pdfkit.spec @@ -1,30 +1,29 @@ %global pypi_name pdfkit -%global commit0 d1c218ab4bb9e4c3790638070ad41bec6077537e -%global testurl https://raw.githubusercontent.com/JazzCore/python-pdfkit/%{commit0}/tests/ +%global commit0 6f1077dbae22863390915b6f69c8ec77f7c4a83f +%global testurl https://raw.githubusercontent.com/JazzCore/python-%{pypi_name}/%{commit0}/tests/ Name: python-%{pypi_name} -Version: 0.5.0 -Release: 18%{?dist} +Version: 0.6.1 +Release: 1%{?dist} Summary: Wkhtmltopdf python wrapper License: MIT -URL: https://github.com/JazzCore/python-pdfkit -Source0: https://pypi.python.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.zip +URL: https://github.com/JazzCore/python-%{pypi_name} +Source0: %{pypi_source} # tests taken from github due to not part of pypi -Source10: %{testurl}/pdfkit-tests.py -Source11: %{testurl}/fixtures/example.css -Source12: %{testurl}/fixtures/example.html -Source13: %{testurl}/fixtures/example2.css +Source10: %{testurl}/%{pypi_name}-tests.py#/%{commit0}_pdfkit-tests.py +Source11: %{testurl}/fixtures/example.css#/%{commit0}_example.css +Source12: %{testurl}/fixtures/example.html#/%{commit0}_example.html +Source13: %{testurl}/fixtures/example2.css#/%{commit0}_example2.css -BuildArch: noarch +BuildArch: noarch BuildRequires: python3-setuptools BuildRequires: python3-devel BuildRequires: python3 BuildRequires: python3-pytest BuildRequires: wkhtmltopdf -Requires: python3 Requires: wkhtmltopdf %description @@ -56,16 +55,22 @@ rm -rf %{pypi_name}.egg-info mkdir -p tests/fixtures cp -t tests %{SOURCE10} cp -t tests/fixtures %{SOURCE11} %{SOURCE12} %{SOURCE13} +find tests -type f |\ + while read a; do b=$(echo $a |\ + sed -r 's/%{commit0}_//'); \ + mv -v $a $b; done %{__python3} setup.py test %files -n python3-%{pypi_name} -%{!?_licensedir:%global license %%doc} %license LICENSE %doc README.rst HISTORY.rst %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog +* Mon Mar 16 2020 Raphael Groner - 0.6.1-1 +- new version + * Mon Mar 16 2020 Raphael Groner - 0.5.0-18 - add tests