Guillaume GARDET
389f9a2e23
- devel package now requires tslib itself as libts.so is in tslib package, it is double-weird not to be there - fix for non SUSE distros (in the more RPM hackish way :) OBS-URL: https://build.opensuse.org/request/show/146806 OBS-URL: https://build.opensuse.org/package/show/hardware/tslib?expand=0&rev=2
123 lines
3.0 KiB
RPMSpec
123 lines
3.0 KiB
RPMSpec
#
|
|
# spec file for package tslib
|
|
#
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
# Copyright (c) 2012 Guillaume GARDET <guillaume@opensuse.org>
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
|
|
Name: tslib
|
|
Version: 1.0
|
|
Release: 0.0
|
|
Summary: Abstraction layer for touchscreen
|
|
Group: Hardware/Other
|
|
Url: https://github.com/kergoth/tslib.git
|
|
Source: tslib-f6c499a523.tar.gz
|
|
Patch0: use-module-raw-input-for-ts-conf.patch
|
|
License: GPL-2.0+
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: autoconf
|
|
BuildRequires: libtool
|
|
BuildRequires: pkg-config
|
|
|
|
%description
|
|
Tslib is an abstraction layer for touchscreen panel events.
|
|
|
|
|
|
%package devel
|
|
Summary: Devel package for tslib
|
|
Group: Development/Libraries/Other
|
|
Requires: %name = %version
|
|
|
|
%description devel
|
|
Devel package for tslib. Tslib is an abstraction layer for touchscreen panel events.
|
|
|
|
|
|
%prep
|
|
%setup -q -n tslib-f6c499a523
|
|
%patch0 -p0
|
|
./autogen.sh
|
|
CFLAGS=$RPM_OPT_FLAGS ./configure --prefix=/usr --sysconfdir=/etc --libdir=%{_libdir}
|
|
|
|
%build
|
|
make
|
|
|
|
%install
|
|
%{?make_install} %{!?make_install:make install DESTDIR=$RPM_BUILD_ROOT}
|
|
|
|
%post
|
|
/sbin/ldconfig
|
|
|
|
%postun
|
|
/sbin/ldconfig
|
|
|
|
%clean
|
|
rm -rf %buildroot
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%dir %{_libdir}/ts
|
|
/usr/include/tslib.h
|
|
%{_libdir}/libts.la
|
|
%{_libdir}/pkgconfig/tslib-1.0.pc
|
|
%{_libdir}/pkgconfig/tslib.pc
|
|
%{_libdir}/ts/arctic2.la
|
|
%{_libdir}/ts/collie.la
|
|
%{_libdir}/ts/corgi.la
|
|
%{_libdir}/ts/dejitter.la
|
|
%{_libdir}/ts/dmc.la
|
|
%{_libdir}/ts/h3600.la
|
|
%{_libdir}/ts/input.la
|
|
%{_libdir}/ts/linear.la
|
|
%{_libdir}/ts/linear_h2200.la
|
|
%{_libdir}/ts/mk712.la
|
|
%{_libdir}/ts/pthres.la
|
|
%{_libdir}/ts/tatung.la
|
|
%{_libdir}/ts/touchkit.la
|
|
%{_libdir}/ts/ucb1x00.la
|
|
%{_libdir}/ts/variance.la
|
|
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%config /etc/ts.conf
|
|
%dir %{_libdir}/ts/
|
|
%{_libdir}/libts-1.0.so.0
|
|
%{_libdir}/libts-1.0.so.0.0.0
|
|
%{_libdir}/ts/arctic2.so
|
|
%{_libdir}/ts/collie.so
|
|
%{_libdir}/ts/corgi.so
|
|
%{_libdir}/ts/dejitter.so
|
|
%{_libdir}/ts/dmc.so
|
|
%{_libdir}/ts/h3600.so
|
|
%{_libdir}/ts/input.so
|
|
%{_libdir}/ts/linear.so
|
|
%{_libdir}/ts/linear_h2200.so
|
|
%{_libdir}/ts/mk712.so
|
|
%{_libdir}/ts/pthres.so
|
|
%{_libdir}/ts/tatung.so
|
|
%{_libdir}/ts/touchkit.so
|
|
%{_libdir}/ts/ucb1x00.so
|
|
%{_libdir}/ts/variance.so
|
|
%{_bindir}/ts_calibrate
|
|
%{_bindir}/ts_harvest
|
|
%{_bindir}/ts_print
|
|
%{_bindir}/ts_print_raw
|
|
%{_bindir}/ts_test
|
|
%{_libdir}/libts.so
|
|
|
|
|
|
%changelog
|