Sophie

Sophie

distrib > Mageia > 4 > i586 > media > core-release-src > by-pkgid > 866003ee668c1ea08f06414359da39bc > files > 8

hotkeys-0.5.7.1-25.mga4.src.rpm

Summary:	A program to use the special keys on internet/multimedia keyboards
Name:		hotkeys
Version:	0.5.7.1
Release:	%mkrel 25
License:	GPL
Group:		System/Kernel and hardware
URL:		http://alioth.debian.org/projects/%{name}/
Source0:	%{url}%{name}_%{version}.tar.bz2
Source1:	vaio.def.bz2
Source2:	FCSAmilo.def.bz2
Source3:	samsungx30.def.bz2
Source4:	precision.def.bz2
Source5:	dellinspiron.def.bz2
Source6:	samsungx10.def.bz2
Source10:	%{name}.sysconfig
Source11:	%{name}.xinit
Patch1:		hotkeys-0.5.7.1_mutefix.patch
Patch2:		hotkeys-0.5.7.1-db4.patch
Patch3:		hotkeys-0.5.7.1-gcc43.diff
Patch4:		hotkeys-0.5.7.1-includedir.patch
Patch5:		hotkeys-0.5.7.1-automake-1.13.patch
BuildRequires:	db-devel >= 4.2.0
BuildRequires:	libxml2-devel >= 2.2.8
BuildRequires:	libxosd-devel
BuildRequires:	gtk2-devel
BuildRequires:	gettext-devel
BuildRequires:	libxkbfile-devel
BuildRequires:	libxmu-devel

%description
The HotKeys daemon listens for the "special" hotkeys that you won't
normally use on your Internet/Multimedia keyboards. The buttons perform
their intended behaviors, such as volume up and down, mute the speaker,
or launch applications. It has On-screen display (OSD) to show the
volume, program that's being started, etc. It features an XML-based
keycode configuration file format, which makes it possible to define the
hotkeys to launch any programs you want.

%prep
%setup -q
%patch1 -p0
%patch2 -p1
%patch3 -p0
%patch4 -p0
%patch5 -p1

%build
autoreconf -fi
%configure2_5x --with-xosd
%make
# CC="gcc -I%{_includedir}/libxml2 -I%{_includedir}/libxml2/libxml"
cat > README.mga <<EOF
Adding a new keyboard
----------------------
If you have a keyboard not supported by this package, you can create 
your own file, by using xev, and writing the xml config files based 
on the examples provided.

Then, you can send them to the author, Anthony Wong <ypwong@ypwong.org>, 
in order to have them included in the tarball. I will also take 
contribution, send them to <misc@mageia.org>, or fill a bugreport
on bugs.mageia.org ( i prefer bug report as i may forget mail ).

Keyboard for owner of Samsung X10
----------------------------------
For people owning a Samsung X10, the provided keymap requires 2 commands
to activate all keys. Place a script in /etc/X11/xinit.d/ that contains :

#!/bin/bash
setkeycodes 0x74 122
setkeycodes 0x75 123

and use the samsungX10.def file.
See http://www.samsungpc.com/products/x10_x10plus/x10.htm if your are not sure this is
yours.
EOF

echo "WebBrowser=www-browser">> src/%{name}.conf
echo "Shell=xvt">> src/%{name}.conf

%install
%makeinstall_std

install -d %{buildroot}%{_sysconfdir}/sysconfig
install -m 644 src/%{name}.conf %{buildroot}/%{_sysconfdir}
install -m 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/sysconfig/%{name}

install -d %{buildroot}%{_sysconfdir}/X11/xinit.d/
install -m 755 %{SOURCE11} %{buildroot}%{_sysconfdir}/X11/xinit.d/%{name}

bzcat %{SOURCE1} > %{buildroot}/%{_datadir}/%{name}/vaio.def
bzcat %{SOURCE2} > %{buildroot}/%{_datadir}/%{name}/FCSAmilo.def
bzcat %{SOURCE3} > %{buildroot}/%{_datadir}/%{name}/samsungx30.def
bzcat %{SOURCE4} > %{buildroot}/%{_datadir}/%{name}/precision.def
bzcat %{SOURCE5} > %{buildroot}/%{_datadir}/%{name}/dellinspiron.def
bzcat %{SOURCE6} > %{buildroot}/%{_datadir}/%{name}/samsungX10.def

chmod 644 AUTHORS BUGS COPYING INSTALL TODO def/sample.xml

%files
%doc AUTHORS BUGS COPYING INSTALL TODO def/sample.xml README.mga
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_mandir}/man1/%{name}.1*
%config(noreplace) %{_sysconfdir}/%{name}.conf
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%{_sysconfdir}/X11/xinit.d/%{name}


%changelog
* Fri Oct 18 2013 umeabot <umeabot> 0.5.7.1-25.mga4
+ Revision: 505505
- Mageia 4 Mass Rebuild

* Sat Jan 12 2013 umeabot <umeabot> 0.5.7.1-24.mga3
+ Revision: 353278
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Wed Jan 09 2013 luigiwalser <luigiwalser> 0.5.7.1-23.mga3
+ Revision: 343324
- fix for automake 1.13

* Tue Jul 31 2012 fwang <fwang> 0.5.7.1-22.mga3
+ Revision: 276325
- rebuild for db-5.3

* Fri Jul 27 2012 fwang <fwang> 0.5.7.1-21.mga3
+ Revision: 274769
- rebuild

  + guillomovitch <guillomovitch>
    - spec cleanup
    - rename distribution-specific documentation file to README.mga

* Thu Jul 07 2011 fwang <fwang> 0.5.7.1-20.mga2
+ Revision: 119660
- rebuild for db 4.8

* Wed May 04 2011 ennael <ennael> 0.5.7.1-19.mga1
+ Revision: 94711
- clean spec file
- imported package hotkeys


* Tue Apr 12 2011 Funda Wang <fwang@mandriva.org> 0.5.7.1-19mdv2011.0
+ Revision: 652846
- build with db 5.1

* Sun Dec 05 2010 Oden Eriksson <oeriksson@mandriva.com> 0.5.7.1-18mdv2011.0
+ Revision: 611100
- rebuild

* Fri Jan 29 2010 Funda Wang <fwang@mandriva.org> 0.5.7.1-17mdv2010.1
+ Revision: 497890
- fix build

  + Buchan Milne <bgmilne@mandriva.org>
    - Rebuild for db-4.8

* Fri Sep 11 2009 Thierry Vignaud <tv@mandriva.org> 0.5.7.1-16mdv2010.0
+ Revision: 437893
- rebuild

* Fri Mar 06 2009 Antoine Ginies <aginies@mandriva.com> 0.5.7.1-15mdv2009.1
+ Revision: 350289
- 2009.1 rebuild

* Thu Jul 31 2008 Oden Eriksson <oeriksson@mandriva.com> 0.5.7.1-14mdv2009.0
+ Revision: 257562
- fix build

  + Thierry Vignaud <tv@mandriva.org>
    - rebuild

* Fri Dec 21 2007 Olivier Blin <oblin@mandriva.com> 0.5.7.1-11mdv2008.1
+ Revision: 136485
- restore BuildRoot

  + Thierry Vignaud <tv@mandriva.org>
    - kill re-definition of %%buildroot on Pixel's request

  + Michael Scherer <misc@mandriva.org>
    - fix email and url, noted by titi


* Sun Dec 31 2006 Crispin Boylan <crisb@mandriva.org> 0.5.7.1-11mdv2007.0
+ Revision: 102912
- Add missing X11 requires
- Add buildRequires for patch2
- Patch2: db4 support
- Import hotkeys

* Fri Jul 14 2006 Olivier Blin <blino@mandriva.com> 0.5.7.1-10mdv2007.0
- allow to automatically load hotkeys at X11 startup
  (can be configured in /etc/sysconfig/hotkeys)
- mkrel
- new URL

* Thu Jun 30 2005 Michael Scherer <misc@mandriva.org> 0.5.7.1-9mdk
- applied patch from Michael Collard, ( crash when muting if
  something else is on the screen via libxosd )

* Sat Mar 12 2005 Michael Scherer <misc@mandrake.org> 0.5.7.1-8mdk 
- added samsungX10, update the instructions ( thanks to yann malet )
- use generic default

* Thu Jan 13 2005 Michael Scherer <misc@mandrake.org> 0.5.7.1-7mdk
- corrected Dell keyboard, ( Yvon TANGUY ), and extract the good sources.

* Tue Jan 04 2005 Michael Scherer <misc@mandrake.org> 0.5.7.1-6mdk
- added Dell Inspiron 8600, thanks to Yvon TANGUY

* Fri Oct 29 2004 Guillaume Rousse <guillomovitch@mandrake.org> 0.5.7.1-5mdk 
- precision and samsungx30 definition files

* Tue Oct 05 2004 Michael Scherer <misc@mandrake.org> 0.5.7.1-4mdk 
- added Fujistu-Siemens Amilo Pro, thanks to Libor Tomsik

* Sat Jul 24 2004 Michael Scherer <misc@mandrake.org> 0.5.7.1-3mdk 
- add vaio.def, for my laptop ( orignal by Alexander Jorda ) 
- add README.mdk
- fix BuildRequires

* Thu Apr 08 2004 Michael Scherer <misc@mandrake.org> 0.5.7.1-2mdk 
- Birthday rebuild