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