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