]>
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 |
85e93902 | 9 | Version: 1.26.0 |
ea241670 | 10 | Release: 1 |
14df9aa0 | 11 | License: GPL v2+ |
a1fd9301 | 12 | Group: Applications/System |
85e93902 JP |
13 | Source0: https://pub.mate-desktop.org/releases/1.26/%{name}-%{version}.tar.xz |
14 | # Source0-md5: 025355ddf1155c2b9260c60efd1996ee | |
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 | 18 | BuildRequires: dbus-devel >= 0.78 |
14df9aa0 | 19 | BuildRequires: desktop-file-utils |
1c4ee99f | 20 | BuildRequires: gdk-pixbuf2-devel >= 2.22.0 |
c750b358 | 21 | BuildRequires: gettext-tools >= 0.19.8 |
85e93902 | 22 | BuildRequires: glib2-devel >= 1:2.68.0 |
dc6a342a | 23 | BuildRequires: gtk+3-devel >= 3.22.0 |
85e93902 | 24 | BuildRequires: gtk-layer-shell-devel |
976a44d1 | 25 | BuildRequires: libcanberra-devel |
fa821c05 | 26 | BuildRequires: libcanberra-gtk3-devel >= 0.4 |
1c4ee99f | 27 | BuildRequires: libnotify-devel |
b52df46e | 28 | BuildRequires: libtool >= 2:2.2.6 |
fa821c05 | 29 | BuildRequires: libwnck-devel >= 3.0.0 |
14df9aa0 | 30 | BuildRequires: mate-common |
85e93902 | 31 | BuildRequires: mate-panel-devel >= 1.17.0 |
b52df46e | 32 | BuildRequires: pkgconfig |
14df9aa0 | 33 | BuildRequires: tar >= 1:1.22 |
a9e7de4d | 34 | BuildRequires: xorg-lib-libX11-devel |
14df9aa0 | 35 | BuildRequires: xz |
b52df46e | 36 | Requires: dbus >= 0.78 |
1c4ee99f | 37 | Requires: gdk-pixbuf2 >= 2.22.0 |
85e93902 | 38 | Requires: glib2 >= 1:2.68.0 |
14df9aa0 | 39 | Requires: gsettings-desktop-schemas |
dc6a342a | 40 | Requires: gtk+3 >= 3.22.0 |
14df9aa0 ER |
41 | Requires: gtk-update-icon-cache |
42 | Requires: hicolor-icon-theme | |
fa821c05 | 43 | Requires: libcanberra-gtk3 >= 0.4 |
14df9aa0 ER |
44 | Provides: dbus(org.freedesktop.Notifications) |
45 | Requires(post,postun): /sbin/ldconfig | |
85e93902 | 46 | Suggests: mate-applet-notification |
14df9aa0 ER |
47 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
48 | ||
725c6803 | 49 | %if "%{_libexecdir}" == "%{_libdir}" |
b52df46e JB |
50 | # NOTE: we must move %{_libexecdir}/mate-notification-daemon out of %{_libdir}, |
51 | # because it conflicts with %{_libdir}/mate-notification-daemon plugin dir | |
52 | # (unlike in mate-settings-daemon, we can use %{_libdir}/%{name} here - plugins exist in subdir) | |
53 | %define _libexecdir %{_libdir}/%{name} | |
725c6803 | 54 | %endif |
14df9aa0 ER |
55 | |
56 | %description | |
57 | Notification daemon for MATE Desktop. | |
58 | ||
b52df46e JB |
59 | %description -l pl.UTF-8 |
60 | Demon powiadomień dla środowiska MATE Desktop. | |
61 | ||
85e93902 JP |
62 | %package -n mate-applet-notification |
63 | Summary: Notification Daemon applet for MATE Desktop | |
64 | Summary(pl.UTF-8): Aplet demona powiadomień dla środowiska MATE Desktop | |
65 | Requires: %{name} = %{version}-%{release} | |
66 | Requires: mate-panel-libs >= 1.17.0 | |
67 | ||
68 | %description -n mate-applet-notification | |
69 | Notification Daemon applet for MATE Desktop. | |
70 | ||
71 | %description -n mate-applet-notification -l pl.UTF-8 | |
72 | Aplet demona powiadomień dla środowiska MATE Desktop. | |
73 | ||
14df9aa0 ER |
74 | %prep |
75 | %setup -q | |
76 | ||
77 | %build | |
b52df46e | 78 | %{__libtoolize} |
3638153d | 79 | %{__aclocal} |
3638153d | 80 | %{__autoconf} |
b52df46e | 81 | %{__autoheader} |
3638153d | 82 | %{__automake} |
14df9aa0 | 83 | %configure \ |
3638153d ER |
84 | --disable-icon-update \ |
85 | --disable-silent-rules \ | |
fa821c05 | 86 | --disable-static |
14df9aa0 | 87 | |
3638153d | 88 | %{__make} |
14df9aa0 ER |
89 | |
90 | %install | |
91 | rm -rf $RPM_BUILD_ROOT | |
b52df46e | 92 | |
14df9aa0 | 93 | %{__make} install \ |
14df9aa0 ER |
94 | DESTDIR=$RPM_BUILD_ROOT |
95 | ||
96 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/engines/lib*.la | |
9a215681 | 97 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{frp,ie,ku_IQ} |
14df9aa0 ER |
98 | |
99 | desktop-file-install \ | |
100 | --remove-category="MATE" \ | |
101 | --add-category="X-Mate" \ | |
102 | --delete-original \ | |
103 | --dir=$RPM_BUILD_ROOT%{_desktopdir} \ | |
b52df46e | 104 | $RPM_BUILD_ROOT%{_desktopdir}/mate-notification-properties.desktop |
14df9aa0 ER |
105 | |
106 | %find_lang %{name} | |
107 | ||
108 | %clean | |
109 | rm -rf $RPM_BUILD_ROOT | |
110 | ||
111 | %post | |
14df9aa0 ER |
112 | %update_icon_cache hicolor |
113 | %glib_compile_schemas | |
114 | ||
115 | %postun | |
14df9aa0 ER |
116 | %update_icon_cache hicolor |
117 | %glib_compile_schemas | |
118 | ||
119 | %files -f %{name}.lang | |
120 | %defattr(644,root,root,755) | |
a03011a8 | 121 | %doc AUTHORS ChangeLog NEWS README |
14df9aa0 | 122 | %attr(755,root,root) %{_bindir}/mate-notification-properties |
b52df46e | 123 | %attr(755,root,root) %{_libexecdir}/mate-notification-daemon |
725c6803 | 124 | %dir %{_libdir}/%{name} |
14df9aa0 ER |
125 | %dir %{_libdir}/%{name}/engines |
126 | %attr(755,root,root) %{_libdir}/%{name}/engines/libcoco.so | |
127 | %attr(755,root,root) %{_libdir}/%{name}/engines/libnodoka.so | |
128 | %attr(755,root,root) %{_libdir}/%{name}/engines/libslider.so | |
129 | %attr(755,root,root) %{_libdir}/%{name}/engines/libstandard.so | |
b52df46e JB |
130 | %{_datadir}/dbus-1/services/org.freedesktop.mate.Notifications.service |
131 | %{_datadir}/glib-2.0/schemas/org.mate.NotificationDaemon.gschema.xml | |
b52df46e JB |
132 | %{_desktopdir}/mate-notification-properties.desktop |
133 | %{_iconsdir}/hicolor/*/apps/mate-notification-properties.* | |
134 | %{_mandir}/man1/mate-notification-properties.1* | |
85e93902 JP |
135 | |
136 | %files -n mate-applet-notification | |
137 | %defattr(644,root,root,755) | |
138 | %attr(755,root,root) %{_libexecdir}/mate-notification-applet | |
139 | %{_datadir}/dbus-1/services/org.mate.panel.applet.MateNotificationAppletFactory.service | |
140 | %{_datadir}/mate-panel/applets/org.mate.applets.MateNotificationApplet.mate-panel-applet |