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