]>
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 |
d3ef0b33 | 8 | Version: 1.8.0 |
56dbb331 | 9 | Release: 2 |
685a20cd | 10 | License: LGPL v2+ (library), GPL v2+ (applets) |
e6840e88 | 11 | Group: X11/Applications |
d3ef0b33 JP |
12 | Source0: http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz |
13 | # Source0-md5: fe1a3ff81a5d12cdbb8f3882cbb4f188 | |
ee8e5e1a | 14 | Patch0: no-xdg-menu-prefix.patch |
ace0217e | 15 | URL: http://wiki.mate-desktop.org/mate-panel |
685a20cd JB |
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 | |
e6840e88 | 23 | BuildRequires: desktop-file-utils |
11461a70 | 24 | BuildRequires: docbook-dtd412-xml |
685a20cd JB |
25 | BuildRequires: gdk-pixbuf2-devel >= 2.7.1 |
26 | BuildRequires: gettext-devel >= 0.12 | |
7a02f277 | 27 | BuildRequires: glib2-devel >= 1:2.26.0 |
685a20cd | 28 | BuildRequires: gobject-introspection-devel >= 0.6.7 |
ace0217e | 29 | BuildRequires: gtk+2-devel >= 2:2.19.7 |
685a20cd | 30 | BuildRequires: gtk-doc >= 1.0 |
ace0217e | 31 | BuildRequires: intltool >= 0.40.0 |
11461a70 | 32 | BuildRequires: libcanberra-gtk-devel |
d6ba59e6 | 33 | BuildRequires: libmateweather-devel >= 1.5.0 |
685a20cd | 34 | BuildRequires: librsvg-devel >= 2.0 |
56dbb331 | 35 | BuildRequires: libtool >= 1:1.4.3 |
a8f96508 | 36 | BuildRequires: libwnck2-devel >= 2.30.7-2 |
e6840e88 | 37 | BuildRequires: mate-common |
d6ba59e6 | 38 | BuildRequires: mate-desktop-devel >= 1.5.0 |
685a20cd | 39 | BuildRequires: mate-menus-devel >= 1.1.0 |
ace0217e | 40 | BuildRequires: pango-devel >= 1:1.15.4 |
11461a70 | 41 | BuildRequires: rpm-pythonprov |
7b3d9e33 | 42 | BuildRequires: rpmbuild(find_lang) >= 1.36 |
e6840e88 | 43 | BuildRequires: tar >= 1:1.22 |
ace0217e ER |
44 | BuildRequires: xorg-lib-libICE-devel |
45 | BuildRequires: xorg-lib-libSM-devel | |
46 | BuildRequires: xorg-lib-libX11-devel | |
685a20cd JB |
47 | BuildRequires: xorg-lib-libXau-devel |
48 | BuildRequires: xorg-lib-libXrandr-devel >= 1.2.0 | |
e6840e88 | 49 | BuildRequires: xz |
d3ef0b33 | 50 | BuildRequires: yelp-tools |
e6840e88 | 51 | Requires: %{name}-libs = %{version}-%{release} |
685a20cd JB |
52 | Requires: dbus >= 1.1.2 |
53 | Requires: dbus-glib >= 0.80 | |
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 |
685a20cd | 58 | Requires: libmateweather >= 1.5.0 |
a8f96508 | 59 | Requires: libwnck2 >= 2.30.7-2 |
d3ef0b33 | 60 | Requires: marco |
685a20cd JB |
61 | Requires: mate-desktop >= 1.5.0 |
62 | Requires: mate-menus >= 1.1.0 | |
2d1ecf41 | 63 | Suggests: mate-settings-daemon |
e6840e88 ER |
64 | # for fish |
65 | Requires: fortune-mod | |
66 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
67 | ||
68 | %description | |
685a20cd JB |
69 | MATE Desktop panel applets. |
70 | ||
71 | %description -l pl.UTF-8 | |
72 | Aplety panelu dla środowiska MATE Desktop. | |
e6840e88 ER |
73 | |
74 | %package libs | |
685a20cd JB |
75 | Summary: Shared library for MATE panel applets |
76 | Summary(pl.UTF-8): Biblitoteka współdzielona dla apletów panelu MATE | |
e6840e88 ER |
77 | License: LGPL v2+ |
78 | Group: Libraries | |
685a20cd JB |
79 | Requires: cairo >= 1.0.0 |
80 | Requires: gdk-pixbuf2 >= 2.7.1 | |
81 | Requires: glib2 >= 1:2.26.0 | |
82 | Requires: gtk+2 >= 2:2.19.7 | |
83 | Requires: pango >= 1:1.15.4 | |
84 | Requires: xorg-lib-libXrandr >= 1.2.0 | |
e6840e88 ER |
85 | |
86 | %description libs | |
685a20cd JB |
87 | Shared library for MATE panel applets. |
88 | ||
89 | %description libs -l pl.UTF-8 | |
90 | Biblitoteka współdzielona dla apletów panelu MATE. | |
e6840e88 ER |
91 | |
92 | %package devel | |
685a20cd JB |
93 | Summary: Development files for libmate-panel-applet library |
94 | Summary(pl.UTF-8): Pliki programistyczne biblioteki libmate-panel-applet | |
95 | License: LGPL v2+ | |
e6840e88 ER |
96 | Group: Development/Libraries |
97 | Requires: %{name}-libs = %{version}-%{release} | |
685a20cd JB |
98 | Requires: glib2-devel >= 1:2.26.0 |
99 | Requires: gtk+2-devel >= 2:2.19.7 | |
e6840e88 ER |
100 | |
101 | %description devel | |
685a20cd JB |
102 | Development files for libmate-panel-applet library. |
103 | ||
104 | %description devel -l pl.UTF-8 | |
105 | Pliki programistyczne biblioteki libmate-panel-applet. | |
e6840e88 | 106 | |
514d5191 | 107 | %package apidocs |
685a20cd JB |
108 | Summary: API documentation for libmate-panel-applet library |
109 | Summary(pl.UTF-8): Dokumentacja API biblioteki libmate-panel-applet | |
514d5191 ER |
110 | Group: Documentation |
111 | Requires: gtk-doc-common | |
56dbb331 ER |
112 | %if "%{_rpmversion}" >= "5" |
113 | BuildArch: noarch | |
114 | %endif | |
514d5191 ER |
115 | |
116 | %description apidocs | |
685a20cd | 117 | API documentation for libmate-panel-applet library. |
514d5191 ER |
118 | |
119 | %description apidocs -l pl.UTF-8 | |
685a20cd | 120 | Dokumentacja API biblioteki libmate-panel-applet. |
514d5191 | 121 | |
e6840e88 ER |
122 | %prep |
123 | %setup -q | |
ee8e5e1a | 124 | %patch0 -p1 |
e6840e88 ER |
125 | |
126 | %build | |
685a20cd JB |
127 | %{__libtoolize} |
128 | %{__aclocal} -I m4 | |
d9531ba5 | 129 | %{__autoconf} |
685a20cd | 130 | %{__autoheader} |
d9531ba5 | 131 | %{__automake} |
e6840e88 ER |
132 | # libexecdir needed for gnome conflicts |
133 | %configure \ | |
685a20cd JB |
134 | --libexecdir=%{_libdir}/%{name} \ |
135 | --enable-network-manager \ | |
136 | --disable-schemas-compile \ | |
e6840e88 | 137 | --disable-scrollkeeper \ |
685a20cd | 138 | --disable-silent-rules \ |
e6840e88 | 139 | --disable-static \ |
685a20cd JB |
140 | --with-html-dir=%{_gtkdocdir} \ |
141 | --with-x | |
e6840e88 | 142 | |
d6ba59e6 | 143 | %{__make} |
e6840e88 ER |
144 | |
145 | %install | |
146 | rm -rf $RPM_BUILD_ROOT | |
147 | %{__make} install \ | |
148 | DESTDIR=$RPM_BUILD_ROOT | |
149 | ||
7a02f277 ER |
150 | # mate < 1.5 did not exist in pld, avoid dependency on mate-conf |
151 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/mate-panel.convert | |
152 | ||
514d5191 | 153 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la |
d3ef0b33 | 154 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/cmn |
e6840e88 ER |
155 | |
156 | desktop-file-install \ | |
157 | --remove-category="MATE" \ | |
158 | --add-category="X-Mate" \ | |
159 | --dir=$RPM_BUILD_ROOT%{_desktopdir} \ | |
685a20cd | 160 | $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop |
e6840e88 | 161 | |
8233cc5c JB |
162 | # update naming convention |
163 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{sr@ije,sr@ijekavian} | |
164 | ||
7b3d9e33 | 165 | %find_lang %{name} --with-mate --with-omf --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* | |
6ef92edb ER |
192 | %dir %{_libdir}/%{name} |
193 | %attr(755,root,root) %{_libdir}/%{name}/clock-applet | |
194 | %attr(755,root,root) %{_libdir}/%{name}/fish-applet | |
6ef92edb ER |
195 | %attr(755,root,root) %{_libdir}/%{name}/notification-area-applet |
196 | %attr(755,root,root) %{_libdir}/%{name}/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 |