xkeycaps-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. Name: xkeycaps
  2. Summary: Graphical front end to xmodmap
  3. Summary(ja): xmodmap のグラフィカルフロントエンド
  4. Version: 2.46
  5. Release: 5%{?_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 Jan 25 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.46-5
  55. - rebuild with VineSeed environment
  56. * Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> 2.46-4
  57. - rebuilt with rpm-4.8.1-3
  58. * Sun Nov 09 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.46-3
  59. - rebuild with libXaw.so.7 (libXaw-1.0.5)
  60. * Wed Jul 23 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.46-2
  61. - remove vendor prefix from desktop file.
  62. * Mon May 19 2008 Daisuke SUZUKI <daisuke@linux.or.jp> Version: 2.46-1
  63. - initial build for Vine Linux
  64. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.46-7.3
  65. - Autorebuild for GCC 4.3
  66. * Mon Aug 27 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2.46-6.2
  67. - rebuild for BuildID
  68. * Mon Aug 6 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2.46-6.1
  69. - license cleanup
  70. * Tue Apr 10 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2.46-6
  71. - fix bugzilla 227229
  72. * Mon Sep 11 2006 Tom "spot" Callaway <tcallawa@redhat.com> 2.46-5
  73. - license isn't BSD-ish, its BSD
  74. - bump for FC-6
  75. * Tue Feb 28 2006 Tom "spot" Callaway <tcallawa@redhat.com> 2.46-4
  76. - bump for FC-5
  77. * Mon Jan 16 2006 Tom "spot" Callaway <tcallawa@redhat.com> 2.46-3
  78. - fix FC-3/FC-4
  79. * Mon Jan 16 2006 Tom "spot" Callaway <tcallawa@redhat.com> 2.46-2
  80. - add missing BR
  81. - fix missing desktop file
  82. * Thu Dec 15 2005 Tom "spot" Callaway <tcallawa@redhat.com> 2.46-1
  83. - Initial package for Fedora Extras