]>
Commit | Line | Data |
---|---|---|
4f738aa1 PZ |
1 | Summary: A graphical interface for configuring printers |
2 | Summary(pl.UTF-8): Graficzny interfejs do zarządzania drukarkami | |
064bf3d9 | 3 | Name: system-config-printer |
f44e455b LG |
4 | Version: 1.4.0 |
5 | Release: 1 | |
bdc6a5cf | 6 | License: GPL v2+ |
37e4c823 | 7 | Group: X11/Applications |
f44e455b LG |
8 | Source0: http://cyberelk.net/tim/data/system-config-printer/1.4/%{name}-%{version}.tar.xz |
9 | # Source0-md5: 3267c2eac454f470c0659034196d2668 | |
eb296ede | 10 | Patch0: pyc.patch |
064bf3d9 PZ |
11 | URL: http://cyberelk.net/tim/software/system-config-printer/ |
12 | BuildRequires: autoconf | |
13 | BuildRequires: automake | |
5160d12d | 14 | BuildRequires: desktop-file-utils |
2afa49a2 | 15 | BuildRequires: docbook-dtd412-xml |
064bf3d9 PZ |
16 | BuildRequires: gettext-devel |
17 | BuildRequires: intltool | |
7fcb3a19 | 18 | BuildRequires: pkgconfig |
064bf3d9 | 19 | BuildRequires: python-devel |
2afa49a2 | 20 | BuildRequires: python-modules |
21 | BuildRequires: rpm-pythonprov | |
f44e455b | 22 | BuildRequires: rpmbuild(macros) >= 1.21 |
6d180d0b | 23 | BuildRequires: tar >= 1:1.22 |
d7ab3d89 | 24 | BuildRequires: xmlto |
6d180d0b | 25 | BuildRequires: xz >= 1:4.999.7 |
cda77943 | 26 | %pyrequires_eq python-libs |
4e78ae1e | 27 | Requires: python-PyXML |
90d244f8 | 28 | Requires: python-pycurl |
afd40c7f | 29 | Requires: python-pygtk-glade |
32498bfb | 30 | Requires: python-pynotify |
771acaf7 | 31 | Requires: python-smbc |
00422765 | 32 | Requires: %{name}-libs = %{version}-%{release} |
32d2e24c | 33 | Obsoletes: eggcups |
cc4f5e14 | 34 | Obsoletes: gnome-cups-manager < 0.34 |
855e054e MB |
35 | # sr@Latn vs. sr@latin |
36 | Conflicts: glibc-misc < 6:2.7 | |
064bf3d9 PZ |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
38 | ||
39 | %description | |
37e4c823 PZ |
40 | The purpose of the tool is to configure a CUPS server (often the local |
41 | machine) using the CUPS API. The tool is written in Python, using | |
42 | pygtk for the graphical parts and with some Python bindings (pycups) | |
43 | for the CUPS API. | |
064bf3d9 | 44 | |
2cec6a22 | 45 | %description -l pl.UTF-8 |
37e4c823 PZ |
46 | To narzędzie służy do konfigurowania serwera CUPS (zwykle na maszynie |
47 | lokalnej) przy użyciu API CUPS-a. Narzędzie jest napisane w Pythonie z | |
48 | użyciem pygtk do części graficznych i dowiązań Pythona (pycups) do API | |
49 | CUPS-a. | |
2cec6a22 | 50 | |
eb296ede ER |
51 | %package libs |
52 | Summary: Libraries and shared code for printer administration tool | |
53 | Group: Base | |
54 | Requires: python | |
55 | Requires: python-pycups >= 1.9.60 | |
56 | Conflicts: %{name} < 1.3.9 | |
57 | ||
58 | %description libs | |
59 | The common code used by both the graphical and non-graphical parts of | |
60 | the configuration tool. | |
61 | ||
62 | %package udev | |
63 | Summary: Rules for udev for automatic configuration of USB printers | |
64 | Group: Base | |
e5393d9b | 65 | Requires(post,preun,postun): systemd-units >= 38 |
eb296ede | 66 | Requires: %{name}-libs = %{version}-%{release} |
e5393d9b | 67 | Requires: systemd-units >= 0.38 |
eb296ede ER |
68 | Provides: hal-cups-utils = 0.6.20 |
69 | Obsoletes: hal-cups-utils < 0.6.20 | |
70 | ||
71 | %description udev | |
72 | The udev rules and helper programs for automatically configuring USB | |
73 | printers. | |
74 | ||
064bf3d9 PZ |
75 | %prep |
76 | %setup -q | |
eb296ede | 77 | %patch0 -p1 |
064bf3d9 PZ |
78 | |
79 | %build | |
37e4c823 | 80 | %{__intltoolize} |
064bf3d9 PZ |
81 | %{__aclocal} |
82 | %{__autoconf} | |
83 | %{__automake} | |
eb296ede ER |
84 | %configure \ |
85 | --with-udev-rules | |
fac8eeec ER |
86 | %{__make} \ |
87 | udevhelperdir=/lib/udev | |
064bf3d9 PZ |
88 | |
89 | %install | |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | %{__make} install \ | |
eb296ede ER |
92 | udevhelperdir=/lib/udev \ |
93 | udevrulesdir=/lib/udev/rules.d \ | |
064bf3d9 PZ |
94 | DESTDIR=$RPM_BUILD_ROOT |
95 | ||
96 | %find_lang %{name} | |
97 | ||
eb296ede ER |
98 | %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name} |
99 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
cc4f5e14 PZ |
100 | %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}/cupshelpers |
101 | %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}/cupshelpers | |
eb296ede | 102 | %py_postclean %{_datadir}/%{name} |
064bf3d9 PZ |
103 | |
104 | %clean | |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | ||
eb296ede | 107 | %post udev |
60133a76 | 108 | %systemd_post udev-configure-printer.service |
eb296ede ER |
109 | |
110 | %preun udev | |
60133a76 | 111 | %systemd_preun udev-configure-printer.service |
eb296ede ER |
112 | |
113 | %postun udev | |
60133a76 | 114 | %systemd_reload |
eb296ede | 115 | |
064bf3d9 PZ |
116 | %files -f %{name}.lang |
117 | %defattr(644,root,root,755) | |
cc4f5e14 | 118 | %doc AUTHORS ChangeLog NEWS README |
eb296ede | 119 | /etc/xdg/autostart/print-applet.desktop |
f44e455b | 120 | %attr(755,root,root) %{_bindir}/install-printerdriver |
612388bb | 121 | %attr(755,root,root) %{_bindir}/system-config-printer |
064bf3d9 | 122 | %attr(755,root,root) %{_bindir}/system-config-printer-applet |
eb296ede ER |
123 | %dir %{_datadir}/%{name}/ui |
124 | %{_datadir}/%{name}/ui/*.ui | |
125 | %dir %{_datadir}/%{name}/troubleshoot | |
126 | %{_datadir}/%{name}/troubleshoot/*.py[co] | |
127 | %dir %{_datadir}/%{name}/xml | |
128 | %{_datadir}/%{name}/xml/*.rng | |
129 | %{_datadir}/%{name}/xml/validate.py[co] | |
130 | %{_datadir}/%{name}/check-device-ids.py[co] | |
131 | %{_datadir}/%{name}/HIG.py[co] | |
132 | %{_datadir}/%{name}/SearchCriterion.py[co] | |
133 | %{_datadir}/%{name}/serversettings.py[co] | |
134 | %{_datadir}/%{name}/system-config-printer.py[co] | |
135 | %{_datadir}/%{name}/ToolbarSearchEntry.py[co] | |
136 | %{_datadir}/%{name}/userdefault.py[co] | |
137 | %{_datadir}/%{name}/applet.py[co] | |
138 | %dir %{_datadir}/%{name}/icons | |
139 | %{_datadir}/%{name}/icons/i-network-printer.png | |
140 | %{_mandir}/man1/system-config-printer-applet.1* | |
141 | %{_mandir}/man1/system-config-printer.1* | |
142 | %{_desktopdir}/*.desktop | |
143 | ||
144 | %files libs | |
145 | %defattr(644,root,root,755) | |
146 | %dir %{_sysconfdir}/cupshelpers | |
147 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cupshelpers/preferreddrivers.xml | |
6d180d0b | 148 | /etc/dbus-1/system.d/com.redhat.NewPrinterNotification.conf |
149 | /etc/dbus-1/system.d/com.redhat.PrinterDriversInstaller.conf | |
eb296ede ER |
150 | %{_datadir}/dbus-1/interfaces/org.fedoraproject.Config.Printing.xml |
151 | %{_datadir}/dbus-1/services/org.fedoraproject.Config.Printing.service | |
152 | %attr(755,root,root) %{_bindir}/scp-dbus-service | |
153 | %dir %{_datadir}/%{name} | |
154 | %{_datadir}/%{name}/asyncconn.py[co] | |
155 | %{_datadir}/%{name}/asyncipp.py[co] | |
156 | %{_datadir}/%{name}/asyncpk1.py[co] | |
157 | %{_datadir}/%{name}/authconn.py[co] | |
158 | %{_datadir}/%{name}/config.py[co] | |
159 | %{_datadir}/%{name}/cupspk.py[co] | |
160 | %{_datadir}/%{name}/debug.py[co] | |
161 | %{_datadir}/%{name}/dnssdresolve.py[co] | |
162 | %{_datadir}/%{name}/errordialogs.py[co] | |
f44e455b | 163 | %{_datadir}/%{name}/firewallsettings.py[co] |
eb296ede | 164 | %{_datadir}/%{name}/gtkinklevel.py[co] |
eb296ede ER |
165 | %{_datadir}/%{name}/gui.py[co] |
166 | %{_datadir}/%{name}/installpackage.py[co] | |
f44e455b | 167 | %{_datadir}/%{name}/install-printerdriver.py[co] |
eb296ede ER |
168 | %{_datadir}/%{name}/jobviewer.py[co] |
169 | %{_datadir}/%{name}/monitor.py[co] | |
170 | %{_datadir}/%{name}/newprinter.py[co] | |
171 | %{_datadir}/%{name}/options.py[co] | |
172 | %{_datadir}/%{name}/optionwidgets.py[co] | |
173 | %{_datadir}/%{name}/PhysicalDevice.py[co] | |
174 | %{_datadir}/%{name}/ppdcache.py[co] | |
175 | %{_datadir}/%{name}/ppdippstr.py[co] | |
176 | %{_datadir}/%{name}/ppdsloader.py[co] | |
177 | %{_datadir}/%{name}/printerproperties.py[co] | |
178 | %{_datadir}/%{name}/probe_printer.py[co] | |
179 | %{_datadir}/%{name}/pysmb.py[co] | |
180 | %{_datadir}/%{name}/scp-dbus-service.py[co] | |
181 | %{_datadir}/%{name}/smburi.py[co] | |
182 | %{_datadir}/%{name}/statereason.py[co] | |
183 | %{_datadir}/%{name}/timedops.py[co] | |
184 | ||
cc4f5e14 | 185 | %dir %{py_sitescriptdir}/cupshelpers |
eb296ede ER |
186 | %{py_sitescriptdir}/cupshelpers/__init__.py[co] |
187 | %{py_sitescriptdir}/cupshelpers/config.py[co] | |
188 | %{py_sitescriptdir}/cupshelpers/cupshelpers.py[co] | |
189 | %{py_sitescriptdir}/cupshelpers/installdriver.py[co] | |
190 | %{py_sitescriptdir}/cupshelpers/openprinting.py[co] | |
191 | %{py_sitescriptdir}/cupshelpers/ppds.py[co] | |
192 | %{py_sitescriptdir}/cupshelpers/xmldriverprefs.py[co] | |
193 | %{py_sitescriptdir}/*.egg-info | |
194 | ||
195 | %files udev | |
196 | %defattr(644,root,root,755) | |
197 | /lib/udev/rules.d/*-printers.rules | |
198 | %attr(755,root,root) /lib/udev/udev-add-printer | |
199 | %attr(755,root,root) /lib/udev/udev-configure-printer | |
f44e455b | 200 | %{systemdunitdir}/configure-printer@.service |