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