File tslib.spec of Package tslib-v115

Name:           tslib
Version:        1.15
Release:        1
Summary:        C library for filtering touchscreen events
License:        LGPLv2
URL:            https://github.com/kergoth/tslib
Source0:        %{name}-%{version}.tar.gz
BuildRequires:  libtool autoconf automake SDL2-devel
BuildRequires:  autoconf automake libtool python3

%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
export CFLAGS="%{optflags} -Wno-error -std=gnu11"
export CXXFLAGS="%{optflags} -Wno-error"

%configure --with-sdl2
%make_build
%install
%make_install
find %{buildroot} -name '*.la' -delete
%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
openSUSE Build Service is sponsored by