File xneur.spec of Package xneur

#
# spec file for package xneur
#
# Copyright (c) 2006-2007 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.
#

# norootforbuild

Name:		xneur
Version:	0.8.0
Release:	1
URL:		http://www.xneur.ru
License:	GPLv2
Source:		%{name}-%{version}.tar.bz2
Group:		System/X11/Utilities
Summary:	X Neural Switcher
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:	xorg-x11-devel pcre-devel glib2-devel gstreamer010-devel aspell-devel

%description
X Neural Switcher (http://www.xneur.ru).
Automatical switcher of keyboard layout.

Authors:
-------
 Andrew Crew Kuznetsov <andrewcrew@rambler.ru>
 Yankin Nickolay Valerevich <web@softodrom.ru>

%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.

Authors:
-------
 Andrew Crew Kuznetsov <andrewcrew@rambler.ru>
 Yankin Nickolay Valerevich <web@softodrom.ru>

%prep
%setup -q -n %{name}-%{version}
#configure has hardcoded gnu99 flag
perl -pi -e "s/-Werror //g" configure
%{?suse_update_config:%{suse_update_config -f}}

%build
export CONFIGVARS="--prefix=/usr --libdir=%{_libdir} --bindir=%{_bindir} --sysconfdir=/etc --datarootdir=/usr/share \
                   --enable-FEATURE --with-pic --enable-shared --disable-static --enable-release"

%if %suse_version < 1020
./configure $CONFIGVARS --without-sound
%else
./configure $CONFIGVARS
%endif

#export CFLAGS="-Wall -g0 -fPIC -fgnu89-inline -fpie -fno-strict-aliasing"
#export CXXFLAGS="-Wall -g0 -fPIC -fpie"

%{__make} %{?jobs:-j %jobs}

%install
%{__make} DESTDIR=%{buildroot} install

%clean
%{__rm} -rf %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog NEWS README
%{_sysconfdir}/%{name}
%{_datadir}/%{name}/sounds/*
%{_bindir}/*
%{_libdir}/*.so.*
%{_mandir}/man1/*

%files devel
%defattr(-,root,root)
%{_libdir}/*.so
%{_libdir}/*.la
%{_libdir}/pkgconfig/*.pc
%{_includedir}/%{name}/*.h

%changelog -n xneur
* 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)
openSUSE Build Service is sponsored by