summaryrefslogtreecommitdiffstats
path: root/kkbswitch.spec
blob: 5dd4984b15c9787754686099db3513b70a43519c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# This spec file was generated using Kpp
# If you find any problems with this spec file please report
# the error to ian geiser <geiseri@msoe.edu>

# build with --without ru_ua_layout to disable installation
# of ru_ua XKB layout file

Summary:   Keyboard layout indicator for KDE
Name:      kkbswitch
Version:   1.4.3
Release:   1
License:   GPL
Vendor:    Leonid Zeitlin <lz@europe.com>
Url:       http://kkbswitch.sourceforge.net
Packager:  Leonid Zeitlin <lz@europe.com>
Group:     User Interface/Desktops
Source:    kkbswitch-%{version}.tar.gz
BuildRequires: tdelibs-devel 
BuildRoot: %{_tmppath}/kkbswitch-root

%description
KKBSwitch is a keyboard layout indicator for KDE. It is useful when
you have configured the XKeyboard extension of your X Server to have more
than one keyboard group (layout), for example US/ASCII and Russian.
KKBSwitch displays an icon in the system tray that indicates which layout
is currently active. Note that KKBSwitch does not help you configure
XKeyboard, it merely serves as the indicator of the current layout. You
still have to configure XKeyboard by editing the XF86Config file. 

%prep
%setup

%build
export TDEDIR=%{_prefix}
# Workaround for legacy auto* tools
#[ -x /usr/bin/autoconf-2.5? ] && ln -s /usr/bin/autoconf-2.5? autoconf
#[ -x /usr/bin/autoheader-2.5? ] && ln -s /usr/bin/autoheader-2.5?
#autoheader
#[ -x /usr/bin/aclocal-1.5 ] && ln -s /usr/bin/aclocal-1.5 aclocal
#[ -x /usr/bin/automake-1.5 ] && ln -s /usr/bin/automake-1.5 automake
#export PATH=`pwd`:$PATH
# End workaround

CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure \
  --prefix=%{_prefix} --mandir=%{_mandir} $LOCALFLAGS \
  %{?_with_ru_ua_layout:--enable-ru-ua-layout} 

# Setup for parallel builds
numprocs=`egrep -c ^cpu[0-9]+ /proc/stat || :`
if [ "$numprocs" = "0" ]; then
  numprocs=1
fi

make -j$numprocs

%install
make install-strip DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT


%files
%doc %{_docdir}/HTML/*/kkbswitch/*
%{_bindir}/kkbswitch
%{_datadir}/applnk/Utilities/kkbswitch.desktop
%{_datadir}/apps/kkbswitch/*
%{_datadir}/apps/tdeconf_update/kkbswitch.upd
%{_datadir}/apps/tdeconf_update/kkbswitch_update_14_icons
%{_datadir}/apps/tdeconf_update/kkbswitch_update_14_options
%{_datadir}/locale/*/LC_MESSAGES/kkbswitch.mo
%{_datadir}/autostart/kkbswitch.desktop
%{_mandir}/man1/kkbswitch.1*
%if 0%{?_with_ru_ua_layout:1}
/usr/X11R6/lib/X11/xkb/symbols/ru_ua
%endif
%changelog
* Sat Jan 15 2005 Leonid Zeitlin <lz@europe.com> 1.4.2
- Version 1.4.3

* Sat Nov 13 2004 Leonid Zeitlin <lz@europe.com> 1.4.2-2
- Added explicit BuildRequires: tdelibs-devel
- Don't use %configure, it causes binary to be named something like 
  i686-redhat-linux-gnu-kkbswitch on older (RH 7.3) systems

* Sat Nov  6 2004 Leonid Zeitlin <lz@europe.com>
- Version 1.4.2

* Tue Jun 15 2004 Leonid Zeitlin <lz@europe.com>
- Version 1.4.1

* Sat May  8 2004 Leonid Zeitlin <lz@europe.com>
- Version 1.4
- provide files list explicitly
- --without ru_ua_layout support

* Thu Jan  8 2004 Leonid Zeitlin <lz@europe.com>
- Version 1.3.2

* Sun Nov  2 2003 Leonid Zeitlin <lz@europe.com>
- Version 1.3.1

* Tue Oct 21 2003 Leonid Zeitlin <lz@europe.com>
- Version 1.3