%define name bbrun %define version 1.6 %define release %mkrel 4 Summary: Bbrun is a run window for Blackbox Name: %{name} Version: %{version} Release: %{release} License: GPL Group: Toys Url: http://www.darkops.net/bbrun Source: http://www.darkops.net/%{name}/%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version} BuildRequires: xpm-devel gtk+2-devel %description bbrun is a run window for Blackbox with dropdown history list. %prep %setup -q %build cd bbrun %make %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_bindir} install -s bbrun/bbrun $RPM_BUILD_ROOT%{_bindir} install -m 755 -d $RPM_BUILD_ROOT%_menudir cat > $RPM_BUILD_ROOT%_menudir/%name <<EOF ?package(%name):\ needs="X11"\ section="Office/Accessories"\ title="BB Run"\ longtitle="BlackBox Run Window"\ icon="office_accessories_section.png"\ command="bbrun" \ xdg="true" EOF mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications cat > $RPM_BUILD_ROOT%{_datadir}/applications/mandriva-%{name}.desktop << EOF [Desktop Entry] Name=BB Run Comment=BlackBox Run Window Exec=%{_bindir}/%{name} Icon=office_accessories_section Terminal=false Type=Application Categories=X-MandrivaLinux-Office-Accessories;Office;Utility EOF %post %update_menus %postun %clean_menus %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,0755) %_bindir/* %_menudir/* %{_datadir}/applications/mandriva-%{name}.desktop %doc README Changelog COPYING CREDITS %changelog * Mon Sep 04 2006 Nicolas Lécureuil <neoclust@mandriva.org> 1.6-4mdv2007.0 - XDG * Thu Oct 20 2005 Lenny Cartier <lenny@mandriva.com> 1.6-3mdk - rebuild * Tue Sep 28 2004 Franck Villaume <fvill@freesurf.fr> 1.6-2mdk - BuildRequires * Tue Jun 15 2004 Lenny Cartier <lenny@mandrakesoft.com> 1.6-1mdk - from Mikkel L. Ellertson <mikkel@infinity-ltd.com> : - Created .spec file.