Peter Hutterer 2c56761
%global gitdate 20141211
Peter Hutterer 2c56761
%global gitversion 58abea394
Peter Hutterer 74f5423
ac7874b
Name:           libinput
Peter Hutterer 6fb1e1d
Version:        0.7.0
Peter Hutterer 2c56761
Release:        2%{?gitdate:.%{gitdate}git%{gitversion}}%{?dist}
ac7874b
Summary:        Input device library
ac7874b
ac7874b
License:        MIT
ac7874b
URL:            http://www.freedesktop.org/wiki/Software/libinput/
Peter Hutterer 74f5423
%if 0%{?gitdate}
Peter Hutterer 74f5423
Source0:        %{name}-%{gitdate}.tar.xz
Peter Hutterer 74f5423
Source1:        make-git-snapshot.sh
Peter Hutterer 74f5423
Source2:        commitid
Peter Hutterer 74f5423
%else
ac7874b
Source0:        http://www.freedesktop.org/software/libinput/libinput-%{version}.tar.xz
Peter Hutterer 74f5423
%endif
ac7874b
Peter Hutterer 74f5423
BuildRequires:  git
Peter Hutterer 74f5423
BuildRequires:  autoconf automake libtool pkgconfig
ac7874b
BuildRequires:  libevdev-devel
ac7874b
BuildRequires:  libudev-devel
ac7874b
BuildRequires:  mtdev-devel
ac7874b
ac7874b
%description
ac7874b
libinput is a library that handles input devices for display servers and other
ac7874b
applications that need to directly deal with input devices.
ac7874b
ac7874b
It provides device detection, device handling, input device event processing
ac7874b
and abstraction so minimize the amount of custom input code the user of
ac7874b
libinput need to provide the common set of functionality that users expect.
ac7874b
ac7874b
ac7874b
%package        devel
ac7874b
Summary:        Development files for %{name}
ac7874b
Requires:       %{name}%{?_isa} = %{version}-%{release}
ac7874b
ac7874b
%description    devel
ac7874b
The %{name}-devel package contains libraries and header files for
ac7874b
developing applications that use %{name}.
ac7874b
ac7874b
ac7874b
%prep
Peter Hutterer 74f5423
%setup -q -n %{name}-%{?gitdate:%{gitdate}}%{!?gitdate:%{version}}
Peter Hutterer 74f5423
git init
Peter Hutterer 74f5423
if [ -z "$GIT_COMMITTER_NAME" ]; then
Peter Hutterer 74f5423
    git config user.email "x@fedoraproject.org"
Peter Hutterer 74f5423
    git config user.name "Fedora X Ninjas"
Peter Hutterer 74f5423
fi
Peter Hutterer 74f5423
git add .
Peter Hutterer 74f5423
git commit --allow-empty -a -q -m "%{version} baseline."
Peter Hutterer 74f5423
Peter Hutterer 74f5423
# Apply all the patches.
Peter Hutterer 74f5423
git am -p1 %{patches} < /dev/null
ac7874b
ac7874b
%build
Peter Hutterer 74f5423
autoreconf -v --install --force || exit 1
Peter Hutterer 74f5423
%configure --disable-static --disable-silent-rules
ac7874b
make %{?_smp_mflags}
ac7874b
ac7874b
ac7874b
%install
ac7874b
%make_install
ac7874b
find $RPM_BUILD_ROOT -name '*.la' -delete
ac7874b
ac7874b
ac7874b
%post -p /sbin/ldconfig
ac7874b
ac7874b
%postun -p /sbin/ldconfig
ac7874b
ac7874b
ac7874b
%files
ac7874b
%doc COPYING
ac7874b
%{_libdir}/libinput.so.*
ac7874b
ac7874b
%files devel
ac7874b
%{_includedir}/libinput.h
ac7874b
%{_libdir}/libinput.so
ac7874b
%{_libdir}/pkgconfig/libinput.pc
ac7874b
ac7874b
ac7874b
%changelog
Peter Hutterer 2c56761
* Thu Dec 11 2014 Peter Hutterer <peter.hutterer@redhat.com> 0.7.0-2.20141211git58abea394
Peter Hutterer 2c56761
- git snapshot, fixes a crasher and fd confusion after suspending a device
Peter Hutterer 2c56761
Peter Hutterer 6fb1e1d
* Fri Dec 05 2014 Peter Hutterer <peter.hutterer@redhat.com> 0.7.0-1
Peter Hutterer 6fb1e1d
- libinput 0.7.0
Peter Hutterer 6fb1e1d
Peter Hutterer 74f5423
* Mon Nov 24 2014 Peter Hutterer <peter.hutterer@redhat.com> 0.6.0-3.20141124git92d178f16
Peter Hutterer 74f5423
- Add the hooks to build from a git snapshot
Peter Hutterer 74f5423
- Disable silent rules
Peter Hutterer 74f5423
- Update to today's git master
Peter Hutterer 74f5423
Peter Hutterer daca7fc
* Fri Sep 12 2014 Peter Hutterer <peter.hutterer@redhat.com> 0.6.0-2
Peter Hutterer daca7fc
- libinput 0.6.0
Peter Hutterer daca7fc
2796749
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-2
2796749
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2796749
Peter Hutterer d790111
* Wed Jul 23 2014 Peter Hutterer <peter.hutterer@redhat.com> 0.5.0-1
Peter Hutterer d790111
- libinput 0.5.0
Peter Hutterer d790111
Peter Hutterer 6988264
* Wed Jul 02 2014 Peter Hutterer <peter.hutterer@redhat.com> 0.4.0-2
Peter Hutterer 6988264
- Add the new touchpad pointer acceleration code
Peter Hutterer 6988264
2711dd9
* Wed Jun 25 2014 Kalev Lember <kalevlember@gmail.com> - 0.4.0-1
2711dd9
- Update to 0.4.0
2711dd9
ab1fd2a
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-2
ab1fd2a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ab1fd2a
Peter Hutterer c29a2ad
* Fri May 23 2014 Peter Hutterer <peter.hutterer@redhat.com> 0.2.0-1
Peter Hutterer c29a2ad
- libinput 0.2.0
Peter Hutterer c29a2ad
ac7874b
* Fri Feb 28 2014 Kalev Lember <kalevlember@gmail.com> - 0.1.0-1
ac7874b
- Initial Fedora packaging