lprint/lprint.spec

127 lines
3.6 KiB
RPMSpec
Raw Normal View History

2020-08-17 15:14:26 +00:00
# the package can work with devices from network, so use hardened build
%global _hardened_build 1
Name: lprint
2022-01-12 08:22:20 +00:00
Version: 1.1.0
2022-05-06 08:14:10 +00:00
Release: 3%{?dist}
2020-08-17 15:14:26 +00:00
Summary: A Label Printer Application
License: ASL 2.0
URL: https://www.msweet.org/lprint
Source0: https://github.com/michaelrsweet/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
2022-01-12 08:22:20 +00:00
# UPSTREAM PATCHES
# lprint puts service file into /etc/systemd/system instead of /usr/lib/systemd/system
# - /etc is for admin overrides, distro defaults must be in /usr/lib
# https://github.com/michaelrsweet/lprint/pull/50
Patch01: 0001-configure-Add-with-systemd-option.patch
2022-05-06 08:14:10 +00:00
# the path to the command was hardcoded
# https://github.com/michaelrsweet/lprint/pull/63
Patch02: 0001-configure.ac-Don-t-hardcode-a-path-into-.service-fil.patch
2022-01-12 08:22:20 +00:00
2020-08-17 15:14:26 +00:00
# dns-sd support for register/sharing devices
BuildRequires: pkgconfig(avahi-client) >= 0.7
# uses CUPS API for arrays, options, rastering, HTTP, IPP support
BuildRequires: cups-devel >= 2.2.0
# written in C
BuildRequires: gcc
# for autosetup
2020-11-05 06:57:03 +00:00
BuildRequires: git-core
2020-08-17 15:14:26 +00:00
# PNG printing support
BuildRequires: pkgconfig(libpng) >= 1.6.0
# USB printing support
BuildRequires: pkgconfig(libusb-1.0) >= 1.0
# uses Makefile
BuildRequires: make
2022-01-12 08:22:20 +00:00
# the basic printer application related structures are now implemented in PAPPL
BuildRequires: pkgconfig(pappl) >= 1.1
2020-08-17 15:14:26 +00:00
# using pkg-config in configure script
BuildRequires: pkgconf-pkg-config
2022-01-12 08:22:20 +00:00
# for macros in rpm scriptlets
BuildRequires: systemd-rpm-macros
2020-08-17 15:14:26 +00:00
2022-01-12 08:22:20 +00:00
# lprint server now can run as a systemd service
Requires: systemd
2020-08-17 15:14:26 +00:00
%description
LPrint is a label printer application for macOS and Linux. Basically,
LPrint is a print spooler optimized for label printing. It accepts
"raw" print data as well as PNG images (like those used for shipping
labels by most shippers' current web APIs) and has built-in "drivers"
to send the print data to USB and network-connected label printers.
%prep
%autosetup -S git
%build
# use gcc
export CC=%{__cc}
# get system default CFLAGS and LDFLAGS
%set_build_flags
2022-01-12 08:22:20 +00:00
%configure
2020-08-17 15:14:26 +00:00
%make_build
%install
%make_install DESTDIR=''
2022-01-12 08:22:20 +00:00
%post
%systemd_post lprint.service
%preun
%systemd_preun lprint.service
%postun
%systemd_postun_with_restart lprint.service
2020-08-17 15:14:26 +00:00
%files
2022-01-12 08:22:20 +00:00
%doc README.md DOCUMENTATION.md CONTRIBUTING.md CHANGES.md
2020-08-17 15:14:26 +00:00
%license LICENSE NOTICE
%{_bindir}/lprint
%{_mandir}/man1/lprint-add.1*
%{_mandir}/man1/lprint-cancel.1*
%{_mandir}/man1/lprint-default.1*
%{_mandir}/man1/lprint-delete.1*
%{_mandir}/man1/lprint-devices.1*
%{_mandir}/man1/lprint-drivers.1*
%{_mandir}/man1/lprint-jobs.1*
%{_mandir}/man1/lprint-modify.1*
%{_mandir}/man1/lprint-printers.1*
%{_mandir}/man1/lprint-server.1*
%{_mandir}/man1/lprint-shutdown.1*
%{_mandir}/man1/lprint-status.1*
%{_mandir}/man1/lprint-submit.1*
%{_mandir}/man1/lprint.1*
%{_mandir}/man5/lprint.conf.5*
2022-01-12 08:22:20 +00:00
%{_unitdir}/lprint.service
2020-08-17 15:14:26 +00:00
%changelog
2022-05-06 08:14:10 +00:00
* Fri May 06 2022 Zdenek Dohnal <zdohnal@redhat.com> - 1.1.0-3
- path to lprint was hardcoded in service file
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
2022-01-12 08:22:20 +00:00
* Tue Jan 04 2022 Zdenek Dohnal <zdohnal@redhat.com> - 1.1.0-1
- 2035381 - lprint-1.1.0 is available
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2020-11-05 06:57:03 +00:00
* Thu Nov 05 2020 Zdenek Dohnal <zdohnal@redhat.com> - 1.0-2
- use smaller git-core instead of git
2020-08-17 15:14:26 +00:00
* Mon Aug 17 2020 Zdenek Dohnal <zdohnal@redhat.com> - 1.0-1
- Initial import (#1867587)