5e7d5d8
%if 0%{?rhel} && 0%{?rhel} < 8
5e7d5d8
%bcond_without legacy_python
5e7d5d8
%endif
5e7d5d8
Benjamin Tissoires 9d0c658
#global gitdate 20150818
Benjamin Tissoires 9d0c658
#global gitversion eba96a4
Peter Hutterer 12ae138
Peter Hutterer 01bc890
Name:           evemu
Benjamin Tissoires bfb1324
Version:        2.7.0
f1b4770
Release:        20%{?gitdate:.%{gitdate}git%{gitversion}}%{?dist}
Peter Hutterer 01bc890
Summary:        Event Device Query and Emulation Program
Peter Hutterer 01bc890
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 04fb668
Source0:        http://www.freedesktop.org/software/%{name}/%{name}-%{version}.tar.xz
Peter Hutterer 12ae138
%endif
Peter Hutterer 01bc890
Peter Hutterer 0e72f83
BuildRequires:  automake libtool gcc gcc-c++ make
5e7d5d8
%if %{with legacy_python}
Peter Hutterer 01bc890
BuildRequires:  python2-devel
5e7d5d8
%else
5e7d5d8
BuildRequires:  python3-devel
5e7d5d8
%endif
Peter Hutterer 01bc890
BuildRequires:  xmlto asciidoc
Peter Hutterer 77df747
BuildRequires:  libevdev-devel >= 1.3
Benjamin Tissoires b8afd1c
Requires:       libevdev >= 0.5
Peter Hutterer f7645c0
Requires:       %{name}-libs = %{version}-%{release}
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 f7645c0
%package libs
Peter Hutterer f7645c0
Summary:        Event Device Query and Emulation Program Library
Peter Hutterer f7645c0
License:        LGPLv3+
Peter Hutterer f7645c0
Conflicts:      evemu < 2.7.0-8
Peter Hutterer f7645c0
Peter Hutterer f7645c0
%description libs
Peter Hutterer f7645c0
%{name} base library, used by the evemu tools.
Peter Hutterer f7645c0
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
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
5e7d5d8
%if %{with legacy_python}
5e7d5d8
export PYTHON=python2
5e7d5d8
%else
5e7d5d8
export PYTHON=python3
5e7d5d8
%endif
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
de4204b
%ldconfig_scriptlets
Peter Hutterer 01bc890
Peter Hutterer 01bc890
%files
3050bb3
%license 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
%{_mandir}/man1/evemu-*
Peter Hutterer 01bc890
Peter Hutterer f7645c0
%files libs
Peter Hutterer f7645c0
%{_libdir}/libevemu.so.*
Peter Hutterer f7645c0
Peter Hutterer 01bc890
%files devel
Peter Hutterer 01bc890
%{_includedir}/evemu.h
Peter Hutterer 01bc890
%{_libdir}/libevemu.so
Peter Hutterer 01bc890
%{_libdir}/pkgconfig/evemu.pc
5e7d5d8
%if %{with legacy_python}
5e7d5d8
%{python2_sitelib}/evemu
5e7d5d8
%else
5e7d5d8
%{python3_sitelib}/evemu
5e7d5d8
%endif
Peter Hutterer 01bc890
Peter Hutterer 01bc890
%changelog
f1b4770
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0-20
f1b4770
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
f1b4770
62dedd2
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0-19
62dedd2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
62dedd2
74d18c3
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.7.0-18
74d18c3
- Rebuilt for Python 3.10
74d18c3
a13468e
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0-17
a13468e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
a13468e
Peter Hutterer 0e72f83
* Tue Dec 01 2020 Peter Hutterer <peter.hutterer@redhat.com> 2.7.0-16
Peter Hutterer 0e72f83
- Add make to BuildRequires
Peter Hutterer 0e72f83
ec54e5a
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0-15
ec54e5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
ec54e5a
244655b
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.7.0-14
244655b
- Rebuilt for Python 3.9
244655b
2f9a59d
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0-13
2f9a59d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2f9a59d
7d81903
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.7.0-12
7d81903
- Rebuilt for Python 3.8.0rc1 (#1748018)
7d81903
f01669b
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.7.0-11
f01669b
- Rebuilt for Python 3.8
f01669b
ebc5ddf
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0-10
ebc5ddf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
ebc5ddf
9d9287a
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0-9
9d9287a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
9d9287a
Peter Hutterer f7645c0
* Mon Jul 16 2018 Peter Hutterer <peter.hutterer@redhat.com> 2.7.0-8
Peter Hutterer f7645c0
- Split the lib into its own subpackage, it's LGPLv3+
Peter Hutterer f7645c0
- remove utouch-evemu Obsoletes line, it's been over 5 years
Peter Hutterer f7645c0
1075ef6
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0-7
1075ef6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1075ef6
a2ad534
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.7.0-6
a2ad534
- Rebuilt for Python 3.7
a2ad534
5e7d5d8
* Fri Mar 30 2018 Carl George <carl@george.computer> - 2.7.0-5
5e7d5d8
- Build with python3 on Fedora
3050bb3
- Fix license handling
de4204b
- Use %%ldconfig_scriptlets macro
5e7d5d8
Peter Hutterer 26b09b8
* Thu Mar 08 2018 Peter Hutterer <peter.hutterer@redhat.com> 2.7.0-4
Peter Hutterer 26b09b8
- Add BuildRequires for gcc-c++, needed for a test build
Peter Hutterer 26b09b8
Peter Hutterer 3f6fb40
* Mon Feb 19 2018 Peter Hutterer <peter.hutterer@redhat.com> 2.7.0-3
Peter Hutterer 3f6fb40
- Add BuildRequires for gcc
Peter Hutterer 3f6fb40
91bdbf7
* Tue Feb 06 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.7.0-2
91bdbf7
- Update Python 2 dependency declarations to new packaging standards
91bdbf7
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
91bdbf7
Benjamin Tissoires bfb1324
* Mon Sep 25 2017 Benjamin Tissoires <benjamin.tissoires@redhat.com> 2.7.0-1
Benjamin Tissoires bfb1324
- Evemu 2.7.0
Benjamin Tissoires bfb1324
360c8a7
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-3
360c8a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
360c8a7
bb6f2db
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-2
bb6f2db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
bb6f2db
Peter Hutterer 1cd19c4
* Wed May 03 2017 Peter Hutterer <peter.hutterer@redhat.com> 2.6.0-1
Peter Hutterer 1cd19c4
- evemu 2.6.0
Peter Hutterer 1cd19c4
2b589a0
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-2
2b589a0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2b589a0
Benjamin Tissoires a3459b8
* Fri Sep 16 2016 Benjamin Tissoires <benjamin.tissoires@redhat.com> 2.5.0-1
Benjamin Tissoires a3459b8
- Evemu v2.5.0
Benjamin Tissoires a3459b8
ba9dc14
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-2
ba9dc14
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
ba9dc14
Benjamin Tissoires 785260d
* Mon Apr 04 2016 Benjamin Tissoires <benjamin.tissoires@redhat.com> 2.4.0-1
Benjamin Tissoires 785260d
- Evemu v2.4.0
Benjamin Tissoires 785260d
f7ce783
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-2
f7ce783
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f7ce783
Benjamin Tissoires 9d0c658
* Wed Oct 14 2015 Benjamin Tissoires <benjamin.tissoires@redhat.com> 2.3.1-1
Benjamin Tissoires 9d0c658
- Evemu v2.3.1
Benjamin Tissoires 9d0c658
Benjamin Tissoires e8f9da6
* Tue Aug 18 2015 Benjamin Tissoires <benjamin.tissoires@redhat.com> 2.2.0-2.20150818giteba96a4
Benjamin Tissoires e8f9da6
- git snapshot to fix rhbz #1251015
Benjamin Tissoires e8f9da6
Benjamin Tissoires f8f006b
* Tue Aug 04 2015 Benjamin Tissoires <benjamin.tissoires@redhat.com> 2.2.0-1
Benjamin Tissoires f8f006b
- Evemu v2.2.0
Benjamin Tissoires f8f006b
Benjamin Tissoires 66710b7
* Wed Jul 22 2015 Benjamin Tissoires <benjamin.tissoires@redhat.com> 2.1.0-4.20150722git79b29f0
Benjamin Tissoires 66710b7
- Update to current git master: add dmi info and EV_SW and EV_LED states
Benjamin Tissoires 66710b7
a7f0715
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-3
a7f0715
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
a7f0715
Benjamin Tissoires ad376fa
* Thu Jun 11 2015 Benjamin Tissoires <benjamin.tissoires@redhat.com> 2.1.0-2
Benjamin Tissoires ad376fa
- Apply 2 upstream patches: handle holes in the input node list,
Benjamin Tissoires ad376fa
  add uname to the header comment
Benjamin Tissoires ad376fa
Peter Hutterer 77df747
* Wed Nov 12 2014 Peter Hutterer <peter.hutterer@redhat.com> 2.1.0-1
Peter Hutterer 77df747
- Update to version 2.1.0
Peter Hutterer 77df747
559413c
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-2
559413c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
559413c
Benjamin Tissoires 6284712
* Thu Jun 19 2014 Benjamin Tissoires <benjamin.tissoires@redhat.com> 2.0.0-1
Benjamin Tissoires 6284712
- Update to version 2.0.0
Benjamin Tissoires 6284712
64e0234
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.99.0-4.20140324gitaf60032
64e0234
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
64e0234
Peter Hutterer 49fa04e
* Sun Mar 23 2014 Peter Hutterer <peter.hutterer@redhat.com> - 1.99.0-3.20140324gitaf60032
Peter Hutterer 49fa04e
- Update to current git, stray debugging output lead to invalid traces
Peter Hutterer 49fa04e
Peter Hutterer 4147999
* Mon Feb 10 2014 Peter Hutterer <peter.hutterer@redhat.com> - 1.99.0-2.20131213gitb8f3f57
Peter Hutterer 4147999
- Rebuild for libevdev soname bump
Peter Hutterer 4147999
Benjamin Tissoires b8afd1c
* Fri Dec 13 2013 Benjamin Tissoires <benjamin.tissoires@redhat.com> 1.99.0-1.20131213gitb8f3f57
Benjamin Tissoires b8afd1c
- Update to current git, before 2.0 is released
Benjamin Tissoires b8afd1c
- fixes #1037056 (evemu FTBFS if "-Werror=format-security" flag is used)
Benjamin Tissoires b8afd1c
- use libevdev backend (libevdev >= 0.5 is required)
Benjamin Tissoires b8afd1c
Benjamin Tissoires 04fb668
* Thu Nov 21 2013 Benjamin Tissoires <benjamin.tissoires@redhat.com> 1.2.0-0
Benjamin Tissoires 04fb668
- Update to version 1.2.0
Benjamin Tissoires 04fb668
8b391c8
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-5.20130724git304eb65f
8b391c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
8b391c8
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