kkbswitch
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

kkbswitch.spec 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. # This spec file was generated using Kpp
  2. # If you find any problems with this spec file please report
  3. # the error to ian geiser <geiseri@msoe.edu>
  4. # build with --without ru_ua_layout to disable installation
  5. # of ru_ua XKB layout file
  6. Summary: Keyboard layout indicator for KDE
  7. Name: kkbswitch
  8. Version: 1.4.3
  9. Release: 1
  10. License: GPL
  11. Vendor: Leonid Zeitlin <lz@europe.com>
  12. Url: http://kkbswitch.sourceforge.net
  13. Packager: Leonid Zeitlin <lz@europe.com>
  14. Group: User Interface/Desktops
  15. Source: kkbswitch-%{version}.tar.gz
  16. BuildRequires: tdelibs-devel
  17. BuildRoot: %{_tmppath}/kkbswitch-root
  18. %description
  19. KKBSwitch is a keyboard layout indicator for KDE. It is useful when
  20. you have configured the XKeyboard extension of your X Server to have more
  21. than one keyboard group (layout), for example US/ASCII and Russian.
  22. KKBSwitch displays an icon in the system tray that indicates which layout
  23. is currently active. Note that KKBSwitch does not help you configure
  24. XKeyboard, it merely serves as the indicator of the current layout. You
  25. still have to configure XKeyboard by editing the XF86Config file.
  26. %prep
  27. %setup
  28. %build
  29. export TDEDIR=%{_prefix}
  30. # Workaround for legacy auto* tools
  31. #[ -x /usr/bin/autoconf-2.5? ] && ln -s /usr/bin/autoconf-2.5? autoconf
  32. #[ -x /usr/bin/autoheader-2.5? ] && ln -s /usr/bin/autoheader-2.5?
  33. #autoheader
  34. #[ -x /usr/bin/aclocal-1.5 ] && ln -s /usr/bin/aclocal-1.5 aclocal
  35. #[ -x /usr/bin/automake-1.5 ] && ln -s /usr/bin/automake-1.5 automake
  36. #export PATH=`pwd`:$PATH
  37. # End workaround
  38. CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure \
  39. --prefix=%{_prefix} --mandir=%{_mandir} $LOCALFLAGS \
  40. %{?_with_ru_ua_layout:--enable-ru-ua-layout}
  41. # Setup for parallel builds
  42. numprocs=`egrep -c ^cpu[0-9]+ /proc/stat || :`
  43. if [ "$numprocs" = "0" ]; then
  44. numprocs=1
  45. fi
  46. make -j$numprocs
  47. %install
  48. make install-strip DESTDIR=$RPM_BUILD_ROOT
  49. %clean
  50. rm -rf $RPM_BUILD_ROOT
  51. %files
  52. %doc %{_docdir}/HTML/*/kkbswitch/*
  53. %{_bindir}/kkbswitch
  54. %{_datadir}/applnk/Utilities/kkbswitch.desktop
  55. %{_datadir}/apps/kkbswitch/*
  56. %{_datadir}/apps/tdeconf_update/kkbswitch.upd
  57. %{_datadir}/apps/tdeconf_update/kkbswitch_update_14_icons
  58. %{_datadir}/apps/tdeconf_update/kkbswitch_update_14_options
  59. %{_datadir}/locale/*/LC_MESSAGES/kkbswitch.mo
  60. %{_datadir}/autostart/kkbswitch.desktop
  61. %{_mandir}/man1/kkbswitch.1*
  62. %if 0%{?_with_ru_ua_layout:1}
  63. /usr/X11R6/lib/X11/xkb/symbols/ru_ua
  64. %endif
  65. %changelog
  66. * Sat Jan 15 2005 Leonid Zeitlin <lz@europe.com> 1.4.2
  67. - Version 1.4.3
  68. * Sat Nov 13 2004 Leonid Zeitlin <lz@europe.com> 1.4.2-2
  69. - Added explicit BuildRequires: tdelibs-devel
  70. - Don't use %configure, it causes binary to be named something like
  71. i686-redhat-linux-gnu-kkbswitch on older (RH 7.3) systems
  72. * Sat Nov 6 2004 Leonid Zeitlin <lz@europe.com>
  73. - Version 1.4.2
  74. * Tue Jun 15 2004 Leonid Zeitlin <lz@europe.com>
  75. - Version 1.4.1
  76. * Sat May 8 2004 Leonid Zeitlin <lz@europe.com>
  77. - Version 1.4
  78. - provide files list explicitly
  79. - --without ru_ua_layout support
  80. * Thu Jan 8 2004 Leonid Zeitlin <lz@europe.com>
  81. - Version 1.3.2
  82. * Sun Nov 2 2003 Leonid Zeitlin <lz@europe.com>
  83. - Version 1.3.1
  84. * Tue Oct 21 2003 Leonid Zeitlin <lz@europe.com>
  85. - Version 1.3