tslib: openEuler init

This commit is contained in:
gnaygnil 2019-12-02 16:26:14 +08:00
commit 1370aeba69
2 changed files with 63 additions and 0 deletions

BIN
tslib-1.16.tar.bz2 Normal file

Binary file not shown.

63
tslib.spec Normal file
View File

@ -0,0 +1,63 @@
Name: tslib
Version: 1.16
Release: 3
Summary: C library for filtering touchscreen events
License: LGPLv2
URL: https://github.com/kergoth/tslib
Source0: https://github.com/kergoth/tslib/releases/download/%{version}/tslib-%{version}.tar.bz2
BuildRequires: libtool autoconf automake SDL2-devel
%description
tslib consists of the library libts and tools that help you
calibrate and use it in your environment.
%package devel
Summary: Development files for tslib
Requires: tslib = %{version}-%{release} pkgconfig
%description devel
The package contains libraries and header files for developing
applications that use tslib.
%package help
Summary: Help document for the tslib package
Buildarch: noarch
%description help
Help document for the tslib package.
%prep
%autosetup -n tslib-%{version}
./autogen.sh
%build
%configure --with-sdl2
%make_build
%install
%make_install
%delete_la
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%doc AUTHORS ChangeLog README COPYING
%config(noreplace) %{_sysconfdir}/ts.conf
%{_bindir}/ts*
%{_libdir}/*.so.*
%dir %{_libdir}/ts
%{_libdir}/ts/*.so
%files devel
%{_includedir}/tslib.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/tslib.pc
%files help
%{_mandir}/man1/*
%{_mandir}/man3/*
%{_mandir}/man5/*
%changelog
* Sat Nov 30 2019 Ling Yang <lingyang2@huawei.com> - 1.16-3
- Package init