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