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