%define name hot-babe %define Name Hot-Babe %define version 0.2.2 %define release %mkrel 4 %define summary A GTK-based monitoring app Name: %{name} Version: %{version} Release: %{release} Summary: %{summary} License: Artistic Group: Monitoring Source0: http://dindinx.net/hotbabe/downloads/%{name}-%{version}.tar.bz2 Source1: %{name}-16.png.bz2 Source2: %{name}-32.png.bz2 Source3: %{name}-48.png.bz2 Url: http://dindinx.net/hotbabe BuildRequires: gtk+2-devel BuildRoot: %{_tmppath}/%{name}-%{version} %description Hot-babe is a small graphical utility which display the system activity in a very special way. When the CPU is idle, it displays a dressed girl, and when the activity goes up, as the temperature increases, the girl begins to undress, to finish totally naked when the system activity reaches 100%. Of course, if you can be shocked by nudity, don't use it! %prep %setup -q bzcat %{SOURCE1} > %{name}-16.png bzcat %{SOURCE2} > %{name}-32.png bzcat %{SOURCE3} > %{name}-48.png perl -pi -e 's/-O2 -Wall -g/%optflags/' Makefile %build %make PREFIX=%_prefix %install rm -rf %{buildroot} install -d -m 755 %{buildroot}%{_bindir} install -m 755 %{name} %{buildroot}%{_bindir} install -d -m 755 %{buildroot}%{_mandir}/man1 install -m 644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1 install -d -m 755 %{buildroot}%{_datadir}/%{name}/hb01 install -m 644 hb01/* %{buildroot}%{_datadir}/%{name}/hb01/ # icons 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 # menu entry mkdir -p %{buildroot}%{_datadir}/applications cat > %{buildroot}%{_datadir}/applications/mageia-%{name}.desktop <<EOF [Desktop Entry] Name=%Name GenericName=%Name Comment=Cpu meters Exec=%{_bindir}/%{name} Icon=%{name} Terminal=false Type=Application StartupNotify=true Categories=System;Monitor; EOF %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc ChangeLog CONTRIBUTORS LICENSE NEWS TODO %{_bindir}/%{name} %{_mandir}/man1/%{name}.* %{_datadir}/%{name} %{_datadir}/applications/* %{_iconsdir}/%{name}.png %{_miconsdir}/%{name}.png %{_liconsdir}/%{name}.png %changelog * Sat Mar 26 2011 nanardon <nanardon> 0.2.2-4.mga1 + Revision: 77867 - xdg menu - cleanup - imported package hot-babe * Wed Sep 13 2006 Guillaume Rousse <guillomovitch@zarb.org> 0.2.2-4mdv2007.0 - Rebuild * Tue Jun 14 2005 Guillaume Rousse <guillomovitch@zarb.org> 0.2.2-3plf - rebuild - spec cleanup - rpmbuildupdate aware * Sun Jan 30 2005 Guillaume Rousse <guillomovitch@zarb.org> 0.2.2-2plf - Rebuild * Tue Dec 07 2004 Guillaume Rousse <guillomovitch@zarb.org> 0.2.2-1plf - new version * Tue Nov 30 2004 Guillaume Rousse <guillomovitch@zarb.org> 0.2.0-1plf - new version - drop path, no use anymore * Tue Sep 28 2004 Olivier Thauvin <thauvin@aerov.jussieu.fr> 0.1.4-2plf - add missing data files, fix path * Mon Sep 27 2004 Guillaume Rousse <guillomovitch@zarb.org> 0.1.4-1plf - new version - avoid-division-by-zero-patch (Mark Draheim <rickscafe.casablanca@gmx.net>) - fixed buildrequires - PLF reason * Tue Sep 24 2002 Guillaume Rousse <guillomovitch@plf.zarb.org> 0.1.2-2plf - fixed man page (Danny Tholen <danny@mailmij.org>) * Sun Sep 22 2002 Guillaume Rousse <guillomovitch@plf.zarb.org> 0.1.2-1plf - 0.1.2 - new icons (David Walser <luigiwalser@yahoo.com>) * Thu Sep 19 2002 Guillaume Rousse <guillomovitch@plf.zarb.org> 0.1.0-2plf - menu entry (Texstar <texstar@houston.rr.com>) - icons * Thu Sep 19 2002 Guillaume Rousse <guillomovitch@plf.zarb.org> 0.1.0-1plf - first PLF release