File xneur.spec of Package xneur
#
# spec file for package xneur
#
# Copyright (c) 2006-2008 Nikolay Derkach <nderkach@gmail.com>
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
Name: xneur
Version: 0.9.3
Release: 15.1
URL: http://www.xneur.ru
License: GPL-2.0
Source: %{name}-%{version}.tar.bz2
Group: System/X11/Utilities
Summary: X Neural Switcher
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: pcre-devel glib2-devel aspell-devel libtool
BuildRequires: imlib2-devel xosd-devel automake gstreamer010-devel
%if 0%{?mandriva_version} > 2006
x11-server-devel
%endif
%if 0%{?suse_version}
BuildRequires: xorg-x11-devel
%endif
%if 0%{?fedora_version} >= 5
BuildRequires: gstreamer-devel xorg-x11-proto-devel xorg-x11-xtrans-devel
%endif
%description
X Neural Switcher (http://www.xneur.ru).
Automatical switcher of keyboard layout.
%package -n xneur-devel
Summary: X Neural Switcher
Group: System/X11/Utilities
Requires: %{name} = %{version}
%description -n xneur-devel
X Neural Switcher (http://www.xneur.ru).
Automatical switcher of keyboard layout.
%prep
%setup -n %{name}-%{version}
# a hack for libaspell
sed -i -e "s/aspell_dir\/lib/aspell_dir\/%_lib/" configure
%if %suse_version == 1010
sed -i -e 's/#include\ <string.h>/#include <string.h>\n\n#include\ <X11\/keysym.h>/' lib/x/xutils.c
%endif
%{?suse_update_config:%{suse_update_config -f}}
%build
%if %suse_version < 1020
./configure --prefix=/usr --without-sound --without-xpm
%else
./configure --prefix=/usr
%endif
#configure has hardcoded gnu99 flag
%if %suse_version == 1030
sed -i -e "s/-Werror //" configure
%endif
make %{?jobs:-j %jobs}
%install
%makeinstall
# and some other hacks
%if %{_arch} == x86_64
mkdir $RPM_BUILD_ROOT/usr/lib64/
mv -f $RPM_BUILD_ROOT/usr/lib/* $RPM_BUILD_ROOT/usr/lib64/
%endif
%find_lang %name
cd $RPM_BUILD_ROOT/usr/ && mv etc/xneur/* share/%name/
rm -rf etc
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS ChangeLog NEWS README
%dir %{_datadir}/%{name}/
%{_datadir}/%{name}/*
%{_bindir}/*
%{_libdir}/*.so.*
%{_mandir}/man1/*
%{_mandir}/man5/*
%files devel
%defattr(-,root,root)
%dir %{_includedir}/%{name}
%{_libdir}/*.so
%{_libdir}/*.la
%{_libdir}/*.a
%{_libdir}/pkgconfig/*.pc
%{_includedir}/%{name}/*.h
%changelog -n xneur
* Tue Jul 08 2008 - Nikolay Derkach <nderkach@gmail.com>
- added a fix for libaspell recognition
- some spec cleanup
- some other hacks added
* Tue Jul 08 2008 - Nikolay Derkach <nderkach@gmail.com>
- update to 0.9.0
Rewrite event receiving and sending
Fixed mouse event support
Add pixmap flag beside of the mouse cursor
Add keyboard logging to file
Changed man pages
Lot of bugfixes
* Fri Nov 09 2007 - nderkach@gmail.com
- fixed empty configuration directory bug
* Fri Oct 15 2007 - nderkach@gmail.com
- update to 0.8.0
* added gstreamer010 and aspell support
* added Suggests with kxneur and gxneur
* added man pages
* added workaround for gcc 4.2 (bug #296680)
* Tue Jul 17 2007 - nderkach@gmail.com
- update to 0.6.2
* arbitrary hotkeys for user actions
* individual hotkeys for each keyboard layout
* setting of the default layout for new windows.
- added devel package
* Fri May 18 2007 - nderkach@gmail.com
- initial package (0.6.1)