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