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