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