diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8d5c31e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/img2pdf-0.2.4.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 01598a3..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# python-img2pdf - -The python-img2pdf package \ No newline at end of file diff --git a/python-img2pdf.spec b/python-img2pdf.spec new file mode 100644 index 0000000..de31c4b --- /dev/null +++ b/python-img2pdf.spec @@ -0,0 +1,62 @@ +%global srcname img2pdf +%global desc Python 3 library and command line utility img2pdf for losslessly converting\ +a bunch of image files into a PDF file. That means that the images\ +are either inserted into the PDF as-is or they are recompressed using\ +lossless compression. Thus, img2pdf usually runs faster and may yield\ +smaller PDF files than an ImageMagick convert command.\ +\ +The img2pdf command complements the pdfimages command. + +Name: python-img2pdf +Version: 0.2.4 +Release: 1%{?dist} +Summary: Lossless images to PDF conversion library and command + +License: LGPLv3+ +URL: https://pypi.org/project/img2pdf +Source0: https://files.pythonhosted.org/packages/source/i/%{srcname}/%{srcname}-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-pillow +BuildRequires: python3-pdfrw +Requires: python3-pillow + +%description +%{desc} + +%package -n python3-img2pdf +Summary: %{summary} +%{?python_provide:%python_provide python3-img2pdf} + +%description -n python3-img2pdf +%{desc} + +%prep +%autosetup -p1 -n %{srcname}-%{version} + + +%build +sed -i '1{/^#!\//d}' src/*.py +%py3_build + + +%install +%py3_install + +%check +%{__python3} setup.py test + +%files -n python3-img2pdf +%{_bindir}/%{srcname} +%{python3_sitelib}/%{srcname}.py +%{python3_sitelib}/jp2.py +%{python3_sitelib}/__pycache__/* +%{python3_sitelib}/%{srcname}-%{version}*.egg-info +%doc README.md + + +%changelog +* Tue May 1 2018 Georg Sauthoff - 0.2.4-1 +- initial packaging diff --git a/sources b/sources new file mode 100644 index 0000000..f8da9fd --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (img2pdf-0.2.4.tar.gz) = c2d99da7076411cf4acabe8929fc8af4005ef1f3e3d9edc953f2731b8d41159c9e4637a803765e1405c595daebfb3d519d4c7903003ce0118d8b0c6e88f11860