2007-01-16 00:08:17 +01:00
|
|
|
#
|
|
|
|
# spec file for package cups-backends (Version 1.0)
|
|
|
|
#
|
2009-05-29 00:51:44 +02:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:08:17 +01:00
|
|
|
#
|
2009-05-29 00:51:44 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:08:17 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2009-05-29 00:51:44 +02:00
|
|
|
|
2007-01-16 00:08:17 +01:00
|
|
|
Name: cups-backends
|
|
|
|
BuildRequires: cups-devel hal-devel
|
|
|
|
Summary: Various Free Backends for the cups Package
|
2007-07-30 20:53:31 +02:00
|
|
|
License: GPL v2 or later
|
2007-01-16 00:08:17 +01:00
|
|
|
Group: Hardware/Printing
|
|
|
|
Version: 1.0
|
2009-09-17 01:43:10 +02:00
|
|
|
Release: 255
|
2007-01-16 00:08:17 +01:00
|
|
|
Source0: http://www.srz.de/Members/bla/cups/backend/hpnpf/hpnpf.tgz
|
|
|
|
Source1: http://www.srz.de/Members/bla/cups/backend/hpnpf/hpnpf.txt
|
2009-05-29 00:51:44 +02:00
|
|
|
Source2: cups-pipe.sh
|
2007-01-16 00:08:17 +01:00
|
|
|
Source4: hal.c
|
|
|
|
Patch0: hpnpf.patch
|
2007-07-30 20:53:31 +02:00
|
|
|
Patch1: cups-backends-silenct-hal.patch
|
2007-01-16 00:08:17 +01:00
|
|
|
Requires: cups-libs, dbus-1, hal
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains free additional backends for CUPS.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Jiri Srain <jsrain@suse.cz>
|
|
|
|
Jeffrey Stedfast <fejj@novell.com>
|
2009-05-29 00:51:44 +02:00
|
|
|
Klaus Singvogel <kssingvo@suse.de>
|
|
|
|
Johannes Meixner <jsmeix@suse.de>
|
2007-01-16 00:08:17 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -c -T
|
|
|
|
mkdir hpnpf
|
|
|
|
cd hpnpf
|
|
|
|
tar xzvvf %{SOURCE0}
|
|
|
|
cd ..
|
|
|
|
cp -a %{SOURCE4} .
|
2007-07-30 20:53:31 +02:00
|
|
|
%patch1 -p0
|
2007-01-16 00:08:17 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
gcc $RPM_OPT_FLAGS -fPIC -fPIE -pie -DDBUS_API_SUBJECT_TO_CHANGE \
|
|
|
|
-I%{_includedir}/dbus-1.0/ -I%{_libdir}/dbus-1.0/include/ \
|
2009-09-17 01:43:10 +02:00
|
|
|
hal.c -o hal -ldbus-1 -lhal
|
2007-01-16 00:08:17 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/cups/backend
|
2009-05-29 00:51:44 +02:00
|
|
|
install -m 755 -D ${RPM_SOURCE_DIR}/cups-pipe.sh $RPM_BUILD_ROOT%{_libdir}/cups/backend/pipe
|
2007-01-16 00:08:17 +01:00
|
|
|
install -m 755 -D hal $RPM_BUILD_ROOT%{_libdir}/cups/backend/hal
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root,root)
|
|
|
|
%dir %{_libdir}/cups
|
|
|
|
%dir %{_libdir}/cups/backend
|
|
|
|
%{_libdir}/cups/backend/*
|
|
|
|
|
2007-07-30 20:53:31 +02:00
|
|
|
%changelog
|