system-setup-keyboard-vl.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. Name: system-setup-keyboard
  2. Version: 0.8.5
  3. Release: 1%{?_dist_release}
  4. Summary: xorg.conf keyboard layout daemon
  5. Group: Applications/System
  6. License: MIT
  7. URL: http://git.fedorahosted.org/git/system-setup-keyboard.git/
  8. Source0: https://fedorahosted.org/released/%{name}/%{name}-%{version}.tar.bz2
  9. Source10: system-setup-keyboard.init
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  11. BuildRequires: glib2-devel
  12. BuildRequires: system-config-keyboard >= 1.3.1
  13. Requires: xorg-x11-server-Xorg >= 1.8.0-2
  14. #Requires: upstart
  15. Conflicts: xorg-x11-server-Xorg < 1.6.0
  16. %description
  17. system-setup-keyboard is a daemon that monitors /etc/sysconfig/keyboard
  18. and writes out an xorg.conf.d snippet based on this file's contents.
  19. Whenever the file is updated, system-setup-keyboard writes out the
  20. matching XKB configuration for the selected layout. This configuration
  21. applies to all keyboards but may be overwritten by other xorg.conf.d
  22. snippets or entries in the xorg.conf configuration file.
  23. %prep
  24. %setup -q
  25. %build
  26. make CFLAGS="%{optflags}" %{?_smp_mflags}
  27. %install
  28. rm -rf $RPM_BUILD_ROOT
  29. make install DESTDIR=$RPM_BUILD_ROOT
  30. install -D -m775 %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/%{name}
  31. %clean
  32. rm -rf $RPM_BUILD_ROOT
  33. %post
  34. if [ "$1" == "1" ]; then
  35. /sbin/chkconfig --add %{name}
  36. fi
  37. %preun
  38. if [ $1 -eq 0 ]; then
  39. /sbin/service %{name} stop >/dev/null 2>&1
  40. /sbin/chkconfig --del %{name}
  41. fi
  42. %files
  43. %defattr(-,root,root,-)
  44. %doc COPYING
  45. %{_bindir}/%{name}
  46. %{_sysconfdir}/init/%{name}.conf
  47. %{_sysconfdir}/rc.d/init.d/%{name}
  48. %{_mandir}/man1/system-setup-keyboard.1*
  49. %changelog
  50. * Sat Apr 17 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.8.5-1
  51. - new upstream release
  52. - use /etc/X11/xorg.conf.d for snippet directory.
  53. - require xorg-x11-server-Xorg >= 1.8.0-2
  54. * Tue Mar 16 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.8.2-2
  55. - add initscripts
  56. * Fri Mar 12 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.8.2-1
  57. - initial build for Vine Linux
  58. * Sat Feb 27 2010 Adel Gadllah <adel.gadllah@gmail.com> 0.8.2-1
  59. - 0.8.2 release
  60. - Actually install the upstart config file
  61. * Thu Feb 18 2010 Peter Hutterer <peter.hutterer@redhat.com> 0.8.1-1
  62. - 0.8.1 release (makefile fixes)
  63. * Tue Feb 16 2010 Peter Hutterer <peter.hutterer@redhat.com> 0.8-1
  64. - 0.8 release (xorg.conf.d support)
  65. - drop HAL requires.
  66. * Tue Feb 09 2010 Peter Hutterer <peter.hutterer@redhat.com> 0.7-1
  67. - Rename to system-setup-keyboard, update the URL and Source0 accordingly.
  68. Obsoletes fedora-setup-keyboard.
  69. * Sat Dec 26 2009 Adel Gadllah <adel.gadllah@gmail.com> 0.6-1
  70. - 0.6 release
  71. - Fixes RH #545970
  72. * Fri Nov 20 2009 Adel Gadllah <adel.gadllah@gmail.com> 0.5-1
  73. - Patch merged upstream
  74. * Fri Nov 20 2009 Peter Hutterer <peter.hutterer@redhat.com> 0.4-4
  75. - rhpl was replaced by system-config-keyboard.
  76. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-3
  77. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  78. * Wed May 27 2009 Adel Gadllah <adel.gadllah@gmail.com> 0.4-2
  79. - Rebuild to pick up rhpl changes
  80. * Mon Apr 13 2009 Adel Gadllah <adel.gadllah@gmail.com> 0.4-1
  81. - 0.4 release
  82. - Dropped patch, merged upstream
  83. * Thu Apr 09 2009 Peter Hutterer <peter.hutterer@redhat.com> 0.3-4
  84. - fedora-setup-keyboard-0.3-merge-terminate.patch: merge xkb options for
  85. termination.
  86. * Thu Mar 05 2009 Peter Hutterer <peter.hutterer@redhat.com> 0.3-3
  87. - Conflict xorg-x11-server-Xorg < 1.6.0-7 (10-x11-keymap.fdi and
  88. fedora-setup-keyboard up to 1.6.0-5)
  89. * Mon Mar 02 2009 Adel Gadllah <adel.gadllah@gmail.com> 0.3-2
  90. - Fix license tag
  91. * Wed Feb 25 2009 Adel Gadllah <adel.gadllah@gmail.com> 0.3-1
  92. - 0.3 release
  93. - Require hal
  94. * Sat Feb 21 2009 Adel Gadllah <adel.gadllah@gmail.com> 0.2-1
  95. - Initial package