2012-01-10 12:50:16 +01:00
|
|
|
#
|
|
|
|
# spec file for package mtdev
|
|
|
|
#
|
2012-02-13 11:05:55 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2012-01-10 12:50:16 +01:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: mtdev
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
Summary: Multitouch Protocol Translation Library
|
2012-01-12 18:43:38 +01:00
|
|
|
License: MIT
|
2012-01-10 12:50:16 +01:00
|
|
|
Group: System/Libraries
|
2012-02-13 11:05:55 +01:00
|
|
|
Version: 1.1.0
|
|
|
|
Release: 0
|
2012-01-10 12:50:16 +01:00
|
|
|
Source: http://bitmath.org/code/mtdev/mtdev-%{version}.tar.bz2
|
2012-01-10 12:58:48 +01:00
|
|
|
Patch1: U_mtdev_close-should-ignore-NULL-devices.patch
|
|
|
|
Patch2: U_Return-EINVAL-for-invalid-parameters-on-mtdev_init.patch
|
2012-02-13 11:05:55 +01:00
|
|
|
Patch3: mtdev-implicit.diff
|
2012-01-10 12:50:16 +01:00
|
|
|
Url: http://bitmath.org/code/mtdev/
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
The mtdev is a stand-alone library which transforms all variants of kernel MT events to the slotted type B protocol. The events put into mtdev may be from any MT device, specifically type A without contact tracking, type A with contact tracking, or type B with contact tracking. See the kernel documentation for further details.
|
|
|
|
|
|
|
|
%package -n libmtdev1
|
|
|
|
Summary: Multitouch Protocol Translation Library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libmtdev1
|
|
|
|
The mtdev is a stand-alone library which transforms all variants of kernel MT events to the slotted type B protocol. The events put into mtdev may be from any MT device, specifically type A without contact tracking, type A with contact tracking, or type B with contact tracking. See the kernel documentation for further details.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development package for mtdev library
|
|
|
|
Group: Development/Libraries/C and C++
|
2012-01-13 16:19:20 +01:00
|
|
|
Requires: libmtdev1 = %{version} glibc-devel
|
2012-01-10 12:50:16 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains the files needed to compile programs that use mtdev library.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
2012-02-13 11:05:55 +01:00
|
|
|
%patch -P 3 -p1
|
2012-01-10 12:50:16 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure --disable-static
|
2012-02-13 11:05:55 +01:00
|
|
|
make %{?_smp_mflags}
|
2012-01-10 12:50:16 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
|
|
|
|
|
%post -n libmtdev1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libmtdev1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc COPYING ChangeLog README
|
|
|
|
%{_bindir}/*
|
|
|
|
|
|
|
|
%files -n libmtdev1
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/lib*.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/lib*.so
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
|
|
|
%changelog
|