File lxpanel.spec of Package lxpanel

# spec file for package lxpanel
# Copyright (c) 2012 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

Name:           lxpanel
Version:        0.5.10
Release:        0
Summary:        Lightweight X11 desktop panel based on fbpanel
License:        GPL-2.0
Group:          System/GUI/LXDE
Source0:        %name-%version.tar.gz
# PATCH-FIX-UPSTREAM lxpanel-0.5.8-fix-libgmodule-underlinking.patch -- Link explicitly against libgmodule
Patch0:         lxpanel-0.5.8-fix-libgmodule-underlinking.patch
# PATCH-FIX-UPSTREAM fix for automake 1.12
Patch1:         lxpanel-0.5.10-automake-1.12.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  alsa-devel
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  fdupes
BuildRequires:  gtk2-devel
BuildRequires:  intltool
BuildRequires:  libiw-devel
BuildRequires:  libtool
BuildRequires:  menu-cache-devel
BuildRequires:  pkg-config
BuildRequires:  update-desktop-files
BuildRequires:  wireless-tools
BuildRequires:  pkgconfig(libwnck-1.0)
Provides:       %name-plugins >= %version
Obsoletes:      %name-plugins < %version
Recommends:     %name-lang
Requires:       menu-cache

LXPanel is a lightweight X11 desktop panel containing:
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 lets you type a command and run it, 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 lets 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
Summary:        Devel files for %name
Group:          Development/Libraries/C and C++
Requires:       %name
Requires:       glib2-devel
Requires:       menu-cache-devel

%description devel
Headers and development %name files.

%setup -q
%patch0 -p1
%if 0%{?suse_version} >= 1220
%patch1 -p1

AUTOPOINT='intltoolize --automake -c' autoreconf -fi
%configure \
	--enable-man \
%__make %{?jobs:-j%jobs} V=1

%find_lang %{name}
%fdupes -s %buildroot


%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/profile/two_panels
%dir %{_datadir}/lxpanel/profile/two_panels/panels
%dir %{_datadir}/lxpanel/ui
%dir %{_datadir}/lxpanel/images
%dir %{_datadir}/lxpanel/images/xkb-flags/


%files devel
%dir %_includedir/lxpanel

%files lang -f %name.lang