6b27f80f9c
No more rpmlintrc needed.. has been fixed in Factory OBS-URL: https://build.opensuse.org/request/show/71021 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/system-config-printer?expand=0&rev=81
172 lines
5.2 KiB
RPMSpec
172 lines
5.2 KiB
RPMSpec
#
|
|
# spec file for package system-config-printer
|
|
#
|
|
# Copyright (c) 2011 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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: system-config-printer
|
|
License: GPLv2+
|
|
Group: Hardware/Printing
|
|
Version: 1.3.2
|
|
Release: 1
|
|
Summary: A printer administration tool
|
|
Url: http://cyberelk.net/tim/software/system-config-printer/
|
|
Source0: http://cyberelk.net/tim/data/system-config-printer/1.3/system-config-printer-%{version}.tar.bz2
|
|
# PATCH-FIX-OPENSUSE system-config-printer-icon-brp-friendly.patch vuntz@novell.com -- brp checks don't like the printer icon name, so we have to use something else
|
|
Patch13: system-config-printer-icon-brp-friendly.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Obsoletes: gnome-cups-manager <= 0.33
|
|
BuildRequires: cups-devel
|
|
# For directory ownership
|
|
BuildRequires: dbus-1
|
|
BuildRequires: desktop-file-utils
|
|
BuildRequires: fdupes
|
|
BuildRequires: glib2-devel
|
|
BuildRequires: gnome-icon-theme
|
|
BuildRequires: gnome-patch-translation
|
|
# For directory ownership
|
|
BuildRequires: hicolor-icon-theme
|
|
BuildRequires: intltool
|
|
BuildRequires: libudev-devel
|
|
BuildRequires: libusb-compat-devel
|
|
BuildRequires: python-devel
|
|
BuildRequires: python-xml
|
|
BuildRequires: update-desktop-files
|
|
BuildRequires: xmlto
|
|
Requires: cups
|
|
Requires: dbus-1-x11
|
|
Requires: dbus-1-python
|
|
Requires: desktop-file-utils
|
|
Requires: python-cups
|
|
Requires: python-cupshelpers
|
|
Requires: python-gnome
|
|
Requires: python-gobject2
|
|
Requires: python-gtk
|
|
Requires: python-notify
|
|
Requires: python-smbc
|
|
Recommends: %{name}-lang
|
|
Recommends: cups-pk-helper
|
|
Recommends: udev-configure-printer
|
|
%py_requires
|
|
%if %suse_version <= 1110
|
|
%define python_sitelib %{py_sitedir}
|
|
%endif
|
|
|
|
%description
|
|
system-config-printer is a graphical user interface that allows the
|
|
user to configure a CUPS print server.
|
|
|
|
%package -n python-cupshelpers
|
|
License: GPLv2+
|
|
Summary: High-level Python Bindings for CUPS
|
|
Group: Hardware/Printing
|
|
Requires: python-cups
|
|
%py_requires
|
|
|
|
%description -n python-cupshelpers
|
|
This package contains high-level python bindings for CUPS, and can be
|
|
used on top of python-cups.
|
|
|
|
%package -n udev-configure-printer
|
|
License: GPLv2+
|
|
Summary: Utility to autoconfigure printers when plugged
|
|
Group: Hardware/Printing
|
|
Obsoletes: cups-autoconfig <= 0.1.0
|
|
Requires: dbus-1-python
|
|
Requires: python-cups
|
|
Requires: python-cupshelpers
|
|
%py_requires
|
|
|
|
%description -n udev-configure-printer
|
|
This package contains an utility that will ensure printers get
|
|
automatically configured when plugged on the computer.
|
|
|
|
|
|
%lang_package
|
|
%prep
|
|
%setup -q
|
|
%patch13 -p1
|
|
|
|
%build
|
|
%if %suse_version > 1110
|
|
%configure \
|
|
--with-udev-rules
|
|
%else
|
|
%configure
|
|
%endif
|
|
|
|
%install
|
|
%makeinstall udevrulesdir=/lib/udev/rules.d udevhelperdir=/lib/udev
|
|
for size in 8x8 16x16 22x22 24x24 32x32 48x48; do
|
|
if test -f %{_datadir}/icons/gnome/$size/devices/printer.png; then
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/$size/apps
|
|
cp -a %{_datadir}/icons/gnome/$size/devices/printer.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/$size/apps/%{name}.png
|
|
fi
|
|
done
|
|
%suse_update_desktop_file print-applet
|
|
%suse_update_desktop_file system-config-printer X-SuSE-PrintingUtility X-SuSE-ControlCenter-Hardware
|
|
%fdupes $RPM_BUILD_ROOT/%{py_sitedir}
|
|
%find_lang %{name} %{?no_lang_C}
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%post
|
|
%desktop_database_post
|
|
%icon_theme_cache_post
|
|
|
|
%postun
|
|
%desktop_database_postun
|
|
%icon_theme_cache_postun
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc ChangeLog COPYING README
|
|
%{_bindir}/%{name}
|
|
%{_bindir}/%{name}-applet
|
|
%{_bindir}/scp-dbus-service
|
|
%{_datadir}/%{name}
|
|
%{_datadir}/applications/*.desktop
|
|
%{_datadir}/icons/hicolor/*/apps/*
|
|
%{_datadir}/dbus-1/interfaces/org.fedoraproject.Config.Printing.xml
|
|
%{_datadir}/dbus-1/services/org.fedoraproject.Config.Printing.service
|
|
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/com.redhat.NewPrinterNotification.conf
|
|
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/com.redhat.PrinterDriversInstaller.conf
|
|
%config(noreplace) %{_sysconfdir}/cupshelpers/preferreddrivers.xml
|
|
%{_sysconfdir}/xdg/autostart/*.desktop
|
|
%{_mandir}/man1/*
|
|
|
|
%files -n python-cupshelpers
|
|
%defattr(-,root,root,-)
|
|
%exclude %{python_sitelib}/cupshelpers/*.pyc
|
|
%{python_sitelib}/cupshelpers
|
|
%{python_sitelib}/cupshelpers*.egg-info
|
|
%if %suse_version > 1110
|
|
|
|
%files -n udev-configure-printer
|
|
%defattr(-,root,root,-)
|
|
%dir /lib/udev
|
|
%dir /lib/udev/rules.d
|
|
/lib/udev/rules.d/*.rules
|
|
/lib/udev/udev-add-printer
|
|
/lib/udev/udev-configure-printer
|
|
%endif
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%changelog
|