add packaging
authorSung-Jin Park <sj76.park@samsung.com>
Mon, 29 Aug 2016 08:54:13 +0000 (17:54 +0900)
committerjeon <jhyuni.kang@samsung.com>
Thu, 7 Jan 2021 11:36:38 +0000 (20:36 +0900)
Change-Id: Iaa7aeef57711667c942973d6701f0763e8a66578

packaging/mtdev.manifest [new file with mode: 0644]
packaging/mtdev.spec [new file with mode: 0644]

diff --git a/packaging/mtdev.manifest b/packaging/mtdev.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/mtdev.spec b/packaging/mtdev.spec
new file mode 100644 (file)
index 0000000..22d9e4b
--- /dev/null
@@ -0,0 +1,62 @@
+Name:           mtdev
+Version:        1.1.5
+Release:        0
+License:        MIT
+Summary:        Multitouch Protocol Translation Library
+Url:            http://bitmath.org/code/mtdev/
+Group:          System/Libraries
+Source:         http://bitmath.org/code/mtdev/mtdev-%{version}.tar.bz2
+Source1001:     mtdev.manifest
+BuildRequires:  pkgconfig
+
+%description
+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.
+
+%package -n libmtdev
+Summary:        Multitouch Protocol Translation Library
+Group:          System/Libraries
+
+%description -n libmtdev
+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.
+
+%package devel
+Summary:        Development package for mtdev library
+Group:          System/Libraries
+Requires:       glibc-devel
+Requires:       libmtdev = %{version}
+
+%description devel
+This package contains the files needed to compile programs that use mtdev library.
+
+%prep
+%setup -q
+cp %{SOURCE1001} .
+
+%build
+%reconfigure --disable-static
+%__make %{?_smp_mflags}
+
+%install
+%make_install
+
+%post -n libmtdev -p /sbin/ldconfig
+
+%postun -n libmtdev -p /sbin/ldconfig
+
+%files
+%manifest %{name}.manifest
+%defattr(-, root, root)
+%license COPYING 
+%{_bindir}/*
+
+%files -n libmtdev
+%manifest %{name}.manifest
+%defattr(-, root, root)
+%{_libdir}/lib*.so.*
+
+%files devel
+%manifest %{name}.manifest
+%defattr(-, root, root)
+%{_libdir}/lib*.so
+%{_includedir}/*
+%{_libdir}/pkgconfig/*.pc