]> git.pld-linux.org Git - packages/mate-panel.git/blame - mate-panel.spec
- release 3 (by relup.sh)
[packages/mate-panel.git] / mate-panel.spec
CommitLineData
e6840e88 1# TODO
e6840e88
ER
2# - check direct deps:
3#mate-panel-1.5.3-0.1.i686 marks mate-menus-libs-1.5.0-1.i686 (cap libmate-menu.so.2)
4#mate-panel-1.5.3-0.1.i686 marks mate-panel-libs-1.5.3-0.1.i686 (cap libmate-panel-applet-4.so.1)
5#mate-panel-1.5.3-0.1.i686 marks libmateweather-1.5.0-1.i686 (cap libmateweather.so.1)
6#mate-panel-1.5.3-0.1.i686 marks libmatewnck-1.5.0-1.i686 (cap libmatewnck.so.0)
e6840e88
ER
7
8# Conditional build:
388db1d8 9%bcond_without apidocs # disable gtk-doc
e6840e88
ER
10
11Summary: MATE Desktop panel applets
12Name: mate-panel
e80e916c 13Version: 1.6.1
fc26b33b 14Release: 3
e6840e88
ER
15# libs are LGPLv2+ applications GPLv2+
16License: GPL v2+
17Group: X11/Applications
d8dbb0a5 18Source0: http://pub.mate-desktop.org/releases/1.6/%{name}-%{version}.tar.xz
e80e916c 19# Source0-md5: 330120e045183413bca371b295c6a1df
ee8e5e1a 20Patch0: no-xdg-menu-prefix.patch
a8f96508 21Patch1: use-libwnck.patch
ace0217e 22URL: http://wiki.mate-desktop.org/mate-panel
ace0217e
ER
23BuildRequires: dbus-glib-devel
24BuildRequires: dconf-devel
e6840e88 25BuildRequires: desktop-file-utils
11461a70 26BuildRequires: docbook-dtd412-xml
7a02f277 27BuildRequires: glib2-devel >= 1:2.26.0
ace0217e 28BuildRequires: gobject-introspection-devel
ace0217e 29BuildRequires: gtk+2-devel >= 2:2.19.7
ace0217e
ER
30BuildRequires: intltool >= 0.40.0
31BuildRequires: libcanberra-devel
11461a70 32BuildRequires: libcanberra-gtk-devel
d6ba59e6 33BuildRequires: libmateweather-devel >= 1.5.0
ace0217e 34BuildRequires: librsvg-devel
a8f96508 35BuildRequires: libwnck2-devel >= 2.30.7-2
e6840e88 36BuildRequires: mate-common
d6ba59e6 37BuildRequires: mate-desktop-devel >= 1.5.0
ace0217e
ER
38%{?with_apidocs:BuildRequires: mate-doc-utils}
39BuildRequires: mate-menus-devel
40BuildRequires: pango-devel >= 1:1.15.4
e6840e88 41BuildRequires: popt-devel
11461a70 42BuildRequires: rpm-pythonprov
7b3d9e33 43BuildRequires: rpmbuild(find_lang) >= 1.36
e6840e88 44BuildRequires: tar >= 1:1.22
ace0217e
ER
45BuildRequires: xorg-lib-libICE-devel
46BuildRequires: xorg-lib-libSM-devel
47BuildRequires: xorg-lib-libX11-devel
e6840e88
ER
48BuildRequires: xz
49Requires: %{name}-libs = %{version}-%{release}
50b376c3 50Requires: desktop-file-utils
e6840e88
ER
51Requires: glib2 >= 1:2.26.0
52Requires: gsettings-desktop-schemas
e6840e88 53Requires: gtk-update-icon-cache
a8f96508 54Requires: libwnck2 >= 2.30.7-2
a58ef747 55Requires: mate-window-manager
2d1ecf41 56Suggests: mate-settings-daemon
e6840e88
ER
57# for fish
58Requires: fortune-mod
59BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
60
61%description
62MATE Desktop panel applets
63
64%package libs
6ef92edb 65Summary: Shared libraries for %{name}
e6840e88
ER
66License: LGPL v2+
67Group: Libraries
e6840e88
ER
68
69%description libs
70Shared libraries for libmate-desktop
71
72%package devel
6ef92edb 73Summary: Development files for %{name}
e6840e88
ER
74Group: Development/Libraries
75Requires: %{name}-libs = %{version}-%{release}
76
77%description devel
6ef92edb 78Development files for %{name}
e6840e88 79
514d5191 80%package apidocs
6ef92edb
ER
81Summary: %{name} API documentation
82Summary(pl.UTF-8): Dokumentacja API %{name}
514d5191
ER
83Group: Documentation
84Requires: gtk-doc-common
85
86%description apidocs
6ef92edb 87%{name} API documentation.
514d5191
ER
88
89%description apidocs -l pl.UTF-8
6ef92edb 90Dokumentacja API %{name}.
514d5191 91
e6840e88
ER
92%prep
93%setup -q
ee8e5e1a 94%patch0 -p1
a8f96508 95%patch1 -p1
e6840e88
ER
96
97%build
d9531ba5
ER
98%{__aclocal}
99%{__autoconf}
100%{__automake}
e6840e88
ER
101# libexecdir needed for gnome conflicts
102%configure \
d6ba59e6 103 --disable-silent-rules \
e6840e88
ER
104 --disable-scrollkeeper \
105 --disable-static \
106 --disable-schemas-compile \
107 --with-x \
108 --enable-network-manager \
6ef92edb 109 --libexecdir=%{_libdir}/%{name} \
388db1d8 110 --with-html-dir=%{_gtkdocdir}
e6840e88 111
d6ba59e6 112%{__make}
e6840e88
ER
113
114%install
115rm -rf $RPM_BUILD_ROOT
116%{__make} install \
117 DESTDIR=$RPM_BUILD_ROOT
118
7a02f277
ER
119# mate < 1.5 did not exist in pld, avoid dependency on mate-conf
120%{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/mate-panel.convert
121
514d5191 122%{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
e6840e88
ER
123
124desktop-file-install \
125 --remove-category="MATE" \
126 --add-category="X-Mate" \
127 --dir=$RPM_BUILD_ROOT%{_desktopdir} \
6ef92edb 128$RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
e6840e88 129
7b3d9e33 130%find_lang %{name} --with-mate --with-omf --all-name
e6840e88
ER
131
132%clean
133rm -rf $RPM_BUILD_ROOT
134
135%post
136%update_icon_cache hicolor
137%update_desktop_database
138%glib_compile_schemas
139
140%postun
141%update_icon_cache hicolor
142%update_desktop_database
143%glib_compile_schemas
144
145%post libs -p /sbin/ldconfig
146%postun libs -p /sbin/ldconfig
147
148%files -f %{name}.lang
149%defattr(644,root,root,755)
150%doc AUTHORS COPYING README
151%attr(755,root,root) %{_bindir}/mate-desktop-item-edit
d9531ba5
ER
152%attr(755,root,root) %{_bindir}/mate-panel
153%attr(755,root,root) %{_bindir}/mate-panel-test-applets
154%{_mandir}/man1/mate-desktop-item-edit.1*
155%{_mandir}/man1/mate-panel-test-applets.1*
156%{_mandir}/man1/mate-panel.1*
6ef92edb
ER
157%dir %{_libdir}/%{name}
158%attr(755,root,root) %{_libdir}/%{name}/clock-applet
159%attr(755,root,root) %{_libdir}/%{name}/fish-applet
6ef92edb
ER
160%attr(755,root,root) %{_libdir}/%{name}/notification-area-applet
161%attr(755,root,root) %{_libdir}/%{name}/wnck-applet
e6840e88 162%{_libdir}/girepository-1.0/MatePanelApplet-4.0.typelib
e6840e88 163%{_datadir}/glib-2.0/schemas/org.mate.panel.*.xml
e6840e88 164%{_datadir}/dbus-1/services/org.mate.panel.*.service
6ef92edb 165%{_datadir}/%{name}
d9531ba5 166%{_iconsdir}/hicolor/*/*/*.*
6ef92edb 167%{_desktopdir}/%{name}.desktop
e6840e88
ER
168
169%files libs
170%defattr(644,root,root,755)
171%doc COPYING.LIB
6ef92edb
ER
172%attr(755,root,root) %{_libdir}/lib%{name}-applet-4.so.*.*.*
173%ghost %{_libdir}/lib%{name}-applet-4.so.1
e6840e88
ER
174
175%files devel
176%defattr(644,root,root,755)
6ef92edb
ER
177%{_libdir}/lib%{name}-applet-4.so
178%{_includedir}/%{name}-4.0
e6840e88
ER
179%{_pkgconfigdir}/libmatepanelapplet-4.0.pc
180%{_datadir}/gir-1.0/MatePanelApplet-4.0.gir
514d5191
ER
181
182%if %{with apidocs}
183%files apidocs
184%defattr(644,root,root,755)
6ef92edb 185%{_gtkdocdir}/%{name}-applet
514d5191 186%endif
This page took 0.370719 seconds and 4 git commands to generate.