Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > contrib-release-src > by-pkgid > 2cb0b6dc9377018e1927edbe32b42e37 > files > 6

gai-leds-0.6-5mdv2008.1.src.rpm

%define name gai-leds
%define version 0.6
%define release %mkrel 5

Name: %name
Summary: GAI applet displaying the status of the keyboard leds
Version: %{version}
Release: %{release}
License: GPL
Url: http://gai.sf.net
Group: Monitoring
Source: http://prdownloads.sourceforge.net/gai/%{name}-%{version}.tar.bz2
Source10:   %{name}-16.png
Source11:   %{name}-32.png
Source12:   %{name}-48.png
Patch: gai-album-0.6-rox-install.patch
BuildRoot: %{_tmppath}/build-root-%{name}
BuildRequires: libgai-devel >= 0.5.3

%description
Displays the status of the keyboard leds. Useful for people with
wireless keyboards.

This applet can be used in the GNOME and ROX Panels and as a
WindowMaker dockapp. Other panels and Window Managers will be
supported soon.

%prep
%setup -q 
%patch -p1

%build
%configure2_5x
%make 

%install
rm -rf ${RPM_BUILD_ROOT}
%makeinstall_std
%if %_lib != lib
mv %buildroot%_prefix/lib/* %buildroot%_libdir/
%endif
install -m644 %SOURCE10 -D %{buildroot}/%_miconsdir/%name.png
install -m644 %SOURCE11 -D %{buildroot}/%_iconsdir/%name.png
install -m644 %SOURCE12 -D %{buildroot}/%_liconsdir/%name.png
mkdir -p $RPM_BUILD_ROOT%{_menudir}
cat << EOF > %{buildroot}/%{_menudir}/%{name} 
?package(%name): command="%{_bindir}/%name" icon="%name.png" \
                needs="X11" section="Applications/Monitoring" \
 title="Gai-leds" longtitle="Displays the status of the keyboard leds" \
 xdg="true"
EOF

mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
cat > $RPM_BUILD_ROOT%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=Gai-leds
Comment=Displays the status of the keyboard leds
Exec=%{_bindir}/%{name} 
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=X-MandrivaLinux-System-Monitoring;
EOF

%clean
rm -rf $RPM_BUILD_ROOT

%post
%update_menus

%postun
%clean_menus

%files
%defattr(-,root,root,0755)
%doc AUTHORS COPYING README README.gai
%{_bindir}/*
%{_libdir}/bonobo/servers/GNOME_%{name}Applet.server
%{_menudir}/%name
%{_datadir}/applications/mandriva-%{name}.desktop
%{_datadir}/pixmaps/*
%_libdir/apps/*
%{_iconsdir}/%name.png
%{_liconsdir}/%name.png
%{_miconsdir}/%name.png




%changelog
* Wed Jan 02 2008 Olivier Blin <oblin@mandriva.com> 0.6-5mdv2008.1
+ Revision: 140731
- restore BuildRoot

  + Thierry Vignaud <tvignaud@mandriva.com>
    - kill re-definition of %%buildroot on Pixel's request
    - fix summary-ended-with-dot
    - kill desktop-file-validate's error: string list key "Categories" in group "Desktop Entry" does not have a semicolon (";") as trailing character


* Sun Aug 06 2006 Olivier Thauvin <nanardon@mandriva.org>
+ 08/06/06 16:19:14 (53513)
- xdg menu
- %%mkrel

* Sun Aug 06 2006 Olivier Thauvin <nanardon@mandriva.org>
+ 08/06/06 16:15:37 (53512)
Import gai-leds

* Mon May 09 2005 Götz Waschk <waschk@mandriva.org> 0.6-4mdk
- fix build on x86_64

* Wed Apr 21 2004 Götz Waschk <waschk@linux-mandrake.com> 0.6-3mdk
- fix description
- fix ROX installation

* Tue Apr 20 2004 Götz Waschk <waschk@linux-mandrake.com> 0.6-2mdk
- fix source url
- fix description

* Sat Apr 03 2004 Götz Waschk <waschk@linux-mandrake.com> 0.6-1mdk
- fix installation
- requires new gai
- fix configure call
- new version

* Sat Nov 01 2003 Götz Waschk <waschk@linux-mandrake.com> 0.4-2mdk
- rebuild for new gai

* Mon Sep 15 2003 Olivier Thauvin <thauvin@aerov.jussieu.fr> 0.4-1mdk
- From Bellegarde Cedric <gnumdk@wanadoo.fr>
    - Make a spec file