]> git.pld-linux.org Git - packages/mate-panel.git/blame - mate-panel.spec
- up to 1.8.1
[packages/mate-panel.git] / mate-panel.spec
CommitLineData
685a20cd 1#
e6840e88 2# Conditional build:
388db1d8 3%bcond_without apidocs # disable gtk-doc
7f0bcc63 4%bcond_with gtk3 # use GTK+ 3.x instead of 2.x
e6840e88
ER
5
6Summary: MATE Desktop panel applets
685a20cd 7Summary(pl.UTF-8): Aplety panelu dla środowiska MATE Desktop
e6840e88 8Name: mate-panel
d3c7285d
JP
9Version: 1.8.1
10Release: 1
685a20cd 11License: LGPL v2+ (library), GPL v2+ (applets)
e6840e88 12Group: X11/Applications
d3ef0b33 13Source0: http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz
d3c7285d 14# Source0-md5: 9354b0f9619b273c1432fd8490e6cbac
ee8e5e1a 15Patch0: no-xdg-menu-prefix.patch
ace0217e 16URL: http://wiki.mate-desktop.org/mate-panel
685a20cd
JB
17BuildRequires: NetworkManager-devel >= 0.6
18BuildRequires: autoconf >= 2.53
19BuildRequires: automake >= 1:1.9
20BuildRequires: cairo-devel >= 1.0.0
21BuildRequires: dbus-devel >= 1.1.2
22BuildRequires: dbus-glib-devel >= 0.80
23BuildRequires: dconf-devel >= 0.13.4
e6840e88 24BuildRequires: desktop-file-utils
11461a70 25BuildRequires: docbook-dtd412-xml
685a20cd
JB
26BuildRequires: gdk-pixbuf2-devel >= 2.7.1
27BuildRequires: gettext-devel >= 0.12
7a02f277 28BuildRequires: glib2-devel >= 1:2.26.0
685a20cd 29BuildRequires: gobject-introspection-devel >= 0.6.7
7f0bcc63
JB
30%{!?with_gtk3:BuildRequires: gtk+2-devel >= 2:2.19.7}
31%{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0.0}
685a20cd 32BuildRequires: gtk-doc >= 1.0
ace0217e 33BuildRequires: intltool >= 0.40.0
7f0bcc63
JB
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}
685a20cd 38BuildRequires: librsvg-devel >= 2.0
56dbb331 39BuildRequires: libtool >= 1:1.4.3
7f0bcc63
JB
40%{?with_gtk3:BuildRequires: libwnck-devel >= 3.0.0}
41%{!?with_gtk3:BuildRequires: libwnck2-devel >= 2.30.7-2}
e6840e88 42BuildRequires: mate-common
d6ba59e6 43BuildRequires: mate-desktop-devel >= 1.5.0
685a20cd 44BuildRequires: mate-menus-devel >= 1.1.0
ace0217e 45BuildRequires: pango-devel >= 1:1.15.4
7f0bcc63 46BuildRequires: pkgconfig
11461a70 47BuildRequires: rpm-pythonprov
7b3d9e33 48BuildRequires: rpmbuild(find_lang) >= 1.36
e6840e88 49BuildRequires: tar >= 1:1.22
ace0217e
ER
50BuildRequires: xorg-lib-libICE-devel
51BuildRequires: xorg-lib-libSM-devel
52BuildRequires: xorg-lib-libX11-devel
685a20cd
JB
53BuildRequires: xorg-lib-libXau-devel
54BuildRequires: xorg-lib-libXrandr-devel >= 1.2.0
e6840e88 55BuildRequires: xz
d3ef0b33 56BuildRequires: yelp-tools
e6840e88 57Requires: %{name}-libs = %{version}-%{release}
685a20cd
JB
58Requires: dbus >= 1.1.2
59Requires: dbus-glib >= 0.80
60Requires: dconf >= 0.13.4
50b376c3 61Requires: desktop-file-utils
e6840e88 62Requires: gsettings-desktop-schemas
e6840e88 63Requires: gtk-update-icon-cache
7f0bcc63
JB
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}
d3ef0b33 68Requires: marco
685a20cd
JB
69Requires: mate-desktop >= 1.5.0
70Requires: mate-menus >= 1.1.0
2d1ecf41 71Suggests: mate-settings-daemon
e6840e88
ER
72# for fish
73Requires: fortune-mod
74BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
75
76%description
685a20cd
JB
77MATE Desktop panel applets.
78
79%description -l pl.UTF-8
80Aplety panelu dla środowiska MATE Desktop.
e6840e88
ER
81
82%package libs
685a20cd
JB
83Summary: Shared library for MATE panel applets
84Summary(pl.UTF-8): Biblitoteka współdzielona dla apletów panelu MATE
e6840e88
ER
85License: LGPL v2+
86Group: Libraries
685a20cd
JB
87Requires: cairo >= 1.0.0
88Requires: gdk-pixbuf2 >= 2.7.1
89Requires: glib2 >= 1:2.26.0
7f0bcc63
JB
90%{!?with_gtk3:Requires: gtk+2 >= 2:2.19.7}
91%{?with_gtk3:Requires: gtk+3 >= 3.0.0}
685a20cd
JB
92Requires: pango >= 1:1.15.4
93Requires: xorg-lib-libXrandr >= 1.2.0
e6840e88
ER
94
95%description libs
685a20cd
JB
96Shared library for MATE panel applets.
97
98%description libs -l pl.UTF-8
99Biblitoteka współdzielona dla apletów panelu MATE.
e6840e88
ER
100
101%package devel
685a20cd
JB
102Summary: Development files for libmate-panel-applet library
103Summary(pl.UTF-8): Pliki programistyczne biblioteki libmate-panel-applet
104License: LGPL v2+
e6840e88
ER
105Group: Development/Libraries
106Requires: %{name}-libs = %{version}-%{release}
685a20cd 107Requires: glib2-devel >= 1:2.26.0
7f0bcc63
JB
108%{!?with_gtk3:Requires: gtk+2-devel >= 2:2.19.7}
109%{?with_gtk3:Requires: gtk+3-devel >= 3.0.0}
e6840e88
ER
110
111%description devel
685a20cd
JB
112Development files for libmate-panel-applet library.
113
114%description devel -l pl.UTF-8
115Pliki programistyczne biblioteki libmate-panel-applet.
e6840e88 116
514d5191 117%package apidocs
685a20cd
JB
118Summary: API documentation for libmate-panel-applet library
119Summary(pl.UTF-8): Dokumentacja API biblioteki libmate-panel-applet
514d5191
ER
120Group: Documentation
121Requires: gtk-doc-common
56dbb331
ER
122%if "%{_rpmversion}" >= "5"
123BuildArch: noarch
124%endif
514d5191
ER
125
126%description apidocs
685a20cd 127API documentation for libmate-panel-applet library.
514d5191
ER
128
129%description apidocs -l pl.UTF-8
685a20cd 130Dokumentacja API biblioteki libmate-panel-applet.
514d5191 131
e6840e88
ER
132%prep
133%setup -q
ee8e5e1a 134%patch0 -p1
e6840e88
ER
135
136%build
685a20cd
JB
137%{__libtoolize}
138%{__aclocal} -I m4
d9531ba5 139%{__autoconf}
685a20cd 140%{__autoheader}
d9531ba5 141%{__automake}
e6840e88
ER
142# libexecdir needed for gnome conflicts
143%configure \
685a20cd
JB
144 --libexecdir=%{_libdir}/%{name} \
145 --enable-network-manager \
146 --disable-schemas-compile \
685a20cd 147 --disable-silent-rules \
e6840e88 148 --disable-static \
1f9d57d8 149 %{?with_gtk3:--with-gtk=3.0} \
685a20cd
JB
150 --with-html-dir=%{_gtkdocdir} \
151 --with-x
e6840e88 152
d6ba59e6 153%{__make}
e6840e88
ER
154
155%install
156rm -rf $RPM_BUILD_ROOT
157%{__make} install \
158 DESTDIR=$RPM_BUILD_ROOT
159
7a02f277
ER
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
514d5191 163%{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
e6840e88
ER
164
165desktop-file-install \
166 --remove-category="MATE" \
167 --add-category="X-Mate" \
168 --dir=$RPM_BUILD_ROOT%{_desktopdir} \
685a20cd 169 $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
e6840e88 170
8233cc5c
JB
171# update naming convention
172%{__mv} $RPM_BUILD_ROOT%{_localedir}/{sr@ije,sr@ijekavian}
173
1f9d57d8 174%find_lang %{name} --with-mate --all-name
e6840e88
ER
175
176%clean
177rm -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)
685a20cd 194%doc AUTHORS ChangeLog NEWS README
e6840e88 195%attr(755,root,root) %{_bindir}/mate-desktop-item-edit
d9531ba5
ER
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*
6ef92edb
ER
201%dir %{_libdir}/%{name}
202%attr(755,root,root) %{_libdir}/%{name}/clock-applet
203%attr(755,root,root) %{_libdir}/%{name}/fish-applet
6ef92edb
ER
204%attr(755,root,root) %{_libdir}/%{name}/notification-area-applet
205%attr(755,root,root) %{_libdir}/%{name}/wnck-applet
685a20cd 206%{_datadir}/%{name}
e6840e88 207%{_datadir}/glib-2.0/schemas/org.mate.panel.*.xml
e6840e88 208%{_datadir}/dbus-1/services/org.mate.panel.*.service
6ef92edb 209%{_desktopdir}/%{name}.desktop
685a20cd 210%{_iconsdir}/hicolor/*/apps/mate-panel*.*
e6840e88
ER
211
212%files libs
213%defattr(644,root,root,755)
685a20cd
JB
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
e6840e88
ER
217
218%files devel
219%defattr(644,root,root,755)
685a20cd
JB
220%attr(755,root,root) %{_libdir}/libmate-panel-applet-4.so
221%{_includedir}/mate-panel-4.0
e6840e88
ER
222%{_pkgconfigdir}/libmatepanelapplet-4.0.pc
223%{_datadir}/gir-1.0/MatePanelApplet-4.0.gir
514d5191
ER
224
225%if %{with apidocs}
226%files apidocs
227%defattr(644,root,root,755)
685a20cd 228%{_gtkdocdir}/mate-panel-applet
514d5191 229%endif
This page took 1.080401 seconds and 4 git commands to generate.