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