3 %define orgname printer-applet
5 %define kdeworkspacever 4.11.0
7 Summary: K Desktop Environment - printer applet
8 Name: kde4-printer-applet
12 Group: X11/Applications
13 #Source0: ftp://ftp.kde.org/pub/kde/%{_state}/%{version}/src/%{orgname}-%{version}.tar.bz2
14 Source0: http://ixion.pld-linux.org/~arekm/kde/%{orgname}-%{version}.tar.xz
15 # Source0-md5: 8acbc3ac369d29dd8f4511c4bffd638b
16 URL: http://www.kde.org/
17 BuildRequires: automoc4
18 BuildRequires: kde4-kdebase-devel >= %{version}
19 BuildRequires: python-pycups
20 BuildRequires: qt4-build
21 BuildRequires: system-config-printer
22 Requires: kde4-kdebase-workspace >= %{kdeworkspacever}
23 Requires: python-PyKDE4
24 Requires: python-pycups
25 Requires: system-config-printer
26 Obsoletes: kde4-kdeutils-printer-applet
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 Printer Applet is a system tray utility that shows current print jobs,
31 shows printer warnings and errors.
33 %description -l pl.UTF-8
34 Printer Applet to narzedzie zasobnika systemowego, ktore pokazuje
35 aktualne zadania drukarki, ostrzezenia i bledy.
38 %setup -q -n %{orgname}-%{version}
44 -DINSTALL_PRINTER_APPLET=TRUE \
49 rm -rf $RPM_BUILD_ROOT
51 %{__make} -C build/ install \
52 DESTDIR=$RPM_BUILD_ROOT \
53 kde_htmldir=%{_kdedocdir}
55 %find_lang %{orgname} --with-kde
58 rm -rf $RPM_BUILD_ROOT
60 %files -f %{orgname}.lang
61 %defattr(644,root,root,755)
62 %{_bindir}/printer-applet
63 %dir %{_datadir}/apps/printer-applet
64 %{_datadir}/apps/printer-applet/authconn.py
65 %{_datadir}/apps/printer-applet/debug.py
66 %{_datadir}/apps/printer-applet/monitor.py
67 %{_datadir}/apps/printer-applet/printer-applet-printers.ui
68 %{_datadir}/apps/printer-applet/printer-applet.notifyrc
69 %attr(755,root,root) %{_datadir}/apps/printer-applet/printer-applet.py
70 %{_datadir}/apps/printer-applet/printer-applet.ui
71 %{_datadir}/apps/printer-applet/printer-appletui.rc
72 %{_datadir}/apps/printer-applet/statereason.py
73 %{_datadir}/autostart/printer-applet.desktop