Name:		fbpanel
Version:	6.1
Release:	alt0.3
Summary:	A lightweight X11 desktop panel
Group:		Graphical desktop/Other

# %%{_bindir}/fbpanel and almost all plugins are under LGPLv2+
# Some plugins (cpu.so, pager.so, tray.so) are under GPLv2+
License:	LGPLv2+ and GPLv2+

URL:		http://fbpanel.sourceforge.net
Packager:	Anatoly Chernov <aichernov@umail.ru>

Source:		http://downloads.sourceforge.net/%name/%name-%version.tbz2
Source1:	%name.desktop

# Automatically added by buildreq on Tue Nov 22 2011
BuildRequires: desktop-file-utils libgtk+2-devel


%description
fbpanel is a lightweight X11 desktop panel. It works with any ICCCM / NETWM 
compliant window manager such as sawfish, metacity, openbox, xfwm4, or KDE.
It features tasklist, pager, launchbar, clock, menu and systray.

%prep
%setup -q

# preserve timestamps during install
sed -i.stamp -e 's|install -m|install -p -m|' scripts/install.sh
# I don't know is it necessary ...
# sed -i 's|$(DATADIR)/locale|$(DESTDIR)/$(DATADIR)/locale|g'rules.mk

%build
./configure --prefix=%prefix --libexecdir=%_libdir

%make_build

%install
%makeinstall_std


# desktop file stuff
desktop-file-install --dir=%buildroot%_desktopdir %SOURCE1

# icon
mkdir -p %buildroot%_iconsdir/hicolor/128x128/apps

install -p -m 0644 data/images/logo.png \
	%buildroot%_iconsdir/hicolor/128x128/apps/%name.png

# by default man isn't installed (bug ... or notabug ...?)
mkdir -p %buildroot%_man1dir
install -pD -m 0644 data/man/%name.1 %buildroot%_man1dir/%name.1

# by default locales isn't installed ... I don't why ...
mkdir -p %buildroot%_datadir/locale/ru/LC_MESSAGES
install -p -m 644 po/ru_RU.UTF-8.mo \
        %buildroot%_datadir/locale/ru/LC_MESSAGES/%name.mo

%files
%doc CHANGELOG COPYING CREDITS README
%_bindir/%name
%dir %_libdir/%name
%attr(0755,root,root) %_libdir/%name/*
%_datadir/%name
%_datadir/locale/*
%_man1dir/%name.1.*
%_desktopdir/*.desktop
%_iconsdir/hicolor/*/apps/%name.png

%changelog
* Tue Nov 22 2011 Anatoly Chernov <aichernov@umail.ru> - alt0.3
- Added "ru_RU.UTF-8" as %name.mo. For testing only ...
- This version maybe pre6.2. Trunk Sep 28 2010.

* Sun Nov 20 2011 Anatoly Chernov <aichernov@umail.ru> - alt0.1
- Initial build for testing only ... Without any changes...hm!
