]>
Commit | Line | Data |
---|---|---|
14df9aa0 ER |
1 | # NOTE: |
2 | # - we could reuse gnome notification daemon if there is added xdg/autostart file with NotShowIn=GNOME: | |
3 | # http://git.gnome.org/browse/notification-daemon/commit/data?id=1ad20d22098bc7718614a8a87744a2c22d5438d0 | |
b52df46e JB |
4 | # |
5 | # Conditional build: | |
6 | %bcond_with gtk3 # use GTK+ 3.x instead of 2.x | |
ff7d62e9 | 7 | |
14df9aa0 | 8 | Summary: Notification daemon for MATE Desktop |
b52df46e | 9 | Summary(pl.UTF-8): Demon powiadomień dla środowiska MATE Desktop |
14df9aa0 | 10 | Name: mate-notification-daemon |
36c9efc1 | 11 | Version: 1.12.1 |
ea241670 | 12 | Release: 1 |
14df9aa0 | 13 | License: GPL v2+ |
a1fd9301 | 14 | Group: Applications/System |
3039cc7c | 15 | Source0: http://pub.mate-desktop.org/releases/1.12/%{name}-%{version}.tar.xz |
36c9efc1 | 16 | # Source0-md5: 7c5ffa5f90f9ab1051a9b8a136166033 |
976a44d1 | 17 | URL: http://wiki.mate-desktop.org/mate-notification-daemon |
b52df46e JB |
18 | BuildRequires: autoconf >= 2.63 |
19 | BuildRequires: automake >= 1:1.10 | |
a9e7de4d ER |
20 | BuildRequires: dbus-devel >= 0.78 |
21 | BuildRequires: dbus-glib-devel >= 0.78 | |
14df9aa0 | 22 | BuildRequires: desktop-file-utils |
1c4ee99f | 23 | BuildRequires: gdk-pixbuf2-devel >= 2.22.0 |
6cd05646 | 24 | BuildRequires: gettext-tools >= 0.11 |
1c4ee99f JB |
25 | BuildRequires: glib2-devel >= 1:2.36.0 |
26 | %{!?with_gtk3:BuildRequires: gtk+2-devel >= 2:2.24.0} | |
b52df46e | 27 | %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0.0} |
3039cc7c | 28 | BuildRequires: intltool >= 0.50.1 |
976a44d1 | 29 | BuildRequires: libcanberra-devel |
de9bf760 JB |
30 | %{!?with_gtk3:BuildRequires: libcanberra-gtk-devel >= 0.4} |
31 | %{?with_gtk3:BuildRequires: libcanberra-gtk3-devel >= 0.4} | |
1c4ee99f | 32 | BuildRequires: libnotify-devel |
b52df46e | 33 | BuildRequires: libtool >= 2:2.2.6 |
0f74f067 JP |
34 | %{!?with_gtk3:BuildRequires: libwnck2-devel} |
35 | %{?with_gtk3:BuildRequires: libwnck-devel >= 3.0.0} | |
14df9aa0 | 36 | BuildRequires: mate-common |
b52df46e | 37 | BuildRequires: pkgconfig |
14df9aa0 | 38 | BuildRequires: tar >= 1:1.22 |
a9e7de4d | 39 | BuildRequires: xorg-lib-libX11-devel |
14df9aa0 | 40 | BuildRequires: xz |
b52df46e JB |
41 | Requires: dbus >= 0.78 |
42 | Requires: dbus-glib >= 0.78 | |
1c4ee99f JB |
43 | Requires: glib2 >= 1:2.36.0 |
44 | Requires: gdk-pixbuf2 >= 2.22.0 | |
14df9aa0 | 45 | Requires: gsettings-desktop-schemas |
1c4ee99f | 46 | %{!?with_gtk3:Requires: gtk+2 >= 2:2.24.0} |
b52df46e | 47 | %{?with_gtk3:Requires: gtk+3 >= 3.0.0} |
14df9aa0 ER |
48 | Requires: gtk-update-icon-cache |
49 | Requires: hicolor-icon-theme | |
de9bf760 JB |
50 | %{!?with_gtk3:Requires: libcanberra-gtk >= 0.4} |
51 | %{?with_gtk3:Requires: libcanberra-gtk3 >= 0.4} | |
14df9aa0 ER |
52 | Provides: dbus(org.freedesktop.Notifications) |
53 | Requires(post,postun): /sbin/ldconfig | |
54 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
55 | ||
b52df46e JB |
56 | # NOTE: we must move %{_libexecdir}/mate-notification-daemon out of %{_libdir}, |
57 | # because it conflicts with %{_libdir}/mate-notification-daemon plugin dir | |
58 | # (unlike in mate-settings-daemon, we can use %{_libdir}/%{name} here - plugins exist in subdir) | |
59 | %define _libexecdir %{_libdir}/%{name} | |
14df9aa0 ER |
60 | |
61 | %description | |
62 | Notification daemon for MATE Desktop. | |
63 | ||
b52df46e JB |
64 | %description -l pl.UTF-8 |
65 | Demon powiadomień dla środowiska MATE Desktop. | |
66 | ||
14df9aa0 ER |
67 | %prep |
68 | %setup -q | |
69 | ||
70 | %build | |
3638153d | 71 | %{__intltoolize} |
b52df46e | 72 | %{__libtoolize} |
3638153d | 73 | %{__aclocal} |
3638153d | 74 | %{__autoconf} |
b52df46e | 75 | %{__autoheader} |
3638153d | 76 | %{__automake} |
14df9aa0 | 77 | %configure \ |
3638153d ER |
78 | --disable-icon-update \ |
79 | --disable-silent-rules \ | |
b52df46e JB |
80 | --disable-static \ |
81 | %{?with_gtk3:--with-gtk=3.0} | |
14df9aa0 | 82 | |
3638153d | 83 | %{__make} |
14df9aa0 ER |
84 | |
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
b52df46e JB |
87 | #install -d $RPM_BUILD_ROOT%{_libdir} |
88 | ||
14df9aa0 | 89 | %{__make} install \ |
14df9aa0 ER |
90 | DESTDIR=$RPM_BUILD_ROOT |
91 | ||
a9e7de4d ER |
92 | # mate < 1.5 did not exist in pld, avoid dependency on mate-conf |
93 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/mate-notification-daemon.convert | |
94 | ||
14df9aa0 ER |
95 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/engines/lib*.la |
96 | ||
97 | desktop-file-install \ | |
98 | --remove-category="MATE" \ | |
99 | --add-category="X-Mate" \ | |
100 | --delete-original \ | |
101 | --dir=$RPM_BUILD_ROOT%{_desktopdir} \ | |
b52df46e | 102 | $RPM_BUILD_ROOT%{_desktopdir}/mate-notification-properties.desktop |
14df9aa0 ER |
103 | |
104 | %find_lang %{name} | |
105 | ||
106 | %clean | |
107 | rm -rf $RPM_BUILD_ROOT | |
108 | ||
109 | %post | |
14df9aa0 ER |
110 | %update_icon_cache hicolor |
111 | %glib_compile_schemas | |
112 | ||
113 | %postun | |
14df9aa0 ER |
114 | %update_icon_cache hicolor |
115 | %glib_compile_schemas | |
116 | ||
117 | %files -f %{name}.lang | |
118 | %defattr(644,root,root,755) | |
a9e7de4d | 119 | %doc AUTHORS README |
14df9aa0 | 120 | %attr(755,root,root) %{_bindir}/mate-notification-properties |
14df9aa0 | 121 | %dir %{_libdir}/%{name} |
b52df46e | 122 | %attr(755,root,root) %{_libexecdir}/mate-notification-daemon |
14df9aa0 ER |
123 | %dir %{_libdir}/%{name}/engines |
124 | %attr(755,root,root) %{_libdir}/%{name}/engines/libcoco.so | |
125 | %attr(755,root,root) %{_libdir}/%{name}/engines/libnodoka.so | |
126 | %attr(755,root,root) %{_libdir}/%{name}/engines/libslider.so | |
127 | %attr(755,root,root) %{_libdir}/%{name}/engines/libstandard.so | |
b52df46e JB |
128 | %{_datadir}/dbus-1/services/org.freedesktop.mate.Notifications.service |
129 | %{_datadir}/glib-2.0/schemas/org.mate.NotificationDaemon.gschema.xml | |
130 | %{_datadir}/%{name} | |
131 | %{_desktopdir}/mate-notification-properties.desktop | |
132 | %{_iconsdir}/hicolor/*/apps/mate-notification-properties.* | |
133 | %{_mandir}/man1/mate-notification-properties.1* |