c809351d366bdaddc333802770094f033a39db86
[external/mtdev.git] / packaging / mtdev.spec
1
2 # Do NOT Edit the Auto-generated Part!
3 # Generated by: spectacle version 0.22git
4
5 # >> macros
6 # << macros
7
8 Name:       mtdev
9 Summary:    A library to transform all kernel MT events to protocol B (slotted)
10 Version:    1.0.11
11 Release:    1
12 Group:      System/X Hardware Support
13 License:    MIT
14 URL:        http://bitmath.org/code/mtdev/
15 Source0:    %{name}-%{version}.tar.gz
16 Source100:  mtdev.yaml
17 Source1001: packaging/mtdev.manifest 
18 # >> gbp-patch-tags         # auto-added by gbp
19 # << gbp-patch-tags         # auto-added by gbp
20 Requires(post): /sbin/ldconfig
21 Requires(postun): /sbin/ldconfig
22 BuildRequires:  autoconf
23 BuildRequires:  libtool
24
25
26 %description
27 mtdev - The mtdev is a stand-alone library which transforms all variants of
28 kernel MT events to the slotted type B protocol. The events put into mtdev
29 may be from any MT device, specifically type A without contact tracking,
30 type A with contact tracking, or type B with contact tracking. See the
31 kernel documentation for further details. The bulk of the mtdev code has
32 been out there since 2008, as part of the Multitouch X Driver. With this
33 package, finger tracking and seamless MT protocol handling is available
34 under a free license.
35
36
37
38 %package devel
39 Summary:    Development header files for use with mtdev
40 Group:      Development/Libraries
41 Requires:   %{name} = %{version}-%{release}
42
43 %description devel
44 Development header files for use with mtdev
45
46
47 %prep
48 %setup -q -n %{name}-%{version}
49 # >> gbp-apply-patches    # auto-added by gbp
50 # << gbp-apply-patches    # auto-added by gbp
51
52 # >> setup
53 # << setup
54
55 %build
56 cp %{SOURCE1001} .
57 # >> build pre
58 # << build pre
59
60 %configure --disable-static
61 make %{?jobs:-j%jobs}
62
63 # >> build post
64 # << build post
65 %install
66 rm -rf %{buildroot}
67 # >> install pre
68
69 # << install pre
70 %make_install
71
72 # >> install post
73
74 # << install post
75
76
77
78 %post -p /sbin/ldconfig
79
80 %postun -p /sbin/ldconfig
81
82
83
84
85
86 %files
87 %manifest mtdev.manifest
88 %defattr(-,root,root,-)
89 # >> files
90 %{_libdir}/libmtdev.so.*
91 # << files
92
93
94 %files devel
95 %manifest mtdev.manifest
96 %defattr(-,root,root,-)
97 # >> files devel
98 %{_bindir}/mtdev-test
99 %{_libdir}/libmtdev.so
100 %{_libdir}/pkgconfig/mtdev.pc
101 %{_includedir}/mtdev*.h
102 # << files devel
103