Name: libts Version: 1.0.0.git20110130 Release: 4mamba Summary: An abstraction library for touchscreen panel events Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://tslib.berlios.de/ Source: http://download.berlios.de/tslib/tslib-%{version}.tar.bz2 Source1: ts-calibrate-init Source2: ts-calibrate.conf.sample Source3: ts-calibrate.service Patch0: %{name}-1.0-enable_input_interface.patch License: LGPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Tslib is an abstraction layer for touchscreen panel events, as well as a filter stack for the manipulation of those events. It was created by Russell King, of arm.linux.org.uk. Examples of implemented filters include jitter smoothing and the calibration transform. Tslib is generally used on embedded devices to provide a common user space interface to touchscreen functionality. It is supported by Kdrive (aka TinyX) and OPIE as well as being used on a number of commercial Linux devices including the Nokia 770. %package devel Group: Development/Libraries Summary: Static libraries and headers for %{name} Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel Tslib is an abstraction layer for touchscreen panel events, as well as a filter stack for the manipulation of those events. It was created by Russell King, of arm.linux.org.uk. Examples of implemented filters include jitter smoothing and the calibration transform. Tslib is generally used on embedded devices to provide a common user space interface to touchscreen functionality. It is supported by Kdrive (aka TinyX) and OPIE as well as being used on a number of commercial Linux devices including the Nokia 770. This package contains static libraries and header files need for development. %prep %setup -q -n tslib-%{version} %patch0 -p1 %build #./autogen.sh %configure %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall ln -s libts-1.0.so.0 %{buildroot}%{_libdir}/libts-1.0.so install -D -m0755 %{SOURCE1} %{buildroot}%{_initrddir}/ts-calibrate install -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/ts-calibrate.conf.sample install -D -m0644 %{SOURCE3} %{buildroot}/lib/systemd/system/ts-calibrate.service %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post if [ $1 -eq 1 ]; then # new install chkconfig --add ts-calibrate fi /sbin/ldconfig exit 0 %preun if [ $1 -eq 0 ]; then # erase chkconfig --del ts-calibrate fi exit 0 %postun -p /sbin/ldconfig %files %defattr(-,root,root) %{_sysconfdir}/ts.conf %{_sysconfdir}/ts-calibrate.conf.sample %{_initrddir}/ts-calibrate %{_bindir}/ts_calibrate %{_bindir}/ts_harvest %{_bindir}/ts_print %{_bindir}/ts_print_raw %{_bindir}/ts_test /lib/systemd/system/ts-calibrate.service %{_libdir}/libts-1.0.so.* %dir %{_libdir}/ts %{_libdir}/ts/* %doc AUTHORS COPYING %files devel %defattr(-,root,root) %{_includedir}/tslib.h %{_libdir}/libts.la %{_libdir}/libts.so %{_libdir}/libts-1.0.so %{_libdir}/pkgconfig/tslib.pc %{_libdir}/pkgconfig/tslib-*.pc %doc ChangeLog README %changelog * Sun Apr 14 2013 Silvan Calarco 1.0.0.git20110130-4mamba - fix wrong file provided as ts-calibrate.service * Sat Apr 13 2013 Silvan Calarco 1.0.0.git20110130-3mamba - added systemd service file * Wed Apr 06 2011 Silvan Calarco 1.0.0.git20110130-2mamba - added calibration initscript with sample default configutation * Sun Jan 30 2011 Silvan Calarco 1.0.0.git20110130-1mamba - update to 1.0.0.git20110130 * Thu Jan 20 2011 Silvan Calarco 1.0-2mamba - patched ts.conf to enable input module by default * Tue Jan 04 2011 Silvan Calarco 1.0-1mamba - package created by autospec