]> git.pld-linux.org Git - packages/matchbox-panel.git/blame - matchbox-panel.spec
- updated gettext BR
[packages/matchbox-panel.git] / matchbox-panel.spec
CommitLineData
07e5019e
JB
1#
2# Conditional build:
3%bcond_with sn # startup-notification support
4%bcond_without wifi # wireless applet
5#
6Summary: Matchbox Panel
de130051 7Summary(pl.UTF-8): Panel dla środowiska Matchbox
07e5019e
JB
8Name: matchbox-panel
9Version: 0.9.3
10Release: 1
11License: GPL v2+
12Group: X11/Applications
13Source0: http://projects.o-hand.com/matchbox/sources/matchbox-panel/0.9/%{name}-%{version}.tar.bz2
14# Source0-md5: 56d1807636f3919e22e51896ab7ccd2e
15Patch0: %{name}-desktop.patch
16Patch1: %{name}-gcc4.patch
17URL: http://projects.o-hand.com/matchbox/
d14377bf 18BuildRequires: gettext-tools
07e5019e
JB
19%{?with_wifi:BuildRequires: libiw-devel}
20BuildRequires: libmatchbox-devel >= 1.6
21BuildRequires: pkgconfig
22%{?with_sn:BuildRequires: startup-notification-devel}
23Requires: libmatchbox >= 1.6
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
27Matchbox Panel.
28
1189f032
JR
29%description -l pl.UTF-8
30Panel dla środowiska Matchbox.
07e5019e
JB
31
32%package wireless
33Summary: Panel based wireless monitor
de130051 34Summary(pl.UTF-8): Siedzący w panelu monitor sieci bezprzewodowej
07e5019e
JB
35Group: X11/Applications
36Requires: %{name} = %{version}-%{release}
37
38%description wireless
39Panel based wireless monitor.
40
1189f032
JR
41%description wireless -l pl.UTF-8
42Siedzący w panelu monitor sieci bezprzewodowej.
07e5019e
JB
43
44%prep
45%setup -q
46%patch0 -p1
47%patch1 -p1
48
49%build
50%configure \
51 --enable-acpi-linux \
52 --enable-dnotify \
53 --enable-nls \
54 %{?with_sn:--enable-startup-notification}
55%{__make}
56
57%install
58rm -rf $RPM_BUILD_ROOT
59
60%{__make} install \
61 DESTDIR=$RPM_BUILD_ROOT
62
63# not installed if built with acpi instead of apm
64install applets/dotdesktop/mb-applet-battery.desktop $RPM_BUILD_ROOT%{_desktopdir}
65
66mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{es_ES,es}
67mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{fi_FI,fi}
68mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{fr_FR,fr}
69
70%find_lang %{name}
71
72%clean
73rm -rf $RPM_BUILD_ROOT
74
75%files -f %{name}.lang
76%defattr(644,root,root,755)
77%doc AUTHORS ChangeLog README
78%attr(755,root,root) %{_bindir}/matchbox-panel
79%attr(755,root,root) %{_bindir}/mb-applet-xterm-wrapper.sh
80%attr(755,root,root) %{_bindir}/mb-applet-battery
81%attr(755,root,root) %{_bindir}/mb-applet-clock
82%attr(755,root,root) %{_bindir}/mb-applet-menu-launcher
83%attr(755,root,root) %{_bindir}/mb-applet-launcher
84%attr(755,root,root) %{_bindir}/mb-applet-system-monitor
85%{_desktopdir}/mb-applet-battery.desktop
86%{_desktopdir}/mb-applet-clock.desktop
87%{_desktopdir}/mb-applet-menu-launcher.desktop
88%{_desktopdir}/mb-applet-system-monitor.desktop
89%{_desktopdir}/mb-launcher-term.desktop
90%{_pixmapsdir}/*.png
91
92%if %{with wifi}
93%files wireless
94%defattr(644,root,root,755)
95%attr(755,root,root) %{_bindir}/mb-applet-wireless
96%{_desktopdir}/mb-applet-wireless.desktop
97%endif
This page took 0.060503 seconds and 4 git commands to generate.