File gsynaptics.spec of Package gsynaptics
#
# spec file for package gsynaptics
#
# Copyright (c) 2011 SUSE LINUX Products 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/
#
# norootforbuild
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
License: GPL-2.0+
Group: System/GUI/GNOME
Version: 0.9.16
Release: 10
Summary: A Graphical Front-End for TouchPad Configuration
Url: http://sourceforge.jp/projects/gsynaptics/
Source: %{name}-%{version}.tar.bz2
Source1: preferences-system-touchpad.tar.bz2
# PATCH-FIX-UPSTREAM gsynaptics-CoastingSpeedThreshold.patch vuntz@novell.com -- Taken from gentoo. http://bugs.gentoo.org/202501
Patch0: gsynaptics-CoastingSpeedThreshold.patch
# PATCH-FIX-UPSTREAM gsynaptics-icon.patch vuntz@novell.com -- http://sourceforge.jp/tracker/index.php?func=detail&aid=12499&group_id=1720&atid=6433
Patch1: gsynaptics-icon.patch
# PATCH-FIX-UPSTREAM gsynaptics-support-partial-config.patch vuntz@novell.com -- Taken from Debian, https://sourceforge.jp/tracker/index.php?func=detail&aid=12545&group_id=1720&atid=6435
Patch2: gsynaptics-support-partial-config.patch
# PATCH-FIX-UPSTREAM gsynaptics-decimal-separator.patch vuntz@novell.com -- Taken from Debian, https://sourceforge.jp/tracker/index.php?func=detail&aid=12544&group_id=1720&atid=6435
Patch3: gsynaptics-decimal-separator.patch
# PATCH-FIX-UPSTREAM gsynaptics-show-in-LXDE.patch andrea@opensuse.org -- 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
%description
gsynaptics is a gnome applet that can be used to configure synaptics
touchpad that is commonly used in laptops.
%lang_package
%prep
%setup -a 1
%patch0 -p0
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%build
autoreconf -f -i
%configure
make %{?jobs:-j %jobs}
%install
%makeinstall
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}
%fdupes $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%if 0%{?suse_version} > 1130
%post
%desktop_database_post
%icon_theme_cache_post
%endif
%if 0%{?suse_version} > 1130
%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif
%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog README TODO
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/%{name}/
%doc %{_datadir}/gnome/help/%{name}/C/
%{_bindir}/gsynaptics*
%{_datadir}/applications/gsynaptics.desktop
%{_datadir}/icons/hicolor/*/*/*.*
%{_sysconfdir}/xdg/autostart/*.desktop
%{_datadir}/gsynaptics
%doc %{_mandir}/man?/gsynaptics*
%files lang -f %{name}.lang
%changelog