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