Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > media > contrib-release-src > by-pkgid > f59fa0e945c866c7c290e4fed31517f3 > files > 6

gai-leds-0.6-8mdv2010.0.src.rpm

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

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%{_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

%if %mdkversion < 200900
%post
%update_menus
%endif

%if %mdkversion < 200900
%postun
%clean_menus
%endif

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




%changelog
* Thu Sep 03 2009 Thierry Vignaud <tvignaud@mandriva.com> 0.6-8mdv2010.0
+ Revision: 428998
- rebuild

* Thu Jul 24 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.6-7mdv2009.0
+ Revision: 245601
- rebuild
- drop old menu

  + Pixel <pixel@mandriva.com>
    - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas

* 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