File cups-backends.spec of Package cups-backends

# spec file for package cups-backends
# Copyright (c) 2014 SUSE LINUX Products 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

Name:           cups-backends
Summary:        Additional Backends for CUPS
License:        GPL-2.0
Group:          Hardware/Printing
Version:        1.1
Release:        0
Source0:        pipe
Source100:      COPYING
Requires:       cups
# Conflict with foomatic-filters because /usr/lib/cups/backend/beh is provided by it.
# Instead of foomatic-filters now cups-filters-foomatic-rip should be used.
# Because cups-filters-foomatic-rip provides the RPM capability "foomatic-filters"
# there cannot be an unversioned conflict with foomatic-filters here
# (otherwise cups-backends would conflict with cups-filters-foomatic-rip).
# Because cups-filters-foomatic-rip provides at least "foomatic-filters ="
# (see cups-filters.spec) and because we will not upgrade the foomatic-filters package
# (its current version is 4.0.12) a conflict with foomatic-filters < is used
# to let cups-backends only conflict with the old foomatic-filters package
# but not with the new cups-filters-foomatic-rip package:
Conflicts:      foomatic-filters <
# According to RPMLINT:
# "The package should be of the noarch architecture because it doesn't contain any binaries."
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

This package contains free additional backends for CUPS.

# There is nothing to do here because Source0 and Source1 are installed directly from RPM_SOURCE_DIR.

# There is nothing to build because Source0 is a Bash script and Source1 is a Perl script.
# At least test if the syntax is o.k.:
bash -n ${RPM_SOURCE_DIR}/pipe
perl -c ${RPM_SOURCE_DIR}/beh &>/dev/null

mkdir -p $RPM_BUILD_ROOT/usr/lib/cups/backend
# Source0:
install -m 755 ${RPM_SOURCE_DIR}/pipe $RPM_BUILD_ROOT/usr/lib/cups/backend/pipe
# Source1: beh
install -m 755 ${RPM_SOURCE_DIR}/beh $RPM_BUILD_ROOT/usr/lib/cups/backend/beh

%dir /usr/lib/cups
%dir /usr/lib/cups/backend

openSUSE Build Service is sponsored by