Benjamin Tissoires 9c86f21
%global gitdate 20130724
Benjamin Tissoires 9c86f21
%global gitversion 304eb65f
Peter Hutterer 12ae138
Peter Hutterer 01bc890
Name:           evemu
Benjamin Tissoires 4fd6956
Version:        1.1.0
Benjamin Tissoires 9c86f21
Release:        4%{?gitdate:.%{gitdate}git%{gitversion}}%{?dist}
Peter Hutterer 01bc890
Summary:        Event Device Query and Emulation Program
Peter Hutterer 01bc890
Peter Hutterer 01bc890
Group:          Development/Tools
Peter Hutterer 01bc890
License:        GPLv3+
Benjamin Tissoires 4fd6956
URL:            http://www.freedesktop.org/wiki/Evemu
Peter Hutterer 12ae138
Peter Hutterer 12ae138
%if 0%{?gitdate}
Peter Hutterer 12ae138
Source0:        %{name}-%{gitdate}.tar.bz2
Peter Hutterer 12ae138
Source1:        make-git-snapshot.sh
Peter Hutterer 12ae138
Source2:        commitid
Peter Hutterer 12ae138
%else
Benjamin Tissoires 4fd6956
Source0:        http://www.freedesktop.org/software/%{name}/%{name}-%{version}.tar.gz
Peter Hutterer 12ae138
%endif
Peter Hutterer 01bc890
Peter Hutterer 01bc890
BuildRequires:  automake libtool
Peter Hutterer 01bc890
BuildRequires:  python2-devel
Peter Hutterer 01bc890
BuildRequires:  xmlto asciidoc
Peter Hutterer 01bc890
Peter Hutterer 01bc890
# package was renamed in version 1.0.10
Peter Hutterer 01bc890
Provides:       utouch-evemu = %{version}-%{release}
Peter Hutterer 01bc890
Obsoletes:      utouch-evemu < 1.0.10
Peter Hutterer 01bc890
Peter Hutterer 01bc890
%description
Peter Hutterer 01bc890
%{name} is a simple utility to capture the event stream from input devices
Peter Hutterer 01bc890
and replay that stream on a virtual input device.
Peter Hutterer 01bc890
Peter Hutterer 01bc890
%package devel
Peter Hutterer 01bc890
Summary:        Event Device Query and Emulation Program Development Package
Peter Hutterer 01bc890
Requires:       %{name} = %{version}-%{release}
Peter Hutterer 01bc890
Requires:       pkgconfig
Peter Hutterer 01bc890
Requires:       python
Peter Hutterer 01bc890
Peter Hutterer 01bc890
Provides:       utouch-evemu-devel = %{version}-%{release}
Peter Hutterer 01bc890
Obsoletes:      utouch-evemu-devel < 1.0.10
Peter Hutterer 01bc890
Peter Hutterer 01bc890
%description devel
Peter Hutterer 01bc890
%{name} development files.
Peter Hutterer 01bc890
Peter Hutterer 01bc890
%prep
Peter Hutterer 12ae138
%setup -q -n %{name}-%{?gitdate:%{gitdate}}%{!?gitdate:%{version}}
Peter Hutterer 01bc890
Peter Hutterer 01bc890
%build
Peter Hutterer 01bc890
autoreconf -v --install --force || exit 1
Peter Hutterer 1037729
%configure --disable-static --disable-silent-rules
Peter Hutterer 01bc890
make %{?_smp_mflags}
Peter Hutterer 01bc890
Peter Hutterer 01bc890
%install
Peter Hutterer 01bc890
make install DESTDIR=%{buildroot}
Peter Hutterer 01bc890
Peter Hutterer 01bc890
# We intentionally don't ship *.la files
Peter Hutterer 01bc890
rm -f %{buildroot}%{_libdir}/*.la
Peter Hutterer 01bc890
Peter Hutterer 01bc890
%post -p /sbin/ldconfig
Peter Hutterer 01bc890
%postun -p /sbin/ldconfig
Peter Hutterer 01bc890
Peter Hutterer 01bc890
%files
Peter Hutterer 01bc890
%doc COPYING
Peter Hutterer 01bc890
%{_bindir}/evemu-describe
Peter Hutterer 01bc890
%{_bindir}/evemu-device
Peter Hutterer 01bc890
%{_bindir}/evemu-play
Peter Hutterer 01bc890
%{_bindir}/evemu-event
Peter Hutterer 01bc890
%{_bindir}/evemu-record
Peter Hutterer 01bc890
%{_libdir}/libevemu.so.*
Peter Hutterer 01bc890
%{_mandir}/man1/evemu-*
Peter Hutterer 01bc890
Peter Hutterer 01bc890
%files devel
Peter Hutterer 01bc890
%doc COPYING
Peter Hutterer 01bc890
%{_includedir}/evemu.h
Peter Hutterer 01bc890
%{_libdir}/libevemu.so
Peter Hutterer 01bc890
%{_libdir}/pkgconfig/evemu.pc
Peter Hutterer 01bc890
%dir %{python_sitelib}/evemu/
Peter Hutterer 01bc890
%{python_sitelib}/evemu/*
Peter Hutterer 01bc890
Peter Hutterer 01bc890
%changelog
Benjamin Tissoires 9c86f21
* Wed Jul 24 2013 Benjamin Tissoires <benjamin.tissoires@redhat.com> 1.1.0-4.20130724git304eb65f
Benjamin Tissoires 9c86f21
- Update to current git, record the resolution and bump the file format to 1.2
Benjamin Tissoires 9c86f21
Peter Hutterer 1037729
* Wed Jul 10 2013 Peter Hutterer <peter.hutterer@redhat.com> - 1.1.0-3.20130708gitf2eb0f2cd
Peter Hutterer 1037729
- disable silent rules
Peter Hutterer 1037729
Peter Hutterer 12ae138
* Mon Jul 08 2013 Peter Hutterer <peter.hutterer@redhat.com> - 1.1.0-2.20130708gitf2eb0f2cd
Peter Hutterer 12ae138
- Update to current git, avoids printing unused bits
Peter Hutterer 12ae138
Peter Hutterer 6b0feba
* Thu May 23 2013 Peter Hutterer <peter.hutterer@redhat.com>
Peter Hutterer 6b0feba
- Drop unused patch
Peter Hutterer 6b0feba
Benjamin Tissoires 4fd6956
* Fri May 03 2013 Benjamin Tissoires <benjamin.tissoires@redhat.com> 1.1.0-1
Benjamin Tissoires 4fd6956
- Update to version 1.1.0, hosted now on freedesktop
Benjamin Tissoires 4fd6956
Peter Hutterer 9264f1b
* Thu Jan 31 2013 Peter Hutterer <peter.hutterer@redhat.com> 1.0.10-3
Peter Hutterer 9264f1b
- fclose output only once
Peter Hutterer 9264f1b
Peter Hutterer fd6668a
* Tue Jan 08 2013 Peter Hutterer <peter.hutterer@redhat.com> 1.0.10-2
Peter Hutterer fd6668a
- Test for device grab in evemu-record
Peter Hutterer fd6668a
Peter Hutterer 01bc890
* Fri Jul 06 2012 Peter Hutterer <peter.hutterer@redhat.com> 1.0.10-1
Peter Hutterer 01bc890
- Update to version 1.0.10, rename. upstream changed name to "evemu" with
Peter Hutterer 01bc890
  this version
Peter Hutterer 01bc890
Peter Hutterer 01bc890
* Thu Feb 09 2012 Peter Hutterer <peter.hutterer@redhat.com> 1.0.8-2
Peter Hutterer 01bc890
- autoreconf --force to stop weird libtool build errors
Peter Hutterer 01bc890
Peter Hutterer 01bc890
* Tue Feb 07 2012 Peter Hutterer <peter.hutterer@redhat.com> 1.0.8-1
Peter Hutterer 01bc890
- Initial package