legacy package [release 1.0.0.git20110130-6mamba;Thu Oct 03 2019]
This commit is contained in:
parent
f238895e77
commit
dbd318dcd2
@ -1,2 +1,5 @@
|
||||
# libts1
|
||||
|
||||
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.
|
||||
|
||||
|
10
libts-1.0-enable_input_interface.patch
Normal file
10
libts-1.0-enable_input_interface.patch
Normal file
@ -0,0 +1,10 @@
|
||||
diff -Nru tslib-1.0.orig//etc/ts.conf tslib-1.0/etc/ts.conf
|
||||
--- tslib-1.0.orig//etc/ts.conf 2006-08-24 23:02:55.000000000 +0200
|
||||
+++ tslib-1.0/etc/ts.conf 2011-01-20 19:26:12.176541145 +0100
|
||||
@@ -1,5 +1,5 @@
|
||||
# Uncomment if you wish to use the linux input layer event interface
|
||||
-# module_raw input
|
||||
+module_raw input
|
||||
|
||||
# Uncomment if you're using a Sharp Zaurus SL-5500/SL-5000d
|
||||
# module_raw collie
|
120
libts1.spec
Normal file
120
libts1.spec
Normal file
@ -0,0 +1,120 @@
|
||||
Name: libts1
|
||||
Version: 1.0.0.git20110130
|
||||
Release: 6mamba
|
||||
Summary: An abstraction library for touchscreen panel events
|
||||
Group: System/Libraries
|
||||
Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
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: libts-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.
|
||||
|
||||
%package tools
|
||||
Group: System/Tools
|
||||
Summary: Tools for %{name}
|
||||
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||||
|
||||
%description tools
|
||||
This package tools that use %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n tslib-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
#./autogen.sh
|
||||
%configure \
|
||||
--with-plugindir=%{_libdir}/ts1
|
||||
|
||||
%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}"
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libts-1.0.so.*
|
||||
%dir %{_libdir}/ts1
|
||||
%{_libdir}/ts1/*
|
||||
%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
|
||||
|
||||
%files tools
|
||||
%defattr(-,root,root)
|
||||
%{_sysconfdir}/ts.conf
|
||||
%{_sysconfdir}/ts-calibrate.conf.sample
|
||||
%{_bindir}/ts_calibrate
|
||||
%{_bindir}/ts_harvest
|
||||
%{_bindir}/ts_print
|
||||
%{_bindir}/ts_print_raw
|
||||
%{_bindir}/ts_test
|
||||
/lib/systemd/system/ts-calibrate.service
|
||||
|
||||
%changelog
|
||||
* Thu Oct 03 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.0.git20110130-6mamba
|
||||
- legacy package
|
||||
|
||||
* Fri Jun 27 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.0.git20110130-5mamba
|
||||
- remove sysv5 initscript and fix systemd service file
|
||||
|
||||
* Sun Apr 14 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.0.git20110130-4mamba
|
||||
- fix wrong file provided as ts-calibrate.service
|
||||
|
||||
* Sat Apr 13 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.0.git20110130-3mamba
|
||||
- added systemd service file
|
||||
|
||||
* Wed Apr 06 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.0.git20110130-2mamba
|
||||
- added calibration initscript with sample default configutation
|
||||
|
||||
* Sun Jan 30 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.0.git20110130-1mamba
|
||||
- update to 1.0.0.git20110130
|
||||
|
||||
* Thu Jan 20 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0-2mamba
|
||||
- patched ts.conf to enable input module by default
|
||||
|
||||
* Tue Jan 04 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0-1mamba
|
||||
- package created by autospec
|
21
ts-calibrate-init
Normal file
21
ts-calibrate-init
Normal file
@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
# ts-calibrate - tslib calibration script
|
||||
#
|
||||
# chkconfig: 5 97 99
|
||||
# description: tslib calibration script
|
||||
#
|
||||
# processname: ts_calibrate
|
||||
|
||||
[ -e /etc/ts-calibrate.conf ] || exit 1
|
||||
|
||||
. /etc/ts-calibrate.conf
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
[ -e /etc/pointercal ] || /usr/bin/ts_calibrate
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
6
ts-calibrate.conf.sample
Normal file
6
ts-calibrate.conf.sample
Normal file
@ -0,0 +1,6 @@
|
||||
export TSLIB_CONFFILE=/etc/ts.conf
|
||||
export TSLIB_CONSOLEDEVICE=none
|
||||
export TSLIB_FBDEVICE=/dev/fb0
|
||||
export TSLIB_TSDEVICE=/dev/input/event0
|
||||
export TSLIB_CALIBFILE=/etc/pointercal
|
||||
export HOME=/root
|
14
ts-calibrate.service
Normal file
14
ts-calibrate.service
Normal file
@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Touchscreen calibration
|
||||
DefaultDependencies=no
|
||||
Before=graphical.target
|
||||
|
||||
[Service]
|
||||
ConditionPathExists=/etc/ts-calibrate.conf !/etc/pointercal
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/usr/bin/ts_calibrate
|
||||
EnvironmentFile=-/etc/ts-calibrate.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical.target
|
Loading…
Reference in New Issue
Block a user