Guillaume GARDET
9b3bd7c332
* Add baselibs.conf (needed to use tslib with directfb) * Update to git e2e03ef719 OBS-URL: https://build.opensuse.org/request/show/186715 OBS-URL: https://build.opensuse.org/package/show/hardware/tslib?expand=0&rev=6
113 lines
2.9 KiB
RPMSpec
113 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package tslib
|
|
#
|
|
# Copyright (c) 2013 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
|
|
License: LGPL-2.0+ and GPL-2.0+
|
|
Group: Hardware/Other
|
|
Url: https://github.com/kergoth/tslib.git
|
|
Source: tslib-e2e03ef719.tar.gz
|
|
Source2: baselibs.conf
|
|
Patch0: use-module-raw-input-for-ts-conf.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: autoconf
|
|
BuildRequires: libtool
|
|
BuildRequires: pkg-config
|
|
|
|
%description
|
|
Tslib is an abstraction layer for touchscreen panel events.
|
|
|
|
%package -n libts-1_0-0
|
|
Summary: Tslib library itself
|
|
Group: Development/Libraries/Other
|
|
|
|
%description -n libts-1_0-0
|
|
Library package for Tslib.
|
|
|
|
%package plugins
|
|
Summary: Driver plugins for Tslib
|
|
Group: Development/Libraries/Other
|
|
|
|
%description plugins
|
|
Hardware driver plugins for Tslib.
|
|
|
|
%package devel
|
|
Summary: Devel package for tslib
|
|
Group: Development/Libraries/Other
|
|
Requires: %name = %version
|
|
Requires: %name-plugins = %version
|
|
|
|
%description devel
|
|
Devel package for tslib. Tslib is an abstraction layer for touchscreen panel events.
|
|
|
|
|
|
%prep
|
|
%setup -q -n tslib-e2e03ef719
|
|
%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}
|
|
rm %{buildroot}%{_libdir}/pkgconfig/tslib-1.0.pc
|
|
ln -s tslib.pc %{buildroot}%{_libdir}/pkgconfig/tslib-1.0.pc
|
|
|
|
%post -n libts-1_0-0 -p /sbin/ldconfig
|
|
|
|
%postun -n libts-1_0-0 -p /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/*.la
|
|
%{_libdir}/libts.so
|
|
|
|
%files -n libts-1_0-0
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libts-1.0.so.0
|
|
%{_libdir}/libts-1.0.so.0.0.0
|
|
|
|
%files plugins
|
|
%defattr(-,root,root)
|
|
%dir %{_libdir}/ts
|
|
%{_libdir}/ts/*.so
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%config /etc/ts.conf
|
|
%{_bindir}/ts_calibrate
|
|
%{_bindir}/ts_harvest
|
|
%{_bindir}/ts_print
|
|
%{_bindir}/ts_print_raw
|
|
%{_bindir}/ts_test
|
|
|
|
%changelog
|