packaging: Bump up to 1.1.6
[platform/upstream/mtdev.git] / packaging / mtdev.spec
1 Name:           mtdev
2 Version:        1.1.6
3 Release:        0
4 License:        MIT
5 Summary:        Multitouch Protocol Translation Library
6 Url:            http://bitmath.org/code/mtdev/
7 Group:          System/Libraries
8 Source:         http://bitmath.org/code/mtdev/mtdev-%{version}.tar.bz2
9 Source1001:     mtdev.manifest
10 BuildRequires:  pkgconfig
11
12 %global TZ_SYS_RO_SHARE  %{?TZ_SYS_RO_SHARE:%TZ_SYS_RO_SHARE}%{!?TZ_SYS_RO_SHARE:/usr/share}
13
14 %description
15 The mtdev 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. See the kernel documentation for further details.
16
17 %package -n libmtdev
18 Summary:        Multitouch Protocol Translation Library
19 Group:          System/Libraries
20
21 %description -n libmtdev
22 The mtdev 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. See the kernel documentation for further details.
23
24 %package devel
25 Summary:        Development package for mtdev library
26 Group:          System/Libraries
27 Requires:       glibc-devel
28 Requires:       libmtdev = %{version}
29
30 %description devel
31 This package contains the files needed to compile programs that use mtdev library.
32
33 %prep
34 %setup -q
35 cp %{SOURCE1001} .
36
37 %build
38 %reconfigure --disable-static
39 %__make %{?_smp_mflags}
40
41 %install
42 %make_install
43
44 %post -n libmtdev -p /sbin/ldconfig
45
46 %postun -n libmtdev -p /sbin/ldconfig
47
48 %files
49 %manifest %{name}.manifest
50 %license COPYING
51 %defattr(-, root, root)
52 %{_bindir}/*
53
54 %files -n libmtdev
55 %manifest %{name}.manifest
56 %license COPYING
57 %defattr(-, root, root)
58 %{_libdir}/lib*.so.*
59
60 %files devel
61 %manifest %{name}.manifest
62 %defattr(-, root, root)
63 %{_libdir}/lib*.so
64 %{_includedir}/*
65 %{_libdir}/pkgconfig/*.pc