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