system-config-printer.spec revision 15518
10139N/A#
10139N/A# spec file for package system-config-printer
10139N/A#
12279N/A# includes module(s): system-onfig-printer
10139N/A#
10139N/A# Copyright (c) 2008 Sun Microsystems, Inc.
10139N/A# This file and all modifications and additions to the pristine
17185N/A# package are under the same license as the package itself.
10139N/A#
17178N/A# Owner: gheet
17178N/A#
17178N/A%{?!pythonver:%define pythonver 2.4}
10139N/A
10139N/A
10139N/AName: system-config-printer
17379N/ALicense: GPL V2
10139N/AGroup: Development/Languages/Python
10139N/AVersion: 1.0.12
10139N/ARelease: 1
10139N/ADistribution: Java Desktop System
16135N/AVendor: Sun Microsystems, Inc.
12773N/ASummary: Print Manager for CUPS
12773N/ASource: http://cyberelk.net/tim/data/%{name}/1.0.x/%{name}-%{version}.tar.bz2
12773N/APatch1: system-config-printer-01-temp-for-2.4.diff
10139N/APatch2: system-config-printer-02-no-manpage.diff
16353N/A#owner:gheet date:2006-11-03 type:branding
10139N/APatch3: system-config-printer-03-app-path.diff
10139N/A#owner:gheet date:2006-11-03 type:branding bugster:6780731
10139N/APatch4: system-config-printer-04-remove-fedora-specific.diff
10139N/A#owner:fujiwara date:2008-12-12 type:feature bugster:6783984 bugid:122,124
10139N/APatch5: system-config-printer-05-g11n-textdomain.diff
10139N/AURL: http://cyberelk.net/tim/software/%{name}
10139N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
10139N/ADocdir: %{_defaultdocdir}/doc
10139N/AAutoreqprov: off
10139N/APrereq: /sbin/ldconfig
10139N/ARequires: SUNWpycups
10139N/A# uncomment this once we sorted samba 3.2.x
10139N/A#Requires: SUNWpysmbc
10139N/ABuildRequires: SUNWpycups
10139N/A#BuildRequires: SUNWpysmbc
10139N/A
10139N/A%description
10139N/ASystem Config Printer is a tool is to configure a CUPS server (often the local machine)
10139N/Ausing the CUPS API. The tool is written in Python, using pygtk for the graphical parts
10139N/Aand with some Python bindings (pycups) for the CUPS API.
10139N/A
10139N/AIt is largely the same as using the CUPS web interface for configuring printers, but
10139N/Ahas the advantage of being a native application rather than a web page.
10139N/A
10139N/A%prep
10139N/A%setup -q -n %{name}-%{version}
10139N/A%patch01 -p1
10139N/A%patch02 -p0
10139N/A%patch03 -p0
10139N/A%patch04 -p1
10139N/A%patch05 -p1
10139N/A
10139N/A%build
10139N/Aintltoolize --force --copy
10139N/Aaclocal
10139N/Aautomake -a -c -f
10139N/Aautoconf
10139N/A./configure --prefix=/usr --libdir=/usr/lib --sysconfdir=/etc
10139N/Amake install DESTDIR=$RPM_BUILD_ROOT
10139N/A
10139N/A%install
10139N/Apython setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT
10139N/A
10139N/A# move private directory from /usr/share to /usr/lib
10139N/Amkdir -p $RPM_BUILD_ROOT%{_libdir}/%{name}
10139N/Amv $RPM_BUILD_ROOT%{_datadir}/%{name}/*.py \
10139N/A $RPM_BUILD_ROOT%{_libdir}/%{name}
10139N/Amv $RPM_BUILD_ROOT%{_datadir}/%{name}/troubleshoot \
10139N/A $RPM_BUILD_ROOT%{_libdir}/%{name}
10139N/A
10139N/A# Move system-config-printer-applet to /usr/lib/%{name}
10139N/Amv $RPM_BUILD_ROOT%{_bindir}/system-config-printer-applet \
11139N/A $RPM_BUILD_ROOT%{_libdir}/%{name}
12773N/A
12773N/A# do not deliver my-default-printer
12773N/Arm $RPM_BUILD_ROOT%{_bindir}/my-default-printer
12773N/Arm $RPM_BUILD_ROOT%{_libdir}/%{name}/my-default-printer.py
12773N/A
10139N/A# Don't need desktop files as they are shared and managed by sym links
10139N/Arm -rf $RPM_BUILD_ROOT%{_datadir}/applications
10139N/Arm -rf $RPM_BUILD_ROOT/etc/xdg
10139N/A
10139N/A# move to vendor-packages, but don't provide .pyc files
10139N/Amkdir -p $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages
10139N/Arm $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages/cupshelpers/*.pyc
10139N/Amv $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages/* \
10139N/A $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages/
10139N/Armdir $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages
10139N/A
10139N/A%clean
10139N/Arm -rf $RPM_BUILD_ROOT
10139N/A
10139N/A%changelog
10139N/A* Fri Dec 12 2008 - takao.fujiwara@sun.com
10139N/A- Add patch 05-g11n-textdomain.diff to set textdomain.
10139N/A* Thu Dec 11 2008 - ghee.teo@sun.com
10139N/A uprev to 1.0.12 tarball and added patch 04-remove-fedora-specific.diff
10139N/A* Wed Nov 05 2008 - ghee.teo@sun.com
10139N/A- initial version
10139N/A