Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
graphics
img2pdf
img2pdf.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File img2pdf.spec of Package img2pdf
# # spec file for package img2pdf # # Copyright (c) 2024 SUSE LLC # # 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/ # %{?sle15_python_module_pythons} Name: img2pdf Version: 0.5.1 Release: 0 Summary: Python module for converting images to PDF via direct JPEG inclusion License: LGPL-3.0-or-later URL: https://gitlab.mister-muffin.de/josch/img2pdf Source: https://files.pythonhosted.org/packages/source/i/img2pdf/img2pdf-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: ImageMagick BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-Pillow Requires: python-pdfrw Requires: python-pikepdf Requires: python-setuptools Requires(post): update-alternatives Requires(postun):update-alternatives %if "%{python_flavor}" == "%{primary_python}" Provides: img2pdf %endif Suggests: python-pdfrw BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module Pillow} BuildRequires: %{python_module numpy} BuildRequires: %{python_module pdfrw} BuildRequires: %{python_module pikepdf} BuildRequires: %{python_module pytest} BuildRequires: %{python_module scipy} # /SECTION %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} sed -i -e '/^#!\//, 1d' src/*.py %build %python_build %install %python_install %python_clone -a %{buildroot}%{_bindir}/img2pdf-gui %python_clone -a %{buildroot}%{_bindir}/img2pdf %python_expand %fdupes %{buildroot}%{$python_sitelib} %check # other tests looks more like a integration tests, needs # mupdf, imagemagick, pdftocairo, pdfimages, tiff-tools %pytest -k '(test_general or test_layout) and not animation.gif' %post %python_install_alternative img2pdf-gui %python_install_alternative img2pdf %postun %python_uninstall_alternative img2pdf-gui %python_uninstall_alternative img2pdf %files %{python_files} %license LICENSE %doc CHANGES.rst README.md %python_alternative %{_bindir}/img2pdf %python_alternative %{_bindir}/img2pdf-gui %{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