14658
|
1 |
#
|
|
2 |
# spec file for package system-config-printer
|
|
3 |
#
|
|
4 |
# includes module(s): system-onfig-printer
|
|
5 |
#
|
|
6 |
# Copyright (c) 2008 Sun Microsystems, Inc.
|
|
7 |
# This file and all modifications and additions to the pristine
|
|
8 |
# package are under the same license as the package itself.
|
|
9 |
#
|
|
10 |
# Owner: gheet
|
|
11 |
#
|
|
12 |
%{?!pythonver:%define pythonver 2.4}
|
|
13 |
|
|
14 |
|
|
15 |
Name: system-config-printer
|
|
16 |
License: GPL V2
|
|
17 |
Group: Development/Languages/Python
|
14756
|
18 |
Version: 1.0.12
|
14658
|
19 |
Release: 1
|
|
20 |
Distribution: Java Desktop System
|
|
21 |
Vendor: Sun Microsystems, Inc.
|
|
22 |
Summary: Print Manager for CUPS
|
|
23 |
Source: http://cyberelk.net/tim/data/%{name}/1.0.x/%{name}-%{version}.tar.bz2
|
|
24 |
Patch1: system-config-printer-01-temp-for-2.4.diff
|
|
25 |
Patch2: system-config-printer-02-no-manpage.diff
|
14756
|
26 |
#owner:gheet date:2006-11-03 type:branding
|
14658
|
27 |
Patch3: system-config-printer-03-app-path.diff
|
14756
|
28 |
#owner:gheet date:2006-11-03 type:branding bugster:6780731
|
|
29 |
Patch4: system-config-printer-04-remove-fedora-specific.diff
|
14767
|
30 |
#owner:fujiwara date:2008-12-12 type:feature bugster:6783984 bugid:122,124
|
14759
|
31 |
Patch5: system-config-printer-05-g11n-textdomain.diff
|
14658
|
32 |
URL: http://cyberelk.net/tim/software/%{name}
|
|
33 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
34 |
Docdir: %{_defaultdocdir}/doc
|
|
35 |
Autoreqprov: off
|
|
36 |
Prereq: /sbin/ldconfig
|
|
37 |
Requires: SUNWpycups
|
|
38 |
# uncomment this once we sorted samba 3.2.x
|
|
39 |
#Requires: SUNWpysmbc
|
|
40 |
BuildRequires: SUNWpycups
|
|
41 |
#BuildRequires: SUNWpysmbc
|
|
42 |
|
|
43 |
%description
|
|
44 |
System Config Printer is a tool is to configure a CUPS server (often the local machine)
|
|
45 |
using the CUPS API. The tool is written in Python, using pygtk for the graphical parts
|
|
46 |
and with some Python bindings (pycups) for the CUPS API.
|
|
47 |
|
|
48 |
It is largely the same as using the CUPS web interface for configuring printers, but
|
|
49 |
has the advantage of being a native application rather than a web page.
|
|
50 |
|
|
51 |
%prep
|
|
52 |
%setup -q -n %{name}-%{version}
|
14766
|
53 |
%patch01 -p1
|
14658
|
54 |
%patch02 -p0
|
|
55 |
%patch03 -p0
|
14756
|
56 |
%patch04 -p1
|
14759
|
57 |
%patch05 -p1
|
14658
|
58 |
|
|
59 |
%build
|
|
60 |
intltoolize --force --copy
|
|
61 |
aclocal
|
|
62 |
automake -a -c -f
|
|
63 |
autoconf
|
|
64 |
./configure --prefix=/usr --libdir=/usr/lib --sysconfdir=/etc
|
|
65 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
66 |
|
|
67 |
%install
|
|
68 |
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT
|
|
69 |
|
|
70 |
# move private directory from /usr/share to /usr/lib
|
|
71 |
mkdir -p $RPM_BUILD_ROOT%{_libdir}/%{name}
|
|
72 |
mv $RPM_BUILD_ROOT%{_datadir}/%{name}/*.py \
|
|
73 |
$RPM_BUILD_ROOT%{_libdir}/%{name}
|
|
74 |
mv $RPM_BUILD_ROOT%{_datadir}/%{name}/troubleshoot \
|
|
75 |
$RPM_BUILD_ROOT%{_libdir}/%{name}
|
|
76 |
|
|
77 |
# Move system-config-printer-applet to /usr/lib/%{name}
|
|
78 |
mv $RPM_BUILD_ROOT%{_bindir}/system-config-printer-applet \
|
|
79 |
$RPM_BUILD_ROOT%{_libdir}/%{name}
|
|
80 |
|
|
81 |
# do not deliver my-default-printer
|
|
82 |
rm $RPM_BUILD_ROOT%{_bindir}/my-default-printer
|
|
83 |
rm $RPM_BUILD_ROOT%{_libdir}/%{name}/my-default-printer.py
|
|
84 |
|
|
85 |
# Don't need desktop files as they are shared and managed by sym links
|
|
86 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/applications
|
|
87 |
rm -rf $RPM_BUILD_ROOT/etc/xdg
|
|
88 |
|
14766
|
89 |
# move to vendor-packages, but don't provide .pyc files
|
14658
|
90 |
mkdir -p $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages
|
14766
|
91 |
rm $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages/cupshelpers/*.pyc
|
14658
|
92 |
mv $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages/* \
|
|
93 |
$RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages/
|
|
94 |
rmdir $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages
|
|
95 |
|
|
96 |
%clean
|
|
97 |
rm -rf $RPM_BUILD_ROOT
|
|
98 |
|
|
99 |
%changelog
|
14759
|
100 |
* Fri Dec 12 2008 - [email protected]
|
|
101 |
- Add patch 05-g11n-textdomain.diff to set textdomain.
|
14756
|
102 |
* Thu Dec 11 2008 - [email protected]
|
|
103 |
uprev to 1.0.12 tarball and added patch 04-remove-fedora-specific.diff
|
14658
|
104 |
* Wed Nov 05 2008 - [email protected]
|
|
105 |
- initial version
|