File gsynaptics.spec of Package gsynaptics

#
# spec file for package gsynaptics (Version 0.9.14)
#
# Copyright (c) 2008 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:  libsynaptics
BuildRequires:  pkg-config
BuildRequires:  update-desktop-files
License:        GPL v2 or later
Group:          System/GUI/GNOME
AutoReqProv:    on
Version:        0.9.14
Release:        69
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
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       x11-input-synaptics >= 0.14.4
Requires:       %{name}-lang = %{version}

%description
gsynaptics is a gnome applet that can be used to configure synaptics
touchpad that is commonly used in laptops.



Authors:
--------
    Hiroyuki Ikezoe <poincare@ikezoe.net>
    Takuro Ashie <ashie@homa.ne.jp>

%lang_package
%prep
%setup -a 1
%patch0 -p0
%patch1 -p1
%patch2 -p1
%patch3 -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
%find_lang %{name}
%fdupes $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog README TODO
%{_bindir}/gsynaptics*
%{_datadir}/applications/gsynaptics.desktop
%{_datadir}/gnome/autostart/gsynaptics-init.desktop
%{_datadir}/icons/hicolor/*/*/*.*
#%dir %{prefix}/share/gnome
#%dir %{prefix}/share/gnome/autostart
%dir %{_datadir}/gsynaptics
%{_datadir}/gsynaptics/*
%doc %{_mandir}/man?/gsynaptics*

%files lang -f %{name}.lang

%changelog
* Sat Nov 29 2008 vuntz@novell.com
- Add gsynaptics-CoastingSpeedThreshold.patch: use the right name
  for the CoastingSpeed option. Taken from Gentoo.
- Add gsynaptics-decimal-separator.patch: make sure we always use .
  as decimal separator. Taken from Debian.
- Add gsynaptics-support-partial-config.patch: fix the code to
  actually work when some gconf keys are not defined. It was
  possible to totally break the touchpad because of this. Taken
  from Debian, fix bnc#402864.
- Remove gsynaptics-patch-missing-null.patch and update
  gsynaptics-icon.patch because of this removal: we don't need both
  patches.
* Mon Nov 03 2008 vuntz@novell.com
- Add gsynaptics-icon.patch and preferences-system-touchpad.tar.bz2
  to install valid icons for the application. Fix bnc#405250.
- Spec cleanup.
* Mon May 19 2008 maw@suse.de
- Add gsynaptics-patch-missing-null.patch (bnc#388236).
* Wed Apr 02 2008 maw@suse.de
- Update to version 0.9.14:
  + Misc. bugfixes and feature enhancements.
* Tue Aug 07 2007 maw@suse.de
- Use %%fdupes
- Split off a -lang subpackage.
* Wed Jan 03 2007 jhargadon@suse.de
- changed the desktop category to X-SuSE-ControlCenter-Hardware so
  that the launcher will show up in control-center
* Mon Nov 13 2006 jhargadon@suse.de
- initial submission, version 0.9.9
openSUSE Build Service is sponsored by