]>
Commit | Line | Data |
---|---|---|
685a20cd | 1 | # |
e6840e88 | 2 | # Conditional build: |
388db1d8 | 3 | %bcond_without apidocs # disable gtk-doc |
e6840e88 ER |
4 | |
5 | Summary: MATE Desktop panel applets | |
685a20cd | 6 | Summary(pl.UTF-8): Aplety panelu dla środowiska MATE Desktop |
e6840e88 | 7 | Name: mate-panel |
ba0a8db0 | 8 | Version: 1.20.3 |
cdff6703 | 9 | Release: 2 |
685a20cd | 10 | License: LGPL v2+ (library), GPL v2+ (applets) |
e6840e88 | 11 | Group: X11/Applications |
e3dee604 | 12 | Source0: http://pub.mate-desktop.org/releases/1.20/%{name}-%{version}.tar.xz |
ba0a8db0 | 13 | # Source0-md5: 83c81e09fb392acc022a05de21de173b |
ee8e5e1a | 14 | Patch0: no-xdg-menu-prefix.patch |
ace0217e | 15 | URL: http://wiki.mate-desktop.org/mate-panel |
685a20cd JB |
16 | BuildRequires: NetworkManager-devel >= 0.6 |
17 | BuildRequires: autoconf >= 2.53 | |
18 | BuildRequires: automake >= 1:1.9 | |
19 | BuildRequires: cairo-devel >= 1.0.0 | |
20 | BuildRequires: dbus-devel >= 1.1.2 | |
21 | BuildRequires: dbus-glib-devel >= 0.80 | |
22 | BuildRequires: dconf-devel >= 0.13.4 | |
e6840e88 | 23 | BuildRequires: desktop-file-utils |
11461a70 | 24 | BuildRequires: docbook-dtd412-xml |
31e0117e | 25 | BuildRequires: gdk-pixbuf2-devel >= 2.25.2 |
fac0f5c2 | 26 | BuildRequires: gettext-tools >= 0.12 |
e3dee604 | 27 | BuildRequires: glib2-devel >= 1:2.50.0 |
685a20cd | 28 | BuildRequires: gobject-introspection-devel >= 0.6.7 |
e3dee604 | 29 | BuildRequires: gtk+3-devel >= 3.22 |
685a20cd | 30 | BuildRequires: gtk-doc >= 1.0 |
0f39e28d | 31 | BuildRequires: intltool >= 0.50.1 |
94637daa | 32 | BuildRequires: libcanberra-gtk3-devel |
66bc251b | 33 | BuildRequires: libmateweather-devel >= 1.17.0 |
a4f9bc80 | 34 | BuildRequires: librsvg-devel >= 2.36.2 |
56dbb331 | 35 | BuildRequires: libtool >= 1:1.4.3 |
e3dee604 | 36 | BuildRequires: libwnck-devel >= 3.4.6 |
e6840e88 | 37 | BuildRequires: mate-common |
94637daa JP |
38 | BuildRequires: mate-desktop-devel >= 1.17.0 |
39 | BuildRequires: mate-menus-devel >= 1.10.0 | |
ace0217e | 40 | BuildRequires: pango-devel >= 1:1.15.4 |
7f0bcc63 | 41 | BuildRequires: pkgconfig |
814effee | 42 | BuildRequires: python >= 2 |
11461a70 | 43 | BuildRequires: rpm-pythonprov |
7b3d9e33 | 44 | BuildRequires: rpmbuild(find_lang) >= 1.36 |
e6840e88 | 45 | BuildRequires: tar >= 1:1.22 |
ace0217e ER |
46 | BuildRequires: xorg-lib-libICE-devel |
47 | BuildRequires: xorg-lib-libSM-devel | |
48 | BuildRequires: xorg-lib-libX11-devel | |
685a20cd | 49 | BuildRequires: xorg-lib-libXau-devel |
0f39e28d | 50 | BuildRequires: xorg-lib-libXrandr-devel >= 1.3.0 |
e6840e88 | 51 | BuildRequires: xz |
d3ef0b33 | 52 | BuildRequires: yelp-tools |
e6840e88 | 53 | Requires: %{name}-libs = %{version}-%{release} |
685a20cd JB |
54 | Requires: dbus >= 1.1.2 |
55 | Requires: dbus-glib >= 0.80 | |
56 | Requires: dconf >= 0.13.4 | |
50b376c3 | 57 | Requires: desktop-file-utils |
e6840e88 | 58 | Requires: gsettings-desktop-schemas |
e6840e88 | 59 | Requires: gtk-update-icon-cache |
66bc251b | 60 | Requires: libmateweather >= 1.17.0 |
2ee8f911 | 61 | Requires: librsvg >= 2.36.2 |
e3dee604 | 62 | Requires: libwnck >= 3.4.6 |
d3ef0b33 | 63 | Requires: marco |
94637daa | 64 | Requires: mate-desktop >= 1.17.0 |
66bc251b | 65 | Requires: mate-menus >= 1.10.0 |
2d1ecf41 | 66 | Suggests: mate-settings-daemon |
e6840e88 ER |
67 | # for fish |
68 | Requires: fortune-mod | |
69 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
70 | ||
cdff6703 JB |
71 | # use package subdir to avoid conflicts with GNOME |
72 | %define pkglibexecdir %{_libexecdir}/%{name} | |
73 | ||
e6840e88 | 74 | %description |
685a20cd JB |
75 | MATE Desktop panel applets. |
76 | ||
77 | %description -l pl.UTF-8 | |
78 | Aplety panelu dla środowiska MATE Desktop. | |
e6840e88 ER |
79 | |
80 | %package libs | |
685a20cd JB |
81 | Summary: Shared library for MATE panel applets |
82 | Summary(pl.UTF-8): Biblitoteka współdzielona dla apletów panelu MATE | |
e6840e88 ER |
83 | License: LGPL v2+ |
84 | Group: Libraries | |
685a20cd | 85 | Requires: cairo >= 1.0.0 |
31e0117e | 86 | Requires: gdk-pixbuf2 >= 2.25.2 |
e3dee604 JP |
87 | Requires: glib2 >= 1:2.50.0 |
88 | Requires: gtk+3 >= 3.22 | |
685a20cd | 89 | Requires: pango >= 1:1.15.4 |
130c6e9c | 90 | Requires: xorg-lib-libXrandr >= 1.3.0 |
e6840e88 ER |
91 | |
92 | %description libs | |
685a20cd JB |
93 | Shared library for MATE panel applets. |
94 | ||
95 | %description libs -l pl.UTF-8 | |
96 | Biblitoteka współdzielona dla apletów panelu MATE. | |
e6840e88 ER |
97 | |
98 | %package devel | |
685a20cd JB |
99 | Summary: Development files for libmate-panel-applet library |
100 | Summary(pl.UTF-8): Pliki programistyczne biblioteki libmate-panel-applet | |
101 | License: LGPL v2+ | |
e6840e88 ER |
102 | Group: Development/Libraries |
103 | Requires: %{name}-libs = %{version}-%{release} | |
e3dee604 JP |
104 | Requires: glib2-devel >= 1:2.50.0 |
105 | Requires: gtk+3-devel >= 3.22 | |
e6840e88 ER |
106 | |
107 | %description devel | |
685a20cd JB |
108 | Development files for libmate-panel-applet library. |
109 | ||
110 | %description devel -l pl.UTF-8 | |
111 | Pliki programistyczne biblioteki libmate-panel-applet. | |
e6840e88 | 112 | |
514d5191 | 113 | %package apidocs |
685a20cd JB |
114 | Summary: API documentation for libmate-panel-applet library |
115 | Summary(pl.UTF-8): Dokumentacja API biblioteki libmate-panel-applet | |
514d5191 ER |
116 | Group: Documentation |
117 | Requires: gtk-doc-common | |
56dbb331 ER |
118 | %if "%{_rpmversion}" >= "5" |
119 | BuildArch: noarch | |
120 | %endif | |
514d5191 ER |
121 | |
122 | %description apidocs | |
685a20cd | 123 | API documentation for libmate-panel-applet library. |
514d5191 ER |
124 | |
125 | %description apidocs -l pl.UTF-8 | |
685a20cd | 126 | Dokumentacja API biblioteki libmate-panel-applet. |
514d5191 | 127 | |
e6840e88 ER |
128 | %prep |
129 | %setup -q | |
ee8e5e1a | 130 | %patch0 -p1 |
e6840e88 ER |
131 | |
132 | %build | |
685a20cd JB |
133 | %{__libtoolize} |
134 | %{__aclocal} -I m4 | |
d9531ba5 | 135 | %{__autoconf} |
685a20cd | 136 | %{__autoheader} |
d9531ba5 | 137 | %{__automake} |
e6840e88 | 138 | %configure \ |
cdff6703 | 139 | --libexecdir=%{pkglibexecdir} \ |
685a20cd JB |
140 | --enable-network-manager \ |
141 | --disable-schemas-compile \ | |
685a20cd | 142 | --disable-silent-rules \ |
e6840e88 | 143 | --disable-static \ |
685a20cd JB |
144 | --with-html-dir=%{_gtkdocdir} \ |
145 | --with-x | |
e6840e88 | 146 | |
d6ba59e6 | 147 | %{__make} |
e6840e88 ER |
148 | |
149 | %install | |
150 | rm -rf $RPM_BUILD_ROOT | |
b6116a5f JP |
151 | |
152 | install -d $RPM_BUILD_ROOT%{_datadir}/mate-panel/ui | |
153 | ||
e6840e88 ER |
154 | %{__make} install \ |
155 | DESTDIR=$RPM_BUILD_ROOT | |
156 | ||
514d5191 | 157 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la |
e6840e88 ER |
158 | |
159 | desktop-file-install \ | |
160 | --remove-category="MATE" \ | |
161 | --add-category="X-Mate" \ | |
162 | --dir=$RPM_BUILD_ROOT%{_desktopdir} \ | |
685a20cd | 163 | $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop |
e6840e88 | 164 | |
cdff6703 JB |
165 | # es_ES,ku_IQ are outdated versions of es,ku |
166 | # the rest not supported by glibc | |
b6116a5f | 167 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{es_ES,frp,jv,ku_IQ,pms} |
a4f9bc80 | 168 | |
1f9d57d8 | 169 | %find_lang %{name} --with-mate --all-name |
e6840e88 ER |
170 | |
171 | %clean | |
172 | rm -rf $RPM_BUILD_ROOT | |
173 | ||
174 | %post | |
175 | %update_icon_cache hicolor | |
176 | %update_desktop_database | |
177 | %glib_compile_schemas | |
178 | ||
179 | %postun | |
180 | %update_icon_cache hicolor | |
181 | %update_desktop_database | |
182 | %glib_compile_schemas | |
183 | ||
184 | %post libs -p /sbin/ldconfig | |
185 | %postun libs -p /sbin/ldconfig | |
186 | ||
187 | %files -f %{name}.lang | |
188 | %defattr(644,root,root,755) | |
685a20cd | 189 | %doc AUTHORS ChangeLog NEWS README |
e6840e88 | 190 | %attr(755,root,root) %{_bindir}/mate-desktop-item-edit |
d9531ba5 ER |
191 | %attr(755,root,root) %{_bindir}/mate-panel |
192 | %attr(755,root,root) %{_bindir}/mate-panel-test-applets | |
193 | %{_mandir}/man1/mate-desktop-item-edit.1* | |
194 | %{_mandir}/man1/mate-panel-test-applets.1* | |
195 | %{_mandir}/man1/mate-panel.1* | |
cdff6703 JB |
196 | %dir %{pkglibexecdir} |
197 | %attr(755,root,root) %{pkglibexecdir}/clock-applet | |
198 | %attr(755,root,root) %{pkglibexecdir}/fish-applet | |
199 | %attr(755,root,root) %{pkglibexecdir}/notification-area-applet | |
200 | %attr(755,root,root) %{pkglibexecdir}/wnck-applet | |
685a20cd | 201 | %{_datadir}/%{name} |
e6840e88 | 202 | %{_datadir}/glib-2.0/schemas/org.mate.panel.*.xml |
e6840e88 | 203 | %{_datadir}/dbus-1/services/org.mate.panel.*.service |
6ef92edb | 204 | %{_desktopdir}/%{name}.desktop |
685a20cd | 205 | %{_iconsdir}/hicolor/*/apps/mate-panel*.* |
e6840e88 ER |
206 | |
207 | %files libs | |
208 | %defattr(644,root,root,755) | |
685a20cd JB |
209 | %attr(755,root,root) %{_libdir}/libmate-panel-applet-4.so.*.*.* |
210 | %attr(755,root,root) %ghost %{_libdir}/libmate-panel-applet-4.so.1 | |
211 | %{_libdir}/girepository-1.0/MatePanelApplet-4.0.typelib | |
e6840e88 ER |
212 | |
213 | %files devel | |
214 | %defattr(644,root,root,755) | |
685a20cd JB |
215 | %attr(755,root,root) %{_libdir}/libmate-panel-applet-4.so |
216 | %{_includedir}/mate-panel-4.0 | |
e6840e88 ER |
217 | %{_pkgconfigdir}/libmatepanelapplet-4.0.pc |
218 | %{_datadir}/gir-1.0/MatePanelApplet-4.0.gir | |
514d5191 ER |
219 | |
220 | %if %{with apidocs} | |
221 | %files apidocs | |
222 | %defattr(644,root,root,755) | |
685a20cd | 223 | %{_gtkdocdir}/mate-panel-applet |
514d5191 | 224 | %endif |