libts1/libts1.spec

121 lines
4.3 KiB
RPMSpec

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