File lxpanel.spec of Package lxpanel
#
# spec file for package lxpanel (Version 0.5.6)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: lxpanel
Version: 0.5.6
Release: 2
Summary: Lightweight X11 desktop panel based on fbpanel
Group: System/GUI/LXDE
License: GPL
Url: http://www.lxde.org/
Source0: %name-%version.tar.bz2
# PATCH-FIX-UPSTREAM lxpanel-0.5.6-fix-alarm.patch andrea@opensuse.org
# this patch fix a compilation error due to a conflicting "alarm" type
Patch0: %name-0.5.6-fix-alarm.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: alsa-devel intltool pkg-config update-desktop-files
BuildRequires: docbook-utils gtk2-devel menu-cache-devel python-xml
BuildRequires: docbook-xsl-stylesheets libxslt-devel python-devel wireless-tools
BuildRequires: fdupes
Provides: %name-plugins >= %version
Obsoletes: %name-plugins < %version
%{py_requires}
Recommends: %name-lang
%description
LXPanel is a lightweight X11 desktop panel contains:
1. User-friendly application menu automatically generated from *.desktop files on the system.
2. Launcher bar (Small icons clicked to launch apps)
3. Task bar supporting urgency hint (Can flash when gaim gets new incoming messages)
4. Notification area (System tray)
5. Digital clock
6. Run dialog (A dialog let you type a command and run, can be called in external programs)
7. Net status icon plug-in (optional, ported from gnome-netstatus-applet)
8. Volume control plug-in (optional, written by jserv)
9. lxpanelctl, an external controller let you control lxpanel in other programs.
For example, "lxpanelctl run" will show the Run dialog in lxpanel, and "lxpanelctl menu"
will show the application menu. This is useful in key bindings provided by window managers.
%package devel
License: GPL
Group: Development/Libraries/C and C++
Summary: Devel files for %name
Requires: glib2-devel menu-cache-devel %name
%description devel
Haders and development %name files
%lang_package
%prep
%setup -q
%patch0 -p1
%build
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
%configure \
--enable-man \
--with-plugins=all
%__make %{?jobs:-j%jobs}
%install
%makeinstall
%__rm -rf %{buildroot}/%{_datadir}/locale/{frp,es_VE,ur_PK}
%fdupes -s %buildroot
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,0755)
%doc ChangeLog README COPYING
%{_bindir}/lxpanel
%{_bindir}/lxpanelctl
%dir %{_libdir}/lxpanel/
%dir %{_libdir}/lxpanel/plugins
%dir %{_datadir}/lxpanel/
%dir %{_datadir}/lxpanel/profile
%dir %{_datadir}/lxpanel/profile/default
%dir %{_datadir}/lxpanel/profile/default/panels
%dir %{_datadir}/lxpanel/ui
%dir %{_datadir}/lxpanel/images
%dir %{_datadir}/lxpanel/images/xkb-flags/
%{_datadir}/lxpanel/images/xkb-flags/*.png
%{_datadir}/lxpanel/images/*.png
%{_datadir}/lxpanel/profile/default/config
%{_datadir}/lxpanel/profile/default/panels/panel
%{_datadir}/lxpanel/ui/*.ui
%{_mandir}/man1/*.1.gz
%{_libdir}/lxpanel/plugins/batt.so
%{_libdir}/lxpanel/plugins/cpu.so
%{_libdir}/lxpanel/plugins/deskno.so
%{_libdir}/lxpanel/plugins/kbled.so
%{_libdir}/lxpanel/plugins/netstatus.so
%{_libdir}/lxpanel/plugins/thermal.so
%{_libdir}/lxpanel/plugins/volumealsa.so
%{_libdir}/lxpanel/plugins/xkb.so
%{_libdir}/lxpanel/plugins/cpufreq.so
%files devel
%defattr(-,root,root)
%dir %_includedir/lxpanel
%_includedir/lxpanel/*.h
%_libdir/pkgconfig/lxpanel.pc
%files lang -f %name.lang
%changelog