]>
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 |
c6a0ec90 | 4 | Version: 0.7.82 |
c0b1109d | 5 | Release: 2 |
064bf3d9 | 6 | License: GPL v2 |
37e4c823 | 7 | Group: X11/Applications |
064bf3d9 | 8 | Source0: http://cyberelk.net/tim/data/system-config-printer/%{name}-%{version}.tar.bz2 |
c6a0ec90 | 9 | # Source0-md5: a85efc175c58506239f3613baf992fca |
c0b1109d | 10 | Patch0: %{name}-gksu.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 |
064bf3d9 PZ |
15 | BuildRequires: gettext-devel |
16 | BuildRequires: intltool | |
17 | BuildRequires: python-devel | |
d7ab3d89 | 18 | BuildRequires: xmlto |
c6a0ec90 | 19 | Obsoletes: eggcups |
a798fb55 | 20 | Requires: gksu |
4e78ae1e | 21 | Requires: python-PyXML |
37e4c823 | 22 | Requires: python-pycups >= 1.9.28 |
32498bfb | 23 | Requires: python-pynotify |
2cec6a22 | 24 | Requires: python-rhpl |
064bf3d9 | 25 | %pyrequires_eq python-libs |
855e054e MB |
26 | # sr@Latn vs. sr@latin |
27 | Conflicts: glibc-misc < 6:2.7 | |
064bf3d9 PZ |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %description | |
37e4c823 PZ |
31 | The purpose of the tool is to configure a CUPS server (often the local |
32 | machine) using the CUPS API. The tool is written in Python, using | |
33 | pygtk for the graphical parts and with some Python bindings (pycups) | |
34 | for the CUPS API. | |
064bf3d9 | 35 | |
2cec6a22 | 36 | %description -l pl.UTF-8 |
37e4c823 PZ |
37 | To narzędzie służy do konfigurowania serwera CUPS (zwykle na maszynie |
38 | lokalnej) przy użyciu API CUPS-a. Narzędzie jest napisane w Pythonie z | |
39 | użyciem pygtk do części graficznych i dowiązań Pythona (pycups) do API | |
40 | CUPS-a. | |
2cec6a22 | 41 | |
064bf3d9 PZ |
42 | %prep |
43 | %setup -q | |
c0b1109d | 44 | %patch0 -p1 |
064bf3d9 | 45 | |
855e054e MB |
46 | sed -i -e s#sr\@Latn#sr\@latin# configure.in |
47 | mv po/sr\@{Latn,latin}.po | |
48 | ||
064bf3d9 | 49 | %build |
37e4c823 | 50 | %{__intltoolize} |
064bf3d9 PZ |
51 | %{__aclocal} |
52 | %{__autoconf} | |
53 | %{__automake} | |
855e054e | 54 | %configure |
064bf3d9 PZ |
55 | %{__make} |
56 | ||
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
855e054e | 59 | |
064bf3d9 PZ |
60 | %{__make} install \ |
61 | DESTDIR=$RPM_BUILD_ROOT | |
62 | ||
cb809a7a PZ |
63 | rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/no |
64 | ||
064bf3d9 PZ |
65 | %find_lang %{name} |
66 | ||
c9550511 PZ |
67 | %py_comp $RPM_BUILD_ROOT%{_datadir}/system-config-printer |
68 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/system-config-printer | |
064bf3d9 PZ |
69 | |
70 | %clean | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %files -f %{name}.lang | |
74 | %defattr(644,root,root,755) | |
75 | %doc AUTHORS ChangeLog NEWS README TODO | |
37e4c823 | 76 | %attr(755,root,root) %{_bindir}/my-default-printer |
064bf3d9 PZ |
77 | %attr(755,root,root) %{_bindir}/system-config-printer-applet |
78 | %attr(755,root,root) %{_sbindir}/system-config-printer | |
79 | %{_sysconfdir}/xdg/autostart/*.desktop | |
37e4c823 | 80 | %{_sysconfdir}/dbus-1/system.d/newprinternotification.conf |
c9550511 PZ |
81 | %dir %{_datadir}/system-config-printer |
82 | %{_datadir}/system-config-printer/*.glade | |
c9550511 | 83 | %attr(755,root,root) %{_datadir}/system-config-printer/*.py* |
c6a0ec90 PZ |
84 | %dir %{_datadir}/system-config-printer/troubleshoot |
85 | %attr(755,root,root) %{_datadir}/system-config-printer/troubleshoot/*.py* | |
064bf3d9 PZ |
86 | %{_mandir}/man*/* |
87 | %{_desktopdir}/*.desktop |