File libsynaptics.spec of Package libsynaptics

#
# spec file for package libsynaptics (Version 0.14.6c)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           libsynaptics
BuildRequires:  gcc-c++ xorg-x11-devel
Url:            http://qsynaptics.sourceforge.net
Version:        0.14.6c
Release:        53
Summary:        A Small C++ Library To Use The Synaptics Driver
License:        GPL v2 or later
Group:          System/Libraries
Source:         %{name}-%{version}.tar.bz2
Patch0:         libsynaptics-0.14.6c-fix-bad-returnvalue.diff
Patch1:         libsynaptics-0.14.6c-gcc43.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Prefix:         /usr

%description
A Small C++ Library To Use The Synaptics Driver. Used e.g. by
ksynaptics.



Authors:
--------
    Stefan Kombrink <katakombi@web.de>

%prep
%setup
%patch0 -p1
%patch1 -p0

%build
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
./configure --prefix=/usr --libdir=%{_libdir}
make

%install
make install DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%post
%run_ldconfig

%postun
%run_ldconfig

%files
%defattr (-,root,root)
%{_libdir}/libsynaptics*
%{_includedir}/synaptics/
%changelog
* Wed Oct 24 2007 - seife@suse.de
- fix build with new gcc
* Wed Feb 14 2007 - seife@suse.de
- update to 0.14.6c (needed by ksynaptics 0.3.2)
  note that this has incompatible changes
* Fri Oct 13 2006 - seife@suse.de
- update to 0.14.6b which removed debug messages and fixes some
  build problems.
* Thu Jul 13 2006 - seife@suse.de
- Fix debuginfo-package build.
* Thu Jul 13 2006 - aj@suse.de
- Add g++ to BuildRequires.
* Wed Jul 12 2006 - seife@suse.de
- initial checkin
openSUSE Build Service is sponsored by