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