# # RPM spec file for the Printer Application Framework # # Copyright © 2020-2021 by Michael R Sweet # # Licensed under Apache License v2.0. See the file "LICENSE" for more # information. # %if 0%{?fedora} >= 35 %global optflags %(echo %{optflags} -D_FILE_OFFSET_BITS=64) %endif %global forgeurl https://github.com/michaelrsweet/pappl Version: 1.3.1 %global tag v%{version} %forgemeta Summary: Printer Application Framework (PAPPL) Name: pappl Release: 1%{?dist} License: ASL 2.0 Source: %{forgesource} Url: https://www.msweet.org/pappl BuildRequires: avahi-devel BuildRequires: cups-devel BuildRequires: gcc BuildRequires: git-core BuildRequires: glibc-devel BuildRequires: gnutls-devel BuildRequires: libjpeg-turbo-devel BuildRequires: libpng-devel BuildRequires: libusbx-devel BuildRequires: make BuildRequires: pkgconfig BuildRequires: pam-devel BuildRequires: zlib-devel %description PAPPL is a simple C-based framework/library for developing CUPS Printer Applications, which are the recommended replacement for printer drivers. PAPPL supports JPEG, PNG, PWG Raster, Apple Raster, and "raw" printing to printers connected via USB and network (AppSocket/JetDirect) connections. PAPPL provides access to the printer via its embedded IPP Everywhere™ service, either local to the computer or on your whole network, which can then be discovered and used by any application. PAPPL is licensed under the Apache License Version 2.0 with an exception to allow linking against GPL2/LGPL2 software (like older versions of CUPS), so it can be used freely in any project you'd like. %package devel Summary: PAPPL - development environment Requires: %{name}%{?_isa} = %{version}-%{release} BuildRequires: avahi-devel %description devel This package provides the PAPPL headers and development environment. %prep %forgeautosetup %build export DSOFLAGS="$DSOFLAGS -Wl,--as-needed" %configure %make_build %install %make_install BUILDROOT=%{buildroot} # Removal of the static library. rm -f %{buildroot}/%{_libdir}/libpappl.a %files %{_libdir}/libpappl.so.* %doc *.md %license LICENSE NOTICE %files devel %{_bindir}/* %doc %{_docdir}/pappl/* %{_mandir}/*/* %dir %{_datadir}/pappl %dir %{_includedir}/pappl %{_datadir}/pappl/* %{_includedir}/pappl/*.h %{_libdir}/libpappl.so %{_libdir}/pkgconfig/pappl.pc %changelog * Wed Feb 1 2023 Brandon Nielsen 1.3.1-1 - Update to 1.3.1 - Temporarily disable testpappl because it causes a buffer overflow * Thu Aug 25 2022 Brandon Nielsen 1.2.1-1 - Update to 1.2.1 * Mon Nov 15 2021 Brandon Nielsen 1.1b3-1.20211116gitec2358f - Update to 1.1b3 * Wed Sep 22 2021 Brandon Nielsen 1.1b2-1.20210922git45f94b3 - Quick and dirty packaging of 1.1b2 for test purposes * Tue May 25 2021 Richard Lescak rlescak@redhat.com - 1.0.3-1 - Update to version 1.0.3 (#1962959) * Tue Apr 13 2021 Richard Lescak rlescak@redhat.com - 1.0.2-2 - Added patch to fix tests, added DSOFLAGS in build, made changes according to review. * Fri Mar 26 2021 Richard Lescak rlescak@redhat.com - 1.0.2-1 - Initial version of package