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