File x11-input-evtouch.spec of Package x11-input-evtouch

#
# spec file for package x11-input-evtouch (Version 0.8.8)
#
# Copyright (c) 2010 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:           x11-input-evtouch
BuildRequires:  Mesa-devel pkgconfig xorg-x11-proto-devel xorg-x11-server-sdk
Url:            http://www.conan.de/touchscreen/evtouch.html
Version:        0.8.8
Release:        1
License:        LGPLv2.1
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Group:          System/X11/Servers/XF86_4
Summary:        X.Org input evtouch driver
ExcludeArch:    s390 s390x
Source:         xf86-input-evtouch-%{version}.tar.bz2
Patch3:         evtouch-20080829-add_IDEACO_IDC_6680_Touchscreen_to_udev.diff
Patch4:         evtouch-20080901-add_another_Panjit_touchset_device.diff
Patch5:         evtouch-20081023-fix-compiler_warning.diff
Patch11:        01_fix_warnings.patch
Patch12:        02_calibration_1.6.patch
Patch13:        03_server-1.6-ftbfs.diff
Patch14:        04_server-1.7-ftbfs.diff
Patch15:        05_fix_CURSORDIR.diff
Patch16:        06_add_TSC-10_to_evdev_rules.diff

%description
This package contains the X.Org evtouch input drivers.



Authors:
--------
    Kenan Esau <kenan.esau@conan.de>

%prep
%setup -n xf86-input-evtouch-%{version} -q
%patch3 -p0
%patch4 -p0
%patch5 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
%patch14 -p1
%patch15 -p1
%patch16 -p1

%build
./configure 						\
	CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" 	\
	--sysconfdir=/etc				\
        --prefix=/usr 					\
	--libdir=%{_libdir} 				\
	--mandir=%{_mandir}				\
	--enable-udevinstall				\
	--enable-evcalibrate
make

%install
make install DESTDIR=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/doc/packages/x11-input-evtouch
install -m 644 {README,README.calibration,ChangeLog,COPYING,INSTALL,TODO} $RPM_BUILD_ROOT/%{_datadir}/doc/packages/x11-input-evtouch

%clean
rm -rf "$RPM_BUILD_ROOT"

%files 
%defattr(-,root,root)
%dir %{_datadir}/xf86-input-evtouch
%dir /usr/%{_lib}/xf86-input-evtouch/
%dir %{_datadir}/doc/packages/x11-input-evtouch
%dir %{_sysconfdir}/udev
%dir %{_sysconfdir}/udev/rules.d
/usr/%{_lib}/xorg/modules/input/
/usr/%{_lib}/xf86-input-evtouch/*
%{_datadir}/doc/packages/x11-input-evtouch/*
%{_datadir}/xf86-input-evtouch/*
%{_sysconfdir}/udev/rules.d/*

%changelog
openSUSE Build Service is sponsored by