Sophie

Sophie

distrib > Mandriva > 10.0-com > i586 > by-pkgid > 2f06e40f71e49703415fafa2e329fde3 > files > 5

powerprefs-0.3.1-1mdk.src.rpm

%define name powerprefs 
%define version 0.3.1
%define release 1mdk

Name: %{name}
Summary: Configuration Client for pbbuttonsd. 
Version: %{version}
Release: %{release}
Source: http://www.cymes.de/members/joker/projects/pbbuttons/tar/%{name}-%{version}.tar.bz2
Source1:        %name-16x16.png.bz2
Source2:        %name-32x32.png.bz2
Source3:        %name-48x48.png.bz2
URL: http://www.cymes.de/members/joker/projects/pbbuttons/pbbuttons.html
Group: System/Configuration/Hardware
BuildRoot: %{_tmppath}/%{name}-buildroot
License: GPL
Requires: pbbuttonsd >= 0.4.10
BuildRequires: pbbuttonsd-devel
ExclusiveArch: ppc

%description
A configuration client for pbbuttonsd to change some
options during run time.

%prep
rm -rf $RPM_BUILD_ROOT
%setup -q -n %{name}-%{version}

%build
%configure
%make

%install
%makeinstall
(cd %{buildroot}
mkdir -p .%{_libdir}/menu
cat > .%{_libdir}/menu/powerprefs <<EOF
?package(powerprefs):\
command="%{_bindir}/powerprefs"\
title="Powerprefs"\
longtitle="Config Client for pbbuttonsd"\
needs="x11"\
section="Configuration/Hardware"\
icon="%{name}.png"
EOF
)

#icon
# icon
install -d $RPM_BUILD_ROOT/%{_miconsdir}
install -d $RPM_BUILD_ROOT/%{_iconsdir}
install -d $RPM_BUILD_ROOT/%{_liconsdir}
bzcat %{SOURCE1} > $RPM_BUILD_ROOT/%{_miconsdir}/%{name}.png
bzcat %{SOURCE2} > $RPM_BUILD_ROOT/%{_iconsdir}/%{name}.png
bzcat %{SOURCE3} > $RPM_BUILD_ROOT/%{_liconsdir}/%{name}.png

%find_lang %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%post
%update_menus

%postun
%clean_menus

%files -f %{name}.lang
%defattr(-,root,root,0755)
%doc AUTHORS BUGS COPYING README TODO
%{_bindir}/powerprefs
%{_mandir}/man*/*
%{_libdir}/menu/*
%{_datadir}/pixmaps/*
%_miconsdir/*
%_iconsdir/*
%_liconsdir/*

%changelog
* Mon Mar 10 2003 Ben Reser <ben@reser.org> 0.3.1-1mdk
- Updated for 0.3.1 by Stew Benedict
- Use the %%find_lang macro
- Add icon
- rpmlint permission fixes

* Sat Jun 08 2002 Ben Reser <ben@reser.org> 0.2.1-2brs
- fixed 0.2.1 bugs, namely the new dim option was always
  showing as fixed because they were toggling the wrong
  button. *sigh*

* Sat Jun 08 2002 Ben Reser <ben@reser.org> 0.2.1-1brs
- updated to 0.2.1 to make it work with pbbuttonsd-0.4.10

* Sat Jun 08 2002 Ben Reser <ben@reser.org> 0.2-2brs
- Rebuild against pbbuttonsd-0.4.9-2brs

* Wed May 02 2002 Ben Reser <ben@reser.org> 0.2-1mdk
- First mandrake build.