pappl/pappl.spec

180 lines
5.7 KiB
RPMSpec
Raw Normal View History

2021-04-28 06:26:40 +00:00
#
# 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.
#
Summary: Printer Application Framework (PAPPL)
Name: pappl
2024-01-11 15:48:37 +00:00
Version: 1.4.4
Release: 4%{?dist}
License: Apache-2.0 WITH LLVM-exception
2021-04-28 06:26:40 +00:00
Source: https://github.com/michaelrsweet/pappl/releases/download/v%{version}/pappl-%{version}.tar.gz
Url: https://www.msweet.org/pappl
2024-01-11 15:48:37 +00:00
# https://github.com/michaelrsweet/pappl/pull/320
Patch001: 0001-device-network.c-Fix-crash-in-pappl_dnssd_list-with-.patch
2021-04-28 06:26:40 +00:00
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
%autosetup -S git
%build
2021-12-17 11:48:08 +00:00
#need this to enable build with '-D_TIME_BITS=64' flag
export CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
2024-01-11 15:48:37 +00:00
%configure --enable-libjpeg\
--enable-libpng\
--enable-libusb\
--disable-static\
--with-dnssd=avahi\
--with-tls=gnutls\
--with-dsoflags="$DSOFLAGS -Wl,-z,now,--as-needed"
# add --enable-libpam once there is a new version - cosmetic issue, libpam is used when
# found in buildroot, which is taken care of by BuilrRequires for pam-devel
2021-04-28 06:26:40 +00:00
%make_build
%install
%make_install BUILDROOT=%{buildroot}
%check
2024-01-11 15:48:37 +00:00
make test
2021-04-28 06:26:40 +00:00
%files
%{_libdir}/libpappl.so.*
%doc *.md
%license LICENSE NOTICE
%files devel
%doc %{_docdir}/pappl/*
%dir %{_datadir}/pappl
2024-01-11 15:48:37 +00:00
%dir %{_docdir}/pappl
2021-04-28 06:26:40 +00:00
%dir %{_includedir}/pappl
2024-01-11 15:48:37 +00:00
%{_bindir}/pappl-makeresheader
2021-04-28 06:26:40 +00:00
%{_datadir}/pappl/*
%{_includedir}/pappl/*.h
%{_libdir}/libpappl.so
%{_libdir}/pkgconfig/pappl.pc
2024-01-11 15:48:37 +00:00
%{_mandir}/man1/pappl.1.gz
%{_mandir}/man1/pappl-makeresheader.1.gz
%{_mandir}/man3/pappl-client.3.gz
%{_mandir}/man3/pappl-device.3.gz
%{_mandir}/man3/pappl-job.3.gz
%{_mandir}/man3/pappl-log.3.gz
%{_mandir}/man3/pappl-mainloop.3.gz
%{_mandir}/man3/pappl-printer.3.gz
%{_mandir}/man3/pappl-resource.3.gz
%{_mandir}/man3/pappl-system.3.gz
2021-04-28 06:26:40 +00:00
%changelog
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.4.4-4
- Bump release for June 2024 mass rebuild
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
2024-01-11 15:48:37 +00:00
* Thu Jan 11 2024 Zdenek Dohnal <zdohnal@redhat.com> - 1.4.4-1
- 2255704 - pappl-1.4.4 is available
2023-12-18 06:42:23 +00:00
* Mon Dec 18 2023 Richard Lescak <rlescak@redhat.com> - 1.4.3-1
- rebase to version 1.4.3 (#2250222)
2023-10-18 07:21:00 +00:00
* Wed Oct 18 2023 Richard Lescak <rlescak@redhat.com> - 1.4.2-1
- rebase to version 1.4.2 (#2238033)
2023-10-13 16:47:17 +00:00
* Fri Oct 13 2023 Richard Lescak <rlescak@redhat.com> - 1.4.1-1
- rebase to version 1.4.1 (#2238033)
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
2023-05-11 10:58:13 +00:00
* Thu May 11 2023 Richard Lescak <rlescak@redhat.com> - 1.3.2-1
- rebase to version 1.3.2 (#2195988)
* Thu Apr 13 2023 Zdenek Dohnal <zdohnal@redhat.com> - 1.3.1-3
- fix crash due invalid buffer size in `write_log()`
- use the correct license tag
2023-02-16 13:01:12 +00:00
* Thu Feb 16 2023 Richard Lescak <rlescak@redhat.com> - 1.3.1-2
- SPDX migration
2023-01-19 08:35:39 +00:00
* Thu Jan 19 2023 Richard Lescak <rlescak@redhat.com> - 1.3.1-1
- Rebase to version 1.3.1 (#2157744)
2022-12-16 16:16:24 +00:00
* Fri Dec 16 2022 Richard Lescak <rlescak@redhat.com> - 1.3.0-1
- Rebase to version 1.3.0 (#2150441)
2022-10-21 13:20:24 +00:00
* Fri Oct 21 2022 Richard Lescak <rlescak@redhat.com> - 1.2.3-1
- Rebase to version 1.2.3 (#2133319)
2022-09-27 11:57:51 +00:00
* Tue Sep 27 2022 Richard Lescak <rlescak@redhat.com> - 1.2.2-1
- Rebase to version 1.2.2 (#2129391)
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
2022-06-21 12:54:39 +00:00
* Tue Jun 21 2022 Richard Lescak <rlescak@redhat.com> - 1.2.1-2
- link libpappl with -Wl,-z,now
2022-06-21 10:20:13 +00:00
* Tue Jun 21 2022 Richard Lescak <rlescak@redhat.com> - 1.2.1-1
- Rebase to version 1.2.1 (#2078148)
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
2021-12-17 11:48:08 +00:00
* Fri Dec 17 2021 Richard Lescak <rlescak@redhat.com> - 1.1.0-1
- Rebase to version 1.1.0 (#2020646)
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
2021-12-17 11:48:08 +00:00
* Tue May 25 2021 Richard Lescak <rlescak@redhat.com> - 1.0.3-1
2021-05-25 09:10:43 +00:00
- Update to version 1.0.3 (#1962959)
2021-12-17 11:48:08 +00:00
* Tue Apr 13 2021 Richard Lescak <rlescak@redhat.com> - 1.0.2-2
2021-04-28 06:26:40 +00:00
- Added patch to fix tests, added DSOFLAGS in build, made changes according to review.
2021-12-17 11:48:08 +00:00
* Fri Mar 26 2021 Richard Lescak <rlescak@redhat.com> - 1.0.2-1
2021-04-28 06:26:40 +00:00
- Initial version of package