xkeycaps-vl.spec 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. Name: xkeycaps
  2. Summary: Graphical front end to xmodmap
  3. Summary(ja): xmodmap のグラフィカルフロントエンド
  4. Version: 2.46
  5. Release: 3%{?_dist_release}
  6. License: MIT
  7. Group: Applications/System
  8. Source0: http://www.jwz.org/xkeycaps/%{name}-%{version}.tar.Z
  9. Source1: xkeycaps.desktop
  10. Source2: xkeycaps.png
  11. URL: http://www.jwz.org/xkeycaps/
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  13. BuildRequires: xorg-x11-xbitmaps, libICE-devel, libXmu-devel, libSM-devel
  14. BuildRequires: libXaw-devel >= 1.0.5
  15. BuildRequires: imake, libXt-devel, xorg-x11-proto-devel
  16. BuildRequires: desktop-file-utils, libXext-devel
  17. Requires: xorg-x11-server-utils
  18. %description
  19. xkeycaps is a graphical front-end to xmodmap. It opens a window that
  20. looks like a keyboard; moving the mouse over a key shows what KeySyms
  21. and Modifier bits that key generates. Clicking on a key simulates
  22. KeyPress/KeyRelease events on the window of your choice. It is possible
  23. to change the KeySyms and Modifiers generated by a key through a
  24. mouse-based interface. This program can also write an input file for
  25. xmodmap to recreate your changes in future sessions.
  26. %prep
  27. %setup -q
  28. %build
  29. xmkmf
  30. sed -i -e 's/^\(\s*CFLAGS\s*=.*\)/\1 $(RPM_OPT_FLAGS)/' Makefile
  31. make
  32. %install
  33. rm -rf $RPM_BUILD_ROOT
  34. make DESTDIR=$RPM_BUILD_ROOT install
  35. mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
  36. install -m0644 xkeycaps.man $RPM_BUILD_ROOT%{_mandir}/man1
  37. mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
  38. mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
  39. install -m0644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/pixmaps
  40. desktop-file-install \
  41. --vendor "" \
  42. --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \
  43. %{SOURCE1}
  44. %clean
  45. rm -rf $RPM_BUILD_ROOT
  46. %files
  47. %defattr(-,root,root)
  48. %doc README sgi-microsoft.txt
  49. %{_bindir}/xkeycaps
  50. %{_datadir}/applications/xkeycaps.desktop
  51. %{_datadir}/pixmaps/xkeycaps.png
  52. %{_mandir}/man1/*
  53. %changelog
  54. * Sun Nov 09 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.46-3
  55. - rebuild with libXaw.so.7 (libXaw-1.0.5)
  56. * Wed Jul 23 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.46-2
  57. - remove vendor prefix from desktop file.
  58. * Mon May 19 2008 Daisuke SUZUKI <daisuke@linux.or.jp> Version: 2.46-1
  59. - initial build for Vine Linux
  60. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.46-7.3
  61. - Autorebuild for GCC 4.3
  62. * Mon Aug 27 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2.46-6.2
  63. - rebuild for BuildID
  64. * Mon Aug 6 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2.46-6.1
  65. - license cleanup
  66. * Tue Apr 10 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2.46-6
  67. - fix bugzilla 227229
  68. * Mon Sep 11 2006 Tom "spot" Callaway <tcallawa@redhat.com> 2.46-5
  69. - license isn't BSD-ish, its BSD
  70. - bump for FC-6
  71. * Tue Feb 28 2006 Tom "spot" Callaway <tcallawa@redhat.com> 2.46-4
  72. - bump for FC-5
  73. * Mon Jan 16 2006 Tom "spot" Callaway <tcallawa@redhat.com> 2.46-3
  74. - fix FC-3/FC-4
  75. * Mon Jan 16 2006 Tom "spot" Callaway <tcallawa@redhat.com> 2.46-2
  76. - add missing BR
  77. - fix missing desktop file
  78. * Thu Dec 15 2005 Tom "spot" Callaway <tcallawa@redhat.com> 2.46-1
  79. - Initial package for Fedora Extras