]>
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 |
5066da9d | 8 | Version: 1.18.2 |
814effee | 9 | Release: 1 |
685a20cd | 10 | License: LGPL v2+ (library), GPL v2+ (applets) |
e6840e88 | 11 | Group: X11/Applications |
94637daa | 12 | Source0: http://pub.mate-desktop.org/releases/1.18/%{name}-%{version}.tar.xz |
5066da9d | 13 | # Source0-md5: 04ccf1bde646fabf8b8c3a505b3d8614 |
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 | 25 | BuildRequires: gdk-pixbuf2-devel >= 2.7.1 |
fac0f5c2 | 26 | BuildRequires: gettext-tools >= 0.12 |
814effee | 27 | BuildRequires: glib2-devel >= 1:2.36 |
685a20cd | 28 | BuildRequires: gobject-introspection-devel >= 0.6.7 |
94637daa | 29 | BuildRequires: gtk+3-devel >= 3.14 |
685a20cd | 30 | BuildRequires: gtk-doc >= 1.0 |
0f39e28d | 31 | BuildRequires: intltool >= 0.50.1 |
94637daa | 32 | BuildRequires: libcanberra-gtk3-devel |
66bc251b | 33 | BuildRequires: libmateweather-devel >= 1.17.0 |
a4f9bc80 | 34 | BuildRequires: librsvg-devel >= 2.36.2 |
56dbb331 | 35 | BuildRequires: libtool >= 1:1.4.3 |
94637daa | 36 | BuildRequires: libwnck-devel >= 3.0.0 |
e6840e88 | 37 | BuildRequires: mate-common |
94637daa JP |
38 | BuildRequires: mate-desktop-devel >= 1.17.0 |
39 | BuildRequires: mate-menus-devel >= 1.10.0 | |
ace0217e | 40 | BuildRequires: pango-devel >= 1:1.15.4 |
7f0bcc63 | 41 | BuildRequires: pkgconfig |
814effee | 42 | BuildRequires: python >= 2 |
11461a70 | 43 | BuildRequires: rpm-pythonprov |
7b3d9e33 | 44 | BuildRequires: rpmbuild(find_lang) >= 1.36 |
e6840e88 | 45 | BuildRequires: tar >= 1:1.22 |
ace0217e ER |
46 | BuildRequires: xorg-lib-libICE-devel |
47 | BuildRequires: xorg-lib-libSM-devel | |
48 | BuildRequires: xorg-lib-libX11-devel | |
685a20cd | 49 | BuildRequires: xorg-lib-libXau-devel |
0f39e28d | 50 | BuildRequires: xorg-lib-libXrandr-devel >= 1.3.0 |
e6840e88 | 51 | BuildRequires: xz |
d3ef0b33 | 52 | BuildRequires: yelp-tools |
e6840e88 | 53 | Requires: %{name}-libs = %{version}-%{release} |
685a20cd JB |
54 | Requires: dbus >= 1.1.2 |
55 | Requires: dbus-glib >= 0.80 | |
56 | Requires: dconf >= 0.13.4 | |
50b376c3 | 57 | Requires: desktop-file-utils |
e6840e88 | 58 | Requires: gsettings-desktop-schemas |
e6840e88 | 59 | Requires: gtk-update-icon-cache |
66bc251b | 60 | Requires: libmateweather >= 1.17.0 |
2ee8f911 | 61 | Requires: librsvg >= 2.36.2 |
94637daa | 62 | Requires: libwnck >= 3.0.0 |
d3ef0b33 | 63 | Requires: marco |
94637daa | 64 | Requires: mate-desktop >= 1.17.0 |
66bc251b | 65 | Requires: mate-menus >= 1.10.0 |
2d1ecf41 | 66 | Suggests: mate-settings-daemon |
e6840e88 ER |
67 | # for fish |
68 | Requires: fortune-mod | |
69 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
70 | ||
71 | %description | |
685a20cd JB |
72 | MATE Desktop panel applets. |
73 | ||
74 | %description -l pl.UTF-8 | |
75 | Aplety panelu dla środowiska MATE Desktop. | |
e6840e88 ER |
76 | |
77 | %package libs | |
685a20cd JB |
78 | Summary: Shared library for MATE panel applets |
79 | Summary(pl.UTF-8): Biblitoteka współdzielona dla apletów panelu MATE | |
e6840e88 ER |
80 | License: LGPL v2+ |
81 | Group: Libraries | |
685a20cd JB |
82 | Requires: cairo >= 1.0.0 |
83 | Requires: gdk-pixbuf2 >= 2.7.1 | |
814effee | 84 | Requires: glib2 >= 1:2.36 |
94637daa | 85 | Requires: gtk+3 >= 3.14 |
685a20cd | 86 | Requires: pango >= 1:1.15.4 |
130c6e9c | 87 | Requires: xorg-lib-libXrandr >= 1.3.0 |
e6840e88 ER |
88 | |
89 | %description libs | |
685a20cd JB |
90 | Shared library for MATE panel applets. |
91 | ||
92 | %description libs -l pl.UTF-8 | |
93 | Biblitoteka współdzielona dla apletów panelu MATE. | |
e6840e88 ER |
94 | |
95 | %package devel | |
685a20cd JB |
96 | Summary: Development files for libmate-panel-applet library |
97 | Summary(pl.UTF-8): Pliki programistyczne biblioteki libmate-panel-applet | |
98 | License: LGPL v2+ | |
e6840e88 ER |
99 | Group: Development/Libraries |
100 | Requires: %{name}-libs = %{version}-%{release} | |
814effee | 101 | Requires: glib2-devel >= 1:2.36 |
94637daa | 102 | Requires: gtk+3-devel >= 3.14 |
e6840e88 ER |
103 | |
104 | %description devel | |
685a20cd JB |
105 | Development files for libmate-panel-applet library. |
106 | ||
107 | %description devel -l pl.UTF-8 | |
108 | Pliki programistyczne biblioteki libmate-panel-applet. | |
e6840e88 | 109 | |
514d5191 | 110 | %package apidocs |
685a20cd JB |
111 | Summary: API documentation for libmate-panel-applet library |
112 | Summary(pl.UTF-8): Dokumentacja API biblioteki libmate-panel-applet | |
514d5191 ER |
113 | Group: Documentation |
114 | Requires: gtk-doc-common | |
56dbb331 ER |
115 | %if "%{_rpmversion}" >= "5" |
116 | BuildArch: noarch | |
117 | %endif | |
514d5191 ER |
118 | |
119 | %description apidocs | |
685a20cd | 120 | API documentation for libmate-panel-applet library. |
514d5191 ER |
121 | |
122 | %description apidocs -l pl.UTF-8 | |
685a20cd | 123 | Dokumentacja API biblioteki libmate-panel-applet. |
514d5191 | 124 | |
e6840e88 ER |
125 | %prep |
126 | %setup -q | |
ee8e5e1a | 127 | %patch0 -p1 |
e6840e88 ER |
128 | |
129 | %build | |
685a20cd JB |
130 | %{__libtoolize} |
131 | %{__aclocal} -I m4 | |
d9531ba5 | 132 | %{__autoconf} |
685a20cd | 133 | %{__autoheader} |
d9531ba5 | 134 | %{__automake} |
e6840e88 ER |
135 | # libexecdir needed for gnome conflicts |
136 | %configure \ | |
685a20cd JB |
137 | --libexecdir=%{_libdir}/%{name} \ |
138 | --enable-network-manager \ | |
139 | --disable-schemas-compile \ | |
685a20cd | 140 | --disable-silent-rules \ |
e6840e88 | 141 | --disable-static \ |
685a20cd JB |
142 | --with-html-dir=%{_gtkdocdir} \ |
143 | --with-x | |
e6840e88 | 144 | |
d6ba59e6 | 145 | %{__make} |
e6840e88 ER |
146 | |
147 | %install | |
148 | rm -rf $RPM_BUILD_ROOT | |
149 | %{__make} install \ | |
150 | DESTDIR=$RPM_BUILD_ROOT | |
151 | ||
514d5191 | 152 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la |
e6840e88 ER |
153 | |
154 | desktop-file-install \ | |
155 | --remove-category="MATE" \ | |
156 | --add-category="X-Mate" \ | |
157 | --dir=$RPM_BUILD_ROOT%{_desktopdir} \ | |
685a20cd | 158 | $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop |
e6840e88 | 159 | |
8545beae | 160 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{frp,jv,ku_IQ,pms} |
a4f9bc80 | 161 | |
1f9d57d8 | 162 | %find_lang %{name} --with-mate --all-name |
e6840e88 ER |
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) | |
685a20cd | 182 | %doc AUTHORS ChangeLog NEWS README |
e6840e88 | 183 | %attr(755,root,root) %{_bindir}/mate-desktop-item-edit |
d9531ba5 ER |
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* | |
6ef92edb ER |
189 | %dir %{_libdir}/%{name} |
190 | %attr(755,root,root) %{_libdir}/%{name}/clock-applet | |
191 | %attr(755,root,root) %{_libdir}/%{name}/fish-applet | |
6ef92edb ER |
192 | %attr(755,root,root) %{_libdir}/%{name}/notification-area-applet |
193 | %attr(755,root,root) %{_libdir}/%{name}/wnck-applet | |
685a20cd | 194 | %{_datadir}/%{name} |
e6840e88 | 195 | %{_datadir}/glib-2.0/schemas/org.mate.panel.*.xml |
e6840e88 | 196 | %{_datadir}/dbus-1/services/org.mate.panel.*.service |
6ef92edb | 197 | %{_desktopdir}/%{name}.desktop |
685a20cd | 198 | %{_iconsdir}/hicolor/*/apps/mate-panel*.* |
e6840e88 ER |
199 | |
200 | %files libs | |
201 | %defattr(644,root,root,755) | |
685a20cd JB |
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 | |
e6840e88 ER |
205 | |
206 | %files devel | |
207 | %defattr(644,root,root,755) | |
685a20cd JB |
208 | %attr(755,root,root) %{_libdir}/libmate-panel-applet-4.so |
209 | %{_includedir}/mate-panel-4.0 | |
e6840e88 ER |
210 | %{_pkgconfigdir}/libmatepanelapplet-4.0.pc |
211 | %{_datadir}/gir-1.0/MatePanelApplet-4.0.gir | |
514d5191 ER |
212 | |
213 | %if %{with apidocs} | |
214 | %files apidocs | |
215 | %defattr(644,root,root,755) | |
685a20cd | 216 | %{_gtkdocdir}/mate-panel-applet |
514d5191 | 217 | %endif |