forked from pool/cups-airprint
87 lines
2.8 KiB
RPMSpec
87 lines
2.8 KiB
RPMSpec
|
#
|
||
|
# spec file for package cups-airprint
|
||
|
#
|
||
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||
|
#
|
||
|
# 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 http://bugs.opensuse.org/
|
||
|
#
|
||
|
|
||
|
|
||
|
Name: cups-airprint
|
||
|
Version: 1.0
|
||
|
Release: 0
|
||
|
Summary: Airprint for CUPS printers
|
||
|
License: MIT
|
||
|
Group: Hardware/Printing
|
||
|
Url: https://github.com/tjfontaine/airprint-generate
|
||
|
Source0: https://raw.githubusercontent.com/tjfontaine/airprint-generate/master/airprint-generate.py
|
||
|
Source10: apple.types
|
||
|
Source11: local.convs
|
||
|
Source20: airprint-generate.py.8
|
||
|
Source21: CREDITS.txt
|
||
|
Source22: README.SUSE
|
||
|
Source23: LICENSE.txt
|
||
|
Patch0: airprint-generate.patch
|
||
|
Requires: avahi
|
||
|
Requires: cups >= 1.5.4
|
||
|
Requires: python-cups
|
||
|
Requires: python-xml
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
BuildArch: noarch
|
||
|
|
||
|
%description
|
||
|
Tools for setting up AirPrint for CUPS printers on openSUSE.
|
||
|
|
||
|
AirPrint is an Apple technology that helps you create full-quality printed
|
||
|
output from iOS or OS X devices without the need to download or install
|
||
|
drivers.
|
||
|
|
||
|
Some printers support AirPrint natively; for those you don't need this package.
|
||
|
For any other printer, if it can be printed to via CUPS on openSUSE, this
|
||
|
package provides the additional tools and configuration files needed to add
|
||
|
AirPrint support.
|
||
|
|
||
|
Some post-install configuration changes have to be performed manually to make
|
||
|
AirPrint work; please follow the instructions in:
|
||
|
%{_docdir}/%{name}/README.SUSE
|
||
|
|
||
|
%prep
|
||
|
%setup -q -c -T
|
||
|
cp %{SOURCE0} %{SOURCE10} %{SOURCE11} .
|
||
|
cp %{SOURCE21} %{SOURCE22} %{SOURCE23} .
|
||
|
%patch0
|
||
|
|
||
|
%build
|
||
|
|
||
|
%install
|
||
|
mkdir -p %{buildroot}%{_prefix}/sbin
|
||
|
install airprint-generate.py %{buildroot}%{_prefix}/sbin
|
||
|
|
||
|
mkdir -p %{buildroot}%{_datadir}/cups/mime
|
||
|
install -m 644 apple.types local.convs %{buildroot}%{_datadir}/cups/mime
|
||
|
|
||
|
mkdir -p %{buildroot}%{_mandir}/man8
|
||
|
install -m 644 %{SOURCE20} %{buildroot}/%{_mandir}/man8
|
||
|
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%{_sbindir}/airprint-generate.py
|
||
|
%dir %{_datadir}/cups/
|
||
|
%dir %{_datadir}/cups/mime
|
||
|
%{_datadir}/cups/mime/apple.types
|
||
|
%{_datadir}/cups/mime/local.convs
|
||
|
%doc CREDITS.txt LICENSE.txt README.SUSE
|
||
|
%{_mandir}/man8/airprint-generate.py.8.gz
|
||
|
|
||
|
%changelog
|