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