Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > dddf22b45a9ad4287cb0530acc045bb8 > files > 3

emifreq-applet-0.18-2mdk.src.rpm

%define name emifreq-applet
%define version 0.18

Summary : EmiFreq applet is just a little applet to show and control the CPU
Name: %name
Version: %{version}
Release: %mkrel 2
Source:  %{name}-%{version}.tar.bz2
Source1: emifreq-applet-initscript.bz2
License: GPL
Group: Monitoring
Url: http://zzrough.free.fr

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot

BuildRequires: perl-XML-Parser
BuildRequires: pkgconfig
BuildRequires: intltool
BuildRequires: gnome-panel-devel
BuildRequires: libgnomeui2-devel
BuildRequires: libGConf2-devel

#Requires: libpanel-applet
#Requires: libGConf2
Requires: gnome-panel

PreReq: rpm-helper, /sbin/chkconfig

%description
EmiFreq applet is a little GNOME applet that shows/control
the CPU frequency and temperature thanks to the cpufreq sysfs 
kernel interface. The emifreqd daemon is also included to enable 
the applet to change the cpu speed through the CPUFreq extension 
of the sysfs.

%prep
%setup -q

%build
%configure2_5x
%make

%install
rm -rf %buildroot
GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
%makeinstall_std

%find_lang %name --with-gnome

mkdir -p %{buildroot}%{_initrddir}
bzcat %{SOURCE1} > %{buildroot}%{_initrddir}/emifreqd
chmod 0755 %{buildroot}%{_initrddir}/emifreqd

perl -pi -e "s|/etc/rc.d/init.d|%{_initrddir}|" $RPM_BUILD_ROOT%{_initrddir}/*

%clean
rm -rf %buildroot

%post
%_post_service emifreqd

# handle init sequence change
if [ -f /etc/rc5.d/S85emifreqd ]; then
        /sbin/chkconfig --add emifreqd
fi

%preun
%_preun_service emifreqd

%files -f %name.lang
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README TODO
%config(noreplace) %{_sysconfdir}/gconf/schemas/%{name}.schemas
%{_sbindir}/emifreqd
%{_libdir}/emifreq-applet
%{_libdir}/bonobo/servers/*
%{_datadir}/pixmaps/*
%dir %{_datadir}/emifreq-applet/
%{_datadir}/emifreq-applet/*
%{_datadir}/gnome-2.0/ui/GNOME_EmiFreqApplet.xml
%config(noreplace) %{_initrddir}/emifreqd

%changelog
* Sat Apr 07 2006 Jerome Soyer <saispo@mandriva.org> 0.18-2mdk
- Rebuild
- rpmbuildupdate aware

* Sat Feb 19 2005 Jerome Soyer <saispo@mandrake.org> 0.18-1mdk
- New version

* Wed Oct 13 2004 Jerome Soyer <saispo@mandrake.org> 0.17-2mdk
- Include InitScript

* Tue Sep 21 2004 Jerome Soyer <saispo@mandrake.org> 0.17-1mdk
- New version

* Wed Sep 15 2004 Jerome Soyer <saispo@mandrake.org> 0.16-1mdk
- New version
- Added Requires

* Tue Sep 14 2004 Jerome Soyer <saispo@mandrake.org> 0.15-2mdk
- fix spec error

* Tue Sep 14 2004 Jerome Soyer <saispo@mandrake.org> 0.15-1mdk
- first build