Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 513bfa997f3fae81960c8b10c06b1921 > files > 4

fbdesk-1.1.5-2mdk.src.rpm

%define name      fbdesk
%define version   1.1.5
%define release   2mdk
%define section   Fluxbox/action
%define title     Fbdesk
%define longtitle Fluxbox-application to create and manage icons on your desktop

Summary:          %longtitle
Name:             %name
Version:          %version
Release:          %release
License:          MIT
Group:            Graphical desktop/Other
URL:              http://fluxbox.sourceforge.net/fbdesk
# http://fluxbox.sourceforge.net/download/fbdesk-1.1.4.tar.gz
Source0:          http://fluxbox.sourceforge.net/fbdesk/%{name}-%{version}.tar.bz2
Source1:          %name-icons.tar.bz2
Patch0:           fbdesk-1.1.5-gcc34.patch.bz2 
BuildRoot:        %_tmppath/%{name}-%{version}-%{release}-buildroot
Buildrequires:    XFree86-devel libpng-devel

%description

FbDesk is a fluxbox-application to create and manage icons on your desktop.

Implemented Features :

 * XPM and PNG image loading
 * Antialias text
 * UTF-8 and multibyte support
 * Vertical text
 * Grid Snapping
 * GUI for editing command/label and add/remove icons
 * Fluxbox menu style


%prep

%setup -q
%setup -q -T -D -a1
%patch0 -p0

%build
%configure
%make

%install
%__rm -rf %buildroot
%makeinstall

# Menu
mkdir -p %buildroot%{_menudir}
cat > %buildroot%_menudir/%name << EOF
?package(%name): \
command="%{_bindir}/%{name}" \
needs="fluxexec" \
icon="%{name}.png" \
section="%{section}" \
title="%{title}" \
longtitle="%{longtitle}"
EOF

# icon
%__install -D -m 644 %{name}48.png %buildroot%_liconsdir/%name.png
%__install -D -m 644 %{name}32.png %buildroot%_iconsdir/%name.png
%__install -D -m 644 %{name}16.png %buildroot%_miconsdir/%name.png

%__install -d            %buildroot%_datadir/%name
%__install -m 0644 *.png %buildroot%_datadir/%name


%post
%update_menus

%postun
%clean_menus


%clean
rm -rf %buildroot


%files
%defattr(-,root,root)
%doc README
%_bindir/*
%_menudir/*

%_miconsdir/*
%_iconsdir/*
%_liconsdir/*
%_datadir/%name/*.png

%dir %_datadir/%name


%changelog
* Wed Jul 14 2004 Michael Scherer <misc@mandrake.org> 1.1.5-2mdk 
- rebuild for new gcc, patch #0

* Sun Oct 19 2003 Han Boetes <han@linux-mandrake.com> 1.1.5-1mdk
- Various Fixes among which the dreaded menu.
  Just that you need to have fluxbox installed :S

* Fri May 23 2003 Han Boetes <han@linux-mandrake.com> 1.1.4-2mdk
- Added dir entry to make distriblint happy

* Mon May 19 2003 Han Boetes <han@linux-mandrake.com> 1.1.4-1mdk
- New release.

* Thu Jan 30 2003 Han Boetes <han@linux-mandrake.com> 1.1.3-1mdk
- Bump. bugfix-release.

* Sun Jan 19 2003 Han Boetes <han@linux-mandrake.com> 1.1.2-1mdk
- Initial release.