Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.2:Update
python-img2pdf
python-img2pdf.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-img2pdf.spec of Package python-img2pdf
# # spec file for package python-img2pdf # # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without test Name: python-img2pdf Version: 0.3.3 Release: 0 Summary: Python module for converting images to PDF via direct JPEG inclusion License: LGPL-3.0-or-later Group: Development/Languages/Python Url: https://gitlab.mister-muffin.de/josch/img2pdf Source: https://files.pythonhosted.org/packages/source/i/img2pdf/img2pdf-%{version}.tar.gz # allow to run testsuite with python 2 (https://gitlab.mister-muffin.de/josch/img2pdf/issues/60) Patch0: python-img2pdf-test-python2.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros # SECTION test requirements BuildRequires: %{python_module Pillow} BuildRequires: %{python_module pdfrw} BuildRequires: python-enum34 # /SECTION Requires: python-Pillow Requires: python-pdfrw Requires: python-setuptools %ifpython2 Requires: python-enum34 %endif Suggests: python-pdfrw BuildArch: noarch %python_subpackages %description This module losslessly converts raster images to PDF. The file size will not unnecessarily increase. It can, for example, be used to create a PDF document from a number of scans that are only available in JPEG format. Existing solutions would either re-encode the input JPEG files (leading to quality loss) or store them in the Deflate format which results in the PDF becoming unnecessarily large in terms of file size. %prep %setup -q -n img2pdf-%{version} %ifpython2 %patch0 -p1 %endif sed -i -e '/^#!\//, 1d' src/*.py %build %python_build %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %python_exec setup.py test %files %{python_files} %defattr(-,root,root,-) %license LICENSE %doc CHANGES.rst README.md %python3_only %{_bindir}/img2pdf %{python_sitelib}/* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor