diff --git a/mtdev-1.1.6.tar.gz b/mtdev-1.1.6.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..9ad556acd1607ddad0a9518c815a1c33746ec5d2 Binary files /dev/null and b/mtdev-1.1.6.tar.gz differ diff --git a/mtdev.spec b/mtdev.spec new file mode 100644 index 0000000000000000000000000000000000000000..77ee92037d755365e09ec7060f406451c9ce0a5c --- /dev/null +++ b/mtdev.spec @@ -0,0 +1,59 @@ +%define anolis_release 1 +%global name mtdev + +Name: mtdev +Version: 1.1.6 +Release: %{anolis_release}%{?dist} +Summary: Multitouch Protocol Translation Library +License: MIT +URL: http://bitmath.org/code/mtdev/ +Source0: http://bitmath.org/code/mtdev/%{name}-%{version}.tar.gz + +BuildRequires: autoconf automake libtool gcc make make make make + +%description +%{name} 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. + +%package devel +Summary: Multitouch Protocol Translation Library Development Package +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig + +%description devel +Multitouch protocol translation library development package. + +%prep +%setup -q -n %{name}-%{version} + +%build +autoreconf --force -v --install || exit 1 +%configure --disable-static +%make_build + +%install +rm -rf %{buildroot} +%make_install + +# We intentionally don't ship *.la files +rm -f %{buildroot}%{_libdir}/*.la + +%ldconfig_scriptlets + +%files +%doc COPYING README +%{_libdir}/libmtdev.so.* + +%files devel +%{_includedir}/mtdev.h +%{_includedir}/mtdev-plumbing.h +%{_includedir}/mtdev-mapping.h +%{_libdir}/libmtdev.so +%{_libdir}/pkgconfig/mtdev.pc +%{_bindir}/mtdev-test + +%changelog +* Mon Apr 18 2022 Yuanhong Peng - 1.1.6-1 +- Init package from upstream v1.1.6