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