64 lines
1.7 KiB
RPMSpec
64 lines
1.7 KiB
RPMSpec
#
|
|
# spec file for package slaby-scripts
|
|
#
|
|
# Copyright (c) 2022 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/
|
|
#
|
|
|
|
|
|
Name: capt
|
|
Version: 0
|
|
Release: 0
|
|
License: GPL-2.0-only
|
|
Group: Productivity/Other
|
|
Summary: Linux driver for Canon printers
|
|
URL: https://github.com/jirislaby/capt
|
|
Source: %{name}-%{version}.tar.xz
|
|
BuildRequires: gcc
|
|
BuildRequires: xz
|
|
|
|
%description
|
|
CAPT Linux driver for Canon LBP-810 and Canon LBP-1120.
|
|
|
|
%prep
|
|
%autosetup
|
|
|
|
%build
|
|
%make_build CFLAGS="%{build_cflags}"
|
|
|
|
%install
|
|
%make_install
|
|
|
|
%post
|
|
GHOSTSCRIPT=/etc/apparmor.d/ghostscript
|
|
if [ "$1" -eq 1 -a -f "$GHOSTSCRIPT" -a -x /usr/bin/systemctl ] &&
|
|
! grep -q capt "$GHOSTSCRIPT" &&
|
|
/usr/bin/systemctl is-active --quiet apparmor.service; then
|
|
cat <<-EOF
|
|
Don't forget to add this to $GHOSTSCRIPT:
|
|
/{,usr/}bin/{ba,da,}sh ix,
|
|
/usr/bin/capt ix,
|
|
and reload apparmor:
|
|
systemctl reload apparmor.service
|
|
EOF
|
|
fi
|
|
|
|
%files
|
|
%{_bindir}/capt
|
|
%{_bindir}/capt-print
|
|
%dir %{_datadir}/cups/
|
|
%dir %{_datadir}/cups/model/
|
|
%{_datadir}/cups/model/Canon-LBP-810-capt.ppd
|
|
|
|
%changelog
|