]>
Commit | Line | Data |
---|---|---|
07e5019e JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with sn # startup-notification support | |
4 | %bcond_without wifi # wireless applet | |
5 | # | |
6 | Summary: Matchbox Panel | |
de130051 | 7 | Summary(pl.UTF-8): Panel dla środowiska Matchbox |
07e5019e JB |
8 | Name: matchbox-panel |
9 | Version: 0.9.3 | |
10 | Release: 1 | |
11 | License: GPL v2+ | |
12 | Group: X11/Applications | |
13 | Source0: http://projects.o-hand.com/matchbox/sources/matchbox-panel/0.9/%{name}-%{version}.tar.bz2 | |
14 | # Source0-md5: 56d1807636f3919e22e51896ab7ccd2e | |
15 | Patch0: %{name}-desktop.patch | |
16 | Patch1: %{name}-gcc4.patch | |
17 | URL: http://projects.o-hand.com/matchbox/ | |
d14377bf | 18 | BuildRequires: gettext-tools |
07e5019e JB |
19 | %{?with_wifi:BuildRequires: libiw-devel} |
20 | BuildRequires: libmatchbox-devel >= 1.6 | |
21 | BuildRequires: pkgconfig | |
22 | %{?with_sn:BuildRequires: startup-notification-devel} | |
23 | Requires: libmatchbox >= 1.6 | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | Matchbox Panel. | |
28 | ||
1189f032 JR |
29 | %description -l pl.UTF-8 |
30 | Panel dla środowiska Matchbox. | |
07e5019e JB |
31 | |
32 | %package wireless | |
33 | Summary: Panel based wireless monitor | |
de130051 | 34 | Summary(pl.UTF-8): Siedzący w panelu monitor sieci bezprzewodowej |
07e5019e JB |
35 | Group: X11/Applications |
36 | Requires: %{name} = %{version}-%{release} | |
37 | ||
38 | %description wireless | |
39 | Panel based wireless monitor. | |
40 | ||
1189f032 JR |
41 | %description wireless -l pl.UTF-8 |
42 | Siedzą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 | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %{__make} install \ | |
61 | DESTDIR=$RPM_BUILD_ROOT | |
62 | ||
63 | # not installed if built with acpi instead of apm | |
64 | install applets/dotdesktop/mb-applet-battery.desktop $RPM_BUILD_ROOT%{_desktopdir} | |
65 | ||
66 | mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{es_ES,es} | |
67 | mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{fi_FI,fi} | |
68 | mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{fr_FR,fr} | |
69 | ||
70 | %find_lang %{name} | |
71 | ||
72 | %clean | |
73 | rm -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 |