File gsynaptics.spec of Package gsynaptics

# spec file for package gsynaptics
# 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

Name:           gsynaptics
BuildRequires:  fdupes
BuildRequires:  gconf2-devel
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  intltool
BuildRequires:  libglade2-devel
BuildRequires:  libtool
BuildRequires:  pkg-config
BuildRequires:  update-desktop-files
Version:        0.9.16
Release:        0
Summary:        A Graphical Front-End for Synaptics Touchpad Configuration
License:        GPL-2.0+
Group:          System/GUI/GNOME
Source:         %{name}-%{version}.tar.bz2
Source1:        preferences-system-touchpad.tar.bz2
# PATCH-FIX-UPSTREAM gsynaptics-CoastingSpeedThreshold.patch -- Taken from gentoo.
Patch0:         gsynaptics-CoastingSpeedThreshold.patch
# PATCH-FIX-UPSTREAM gsynaptics-icon.patch --
Patch1:         gsynaptics-icon.patch
# PATCH-FIX-UPSTREAM gsynaptics-support-partial-config.patch -- Taken from Debian,
Patch2:         gsynaptics-support-partial-config.patch
# PATCH-FIX-UPSTREAM gsynaptics-decimal-separator.patch -- Taken from Debian,
Patch3:         gsynaptics-decimal-separator.patch
# PATCH-FIX-UPSTREAM gsynaptics-show-in-LXDE.patch -- Allow also LXDE to Show the desktop file. Wasn't sent upstream since upstream is not actively developed anymore
Patch4:         gsynaptics-show-in-LXDE.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       x11-input-synaptics >= 0.14.4
Recommends:     %{name}-lang

gsynaptics is a gnome applet that can be used to configure Synaptics
touchpads that are commonly found in laptops.

%setup -a 1
%patch0 -p0
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

autoreconf -f -i
make %{?jobs:-j %jobs}

install -D -m644 16x16/preferences-system-touchpad.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps/gsynaptics.png
install -D -m644 22x22/preferences-system-touchpad.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/22x22/apps/gsynaptics.png
install -D -m644 24x24/preferences-system-touchpad.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/24x24/apps/gsynaptics.png
install -D -m644 32x32/preferences-system-touchpad.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/gsynaptics.png
install -D -m644 scalable/preferences-system-touchpad.svg $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps/gsynaptics.svg
%suse_update_desktop_file %{name} X-SuSE-ControlCenter-Hardware
# Temporary workaround to not have to own /usr/share/gnome/autostart until
# upstream moves the file in the right directory.
install -d %{buildroot}%{_sysconfdir}/xdg/autostart
mv %{buildroot}%{_datadir}/gnome/autostart/*.desktop %{buildroot}%{_sysconfdir}/xdg/autostart
# end of workaround
%suse_update_desktop_file gsynaptics-init
%find_lang %{name} %{?no_lang_C}


%if 0%{?suse_version} > 1130


%if 0%{?suse_version} > 1130


%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/%{name}/
%doc %{_datadir}/gnome/help/%{name}/C/
%doc %{_mandir}/man?/gsynaptics*

%files lang -f %{name}.lang

openSUSE Build Service is sponsored by