Browse Source

* mtdev: new
* xorg-x11-drv-mtrack: new


git-svn-id: http://trac.vinelinux.org/repos/projects/specs@4814 ec354946-7b23-47d6-9f5a-488ba84defc7

shaolin 12 years ago
parent
commit
396e2433ad
2 changed files with 148 additions and 0 deletions
  1. 88 0
      m/mtdev/mtdev-vl.spec
  2. 60 0
      x/xorg-x11-drv-mtrack/xorg-x11-drv-mtrack-vl.spec

+ 88 - 0
m/mtdev/mtdev-vl.spec

@@ -0,0 +1,88 @@
+%global tarball mtdev
+%global gitdate 20110105
+
+Name:           mtdev
+Version:        1.1.0
+Release:        1.%{?gitdate}%{?_dist_release}
+Summary:        Multitouch Protocol Translation Library
+
+Group:          System Environment/Libraries
+License:        MIT
+URL:            http://bitmath.org/code/mtdev/
+
+# upstream doesn't have tarballs
+Source0:        %{tarball}-%{gitdate}.tar.bz2
+Source1:        make-git-snapshot.sh
+Source2:        commitid
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires:  autoconf automake libtool
+BuildRequires:  xorg-x11-util-macros >= 1.5.0-1
+
+%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 %{tarball}-%{gitdate}
+
+%build
+autoreconf -v --install || exit 1
+%configure --disable-static
+make %{?_smp_mflags}
+
+%install
+rm -rf %{buildroot}
+make install DESTDIR=%{buildroot} INSTALL="install -p"
+
+# We intentionally don't ship *.la files
+rm -f %{buildroot}%{_libdir}/*.la
+
+%clean
+rm -rf %{buildroot}
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING README CREDITS
+%{_libdir}/libmtdev.so.*
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/mtdev.h
+%{_includedir}/mtdev-plumbing.h
+%{_includedir}/mtdev-mapping.h
+%{_libdir}/libmtdev.so
+%{_libdir}/pkgconfig/mtdev.pc
+%{_bindir}/mtdev-test
+
+%changelog
+* Fri Sep 23 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.1.0-1.20110105
+- initial build for Vine Linux
+
+* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-2.20110105
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Wed Jan 05 2011 Peter Hutterer <peter.hutterer@redhat.com> 1.1.0-1.20110105
+- Update to release 1.1.0
+
+* Tue Aug 03 2010 Peter Hutterer <peter.hutterer@redhat.com> 1.0.8-1.20100803
+- Update to release 1.0.8
+
+* Thu Jul 08 2010 Peter Hutterer <peter.hutterer@redhat.com> 1.0.1-2.20100706
+- Require util-macros >= 1.5
+
+* Tue Jul 06 2010 Peter Hutterer <peter.hutterer@redhat.com> 1.0.1-1.20100706
+- Initial package

+ 60 - 0
x/xorg-x11-drv-mtrack/xorg-x11-drv-mtrack-vl.spec

@@ -0,0 +1,60 @@
+%define tarball BlueDragonX-xf86-input-mtrack
+%define moduledir %(pkg-config xorg-server --variable=moduledir )
+%define driverdir	%{moduledir}/input
+%define githash 71abf32
+
+Summary:   Xorg X11 Multitouch Trackpad Driver
+Summary(ja):   Xorg X11 マルチタッチトラックパッド用ドライバ
+Name:      xorg-x11-drv-mtrack
+Version:   0.2.0
+Release:   1.git%{githash}%{?_dist_release}
+URL:       https://github.com/BlueDragonX/xf86-input-mtrack
+License:   GPLv2+
+Group:     User Interface/X Hardware Support
+
+Source0:   %{tarball}-v%{version}-1-g%{githash}.tar.gz
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+BuildRequires: xorg-x11-server-sdk 
+BuildRequires: libxkbfile-devel
+BuildRequires: xorg-x11-util-macros >= 1.3.0
+BuildRequires: mtdev-devel >= 1.0.10
+Requires:  xorg-x11-server-Xorg
+Requires:  mtdev >= 1.0.10
+
+%description 
+This X input driver provides gestures support for multitouch touchpads,
+with or without an integrated button.
+
+%prep
+%setup -q -n %{tarball}-%{githash}
+
+%build
+aclocal
+autoheader
+autoconf
+libtoolize --copy --force
+automake -a --gnu --include-deps
+%configure --disable-static
+make
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+make install DESTDIR=$RPM_BUILD_ROOT
+
+# FIXME: Remove all libtool archives (*.la) from modules directory.  This
+# should be fixed in upstream Makefile.am or whatever.
+find $RPM_BUILD_ROOT -regex ".*\.la$" | xargs rm -f --
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING CREDITS README.md
+%{driverdir}/mtrack_drv.so
+
+%changelog
+* Fri Sep 23 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.2.0-1.71abf32
+- initial build for Vine Linux