]>
Commit | Line | Data |
---|---|---|
96ffff01 | 1 | Summary: Desktop print icon |
086a9314 | 2 | Summary(pl.UTF-8): Ikona drukowania na pulpicie |
96ffff01 PZ |
3 | Name: eggcups |
4 | Version: 0.20 | |
2d7f9289 | 5 | Release: 2 |
96ffff01 PZ |
6 | License: GPL |
7 | Group: X11/Applications | |
8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/eggcups/0.20/%{name}-%{version}.tar.bz2 | |
9 | # Source0-md5: deaf598120961765bfef61ecd4101ed3 | |
10 | Patch0: %{name}-dbus.patch | |
11 | BuildRequires: cups-devel | |
12 | BuildRequires: dbus-devel >= 0.60 | |
13 | BuildRequires: desktop-file-utils | |
14 | BuildRequires: gnome-keyring-devel | |
15 | BuildRequires: hal-devel | |
16 | BuildRequires: intltool | |
17 | BuildRequires: libglade2-devel | |
18 | BuildRequires: libgnomecups-devel >= 0.1.12 | |
19 | BuildRequires: libgnomeui-devel | |
a4d9b4fc | 20 | BuildRequires: xorg-lib-libXScrnSaver-devel |
521eebf8 | 21 | Requires(post,preun): GConf2 |
086a9314 | 22 | Requires(post,postun): hicolor-icon-theme |
96ffff01 PZ |
23 | Requires: dbus |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | Desktop-printing contains eggcups, a program for user print job | |
28 | notification and control. | |
29 | ||
086a9314 JB |
30 | %description -l pl.UTF-8 |
31 | Drukowanie w środowisku graficzny obejmuje aplikację eggcups - program | |
32 | do powiadamiania i sterowania zadań drukowania przez użytkownika. | |
33 | ||
96ffff01 PZ |
34 | %prep |
35 | %setup -q | |
36 | %patch0 -p1 | |
37 | ||
38 | %build | |
39 | %{configure} \ | |
40 | --with-session-cupsd=no | |
41 | # fix dbus paths | |
42 | find . -type f -print0 \( -name '*.c' -o -name '*.h' -o -name '*.conf' \) | xargs -0 perl -pi -e 's,org/freedesktop/,com/redhat/,g;s,org.freedesktop.,com.redhat.,g' | |
43 | %{__make} | |
44 | ||
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 | |
48 | %{__make} install \ | |
49 | DESTDIR=$RPM_BUILD_ROOT | |
50 | ||
51 | %find_lang %{name} | |
52 | ||
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %define schemas eggcups.schemas | |
57 | ||
58 | %post | |
59 | %gconf_schema_install %{schemas} | |
60 | %update_icon_cache hicolor | |
61 | ||
62 | %preun | |
63 | %gconf_schema_uninstall %{schemas} | |
64 | ||
65 | %postun | |
66 | %update_icon_cache hicolor | |
67 | ||
68 | %files -f %{name}.lang | |
086a9314 | 69 | %defattr(644,root,root,755) |
96ffff01 PZ |
70 | %attr(755,root,root) %{_bindir}/eggcups |
71 | %attr(755,root,root) %{_bindir}/gnome-default-printer | |
72 | %{_datadir}/eggcups | |
73 | %{_desktopdir}/gnome-default-printer.desktop | |
74 | %{_sysconfdir}/dbus-1/system.d/*.conf | |
086a9314 | 75 | %{_sysconfdir}/gconf/schemas/* |