mtdev-vl.spec 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. %global tarball mtdev
  2. %global gitdate 20110105
  3. Name: mtdev
  4. Version: 1.1.0
  5. Release: 1.%{?gitdate}%{?_dist_release}
  6. Summary: Multitouch Protocol Translation Library
  7. Group: System Environment/Libraries
  8. License: MIT
  9. URL: http://bitmath.org/code/mtdev/
  10. # upstream doesn't have tarballs
  11. Source0: %{tarball}-%{gitdate}.tar.bz2
  12. Source1: make-git-snapshot.sh
  13. Source2: commitid
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  15. BuildRequires: autoconf automake libtool
  16. BuildRequires: xorg-x11-util-macros >= 1.5.0-1
  17. %description
  18. %{name} is a stand-alone library which transforms all variants of kernel MT
  19. events to the slotted type B protocol. The events put into mtdev may be from
  20. any MT device, specifically type A without contact tracking, type A with
  21. contact tracking, or type B with contact tracking.
  22. %package devel
  23. Summary: Multitouch Protocol Translation Library Development Package
  24. Requires: %{name} = %{version}-%{release}
  25. Requires: pkgconfig
  26. %description devel
  27. Multitouch protocol translation library development package.
  28. %prep
  29. %setup -q -n %{tarball}-%{gitdate}
  30. %build
  31. autoreconf -v --install || exit 1
  32. %configure --disable-static
  33. make %{?_smp_mflags}
  34. %install
  35. rm -rf %{buildroot}
  36. make install DESTDIR=%{buildroot} INSTALL="install -p"
  37. # We intentionally don't ship *.la files
  38. rm -f %{buildroot}%{_libdir}/*.la
  39. %clean
  40. rm -rf %{buildroot}
  41. %post -p /sbin/ldconfig
  42. %postun -p /sbin/ldconfig
  43. %files
  44. %defattr(-,root,root,-)
  45. %doc COPYING README CREDITS
  46. %{_libdir}/libmtdev.so.*
  47. %files devel
  48. %defattr(-,root,root,-)
  49. %{_includedir}/mtdev.h
  50. %{_includedir}/mtdev-plumbing.h
  51. %{_includedir}/mtdev-mapping.h
  52. %{_libdir}/libmtdev.so
  53. %{_libdir}/pkgconfig/mtdev.pc
  54. %{_bindir}/mtdev-test
  55. %changelog
  56. * Fri Sep 23 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.1.0-1.20110105
  57. - initial build for Vine Linux
  58. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-2.20110105
  59. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  60. * Wed Jan 05 2011 Peter Hutterer <peter.hutterer@redhat.com> 1.1.0-1.20110105
  61. - Update to release 1.1.0
  62. * Tue Aug 03 2010 Peter Hutterer <peter.hutterer@redhat.com> 1.0.8-1.20100803
  63. - Update to release 1.0.8
  64. * Thu Jul 08 2010 Peter Hutterer <peter.hutterer@redhat.com> 1.0.1-2.20100706
  65. - Require util-macros >= 1.5
  66. * Tue Jul 06 2010 Peter Hutterer <peter.hutterer@redhat.com> 1.0.1-1.20100706
  67. - Initial package