File gxneur.spec of Package gxneur

#
# spec file for package gxneur
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           gxneur
Version:        0.20.0
Release:        0
Summary:        GTK+ frontend for XNeur
License:        GPL-2.0+
Group:          System/X11/Utilities
Url:            http://xneur.ru/
Source:         https://github.com/AndrewCrewKuznetsov/xneur-devel/raw/master/dists/%{version}/%{name}_%{version}.orig.tar.gz
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  hicolor-icon-theme
BuildRequires:  intltool
BuildRequires:  libtool
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(x11) >= 1.1
BuildRequires:  pkgconfig(xnconfig) = %{version}
BuildRequires:  pkgconfig(xneur) = %{version}
Requires:       xneur = %{version}
Recommends:     %{name}-lang
Provides:       xneur-gui
%if 0%{?suse_version} >= 1320 || (0%{?sle_version} >= 120100 && 0%{?is_opensuse})
BuildRequires:  pkgconfig(appindicator-0.1) >= 0.2.9
%endif

%description
gXNeur is a GTK+ frontend for the XNeur keyboard layout switcher.

%lang_package

%prep
%setup -q
sed -i '/^DEFAULT_CFLAGS=/s/-Werror //' configure.ac

%build
autoreconf -fi
%configure \
%if 0%{?suse_version} < 1320 && !(0%{?sle_version} >= 120100 && 0%{?is_opensuse})
  --without-appindicator \
%endif
  --without-gconf
make %{?_smp_mflags} V=1

%install
%make_install

%find_lang %{name}
%suse_update_desktop_file -r %{name} GTK Utility Accessibility

%post
%desktop_database_post
%icon_theme_cache_post

%postun
%desktop_database_postun
%icon_theme_cache_postun

%files
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/*/%{name}*
%{_mandir}/man1/%{name}.1%{?ext_man}

%files lang -f %{name}.lang
%defattr(-,root,root)

%changelog
openSUSE Build Service is sponsored by