Blame SPECS/evemu.spec

40f7cc
%if 0%{?rhel} && 0%{?rhel} < 8
40f7cc
%bcond_without legacy_python
40f7cc
%endif
40f7cc
40f7cc
#global gitdate 20150818
40f7cc
#global gitversion eba96a4
40f7cc
40f7cc
Name:           evemu
40f7cc
Version:        2.7.0
40f7cc
Release:        8%{?gitdate:.%{gitdate}git%{gitversion}}%{?dist}
40f7cc
Summary:        Event Device Query and Emulation Program
40f7cc
40f7cc
Group:          Development/Tools
40f7cc
License:        GPLv3+
40f7cc
URL:            http://www.freedesktop.org/wiki/Evemu
40f7cc
40f7cc
%if 0%{?gitdate}
40f7cc
Source0:        %{name}-%{gitdate}.tar.bz2
40f7cc
Source1:        make-git-snapshot.sh
40f7cc
Source2:        commitid
40f7cc
%else
40f7cc
Source0:        http://www.freedesktop.org/software/%{name}/%{name}-%{version}.tar.xz
40f7cc
%endif
40f7cc
40f7cc
BuildRequires:  automake libtool gcc gcc-c++
40f7cc
%if %{with legacy_python}
40f7cc
BuildRequires:  python2-devel
40f7cc
%else
40f7cc
BuildRequires:  python3-devel
40f7cc
%endif
40f7cc
BuildRequires:  xmlto asciidoc
40f7cc
BuildRequires:  libevdev-devel >= 1.3
40f7cc
Requires:       libevdev >= 0.5
40f7cc
Requires:       %{name}-libs = %{version}-%{release}
40f7cc
40f7cc
%description
40f7cc
%{name} is a simple utility to capture the event stream from input devices
40f7cc
and replay that stream on a virtual input device.
40f7cc
40f7cc
%package libs
40f7cc
Summary:        Event Device Query and Emulation Program Library
40f7cc
License:        LGPLv3+
40f7cc
Conflicts:      evemu < 2.7.0-8
40f7cc
40f7cc
%description libs
40f7cc
%{name} base library, used by the evemu tools.
40f7cc
40f7cc
%package devel
40f7cc
Summary:        Event Device Query and Emulation Program Development Package
40f7cc
Requires:       %{name} = %{version}-%{release}
40f7cc
Requires:       pkgconfig
40f7cc
40f7cc
%description devel
40f7cc
%{name} development files.
40f7cc
40f7cc
%prep
40f7cc
%setup -q -n %{name}-%{?gitdate:%{gitdate}}%{!?gitdate:%{version}}
40f7cc
40f7cc
%build
40f7cc
autoreconf -v --install --force || exit 1
40f7cc
%if %{with legacy_python}
40f7cc
export PYTHON=python2
40f7cc
%else
40f7cc
export PYTHON=python3
40f7cc
%endif
40f7cc
%configure --disable-static --disable-silent-rules
40f7cc
make %{?_smp_mflags}
40f7cc
40f7cc
%install
40f7cc
make install DESTDIR=%{buildroot}
40f7cc
40f7cc
# We intentionally don't ship *.la files
40f7cc
rm -f %{buildroot}%{_libdir}/*.la
40f7cc
40f7cc
%ldconfig_scriptlets
40f7cc
40f7cc
%files
40f7cc
%license COPYING
40f7cc
%{_bindir}/evemu-describe
40f7cc
%{_bindir}/evemu-device
40f7cc
%{_bindir}/evemu-play
40f7cc
%{_bindir}/evemu-event
40f7cc
%{_bindir}/evemu-record
40f7cc
%{_mandir}/man1/evemu-*
40f7cc
40f7cc
%files libs
40f7cc
%{_libdir}/libevemu.so.*
40f7cc
40f7cc
%files devel
40f7cc
%{_includedir}/evemu.h
40f7cc
%{_libdir}/libevemu.so
40f7cc
%{_libdir}/pkgconfig/evemu.pc
40f7cc
%if %{with legacy_python}
40f7cc
%{python2_sitelib}/evemu
40f7cc
%else
40f7cc
%{python3_sitelib}/evemu
40f7cc
%endif
40f7cc
40f7cc
%changelog
40f7cc
* Mon Jul 16 2018 Peter Hutterer <peter.hutterer@redhat.com> 2.7.0-8
40f7cc
- Split the lib into its own subpackage, it's LGPLv3+
40f7cc
- remove utouch-evemu Obsoletes line, it's been over 5 years
40f7cc
40f7cc
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0-7
40f7cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
40f7cc
40f7cc
* Tue Jun 19 2018 Miro HronĨok <mhroncok@redhat.com> - 2.7.0-6
40f7cc
- Rebuilt for Python 3.7
40f7cc
40f7cc
* Fri Mar 30 2018 Carl George <carl@george.computer> - 2.7.0-5
40f7cc
- Build with python3 on Fedora
40f7cc
- Fix license handling
40f7cc
- Use %%ldconfig_scriptlets macro
40f7cc
40f7cc
* Thu Mar 08 2018 Peter Hutterer <peter.hutterer@redhat.com> 2.7.0-4
40f7cc
- Add BuildRequires for gcc-c++, needed for a test build
40f7cc
40f7cc
* Mon Feb 19 2018 Peter Hutterer <peter.hutterer@redhat.com> 2.7.0-3
40f7cc
- Add BuildRequires for gcc
40f7cc
40f7cc
* Tue Feb 06 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.7.0-2
40f7cc
- Update Python 2 dependency declarations to new packaging standards
40f7cc
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
40f7cc
40f7cc
* Mon Sep 25 2017 Benjamin Tissoires <benjamin.tissoires@redhat.com> 2.7.0-1
40f7cc
- Evemu 2.7.0
40f7cc
40f7cc
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-3
40f7cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
40f7cc
40f7cc
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-2
40f7cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
40f7cc
40f7cc
* Wed May 03 2017 Peter Hutterer <peter.hutterer@redhat.com> 2.6.0-1
40f7cc
- evemu 2.6.0
40f7cc
40f7cc
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-2
40f7cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
40f7cc
40f7cc
* Fri Sep 16 2016 Benjamin Tissoires <benjamin.tissoires@redhat.com> 2.5.0-1
40f7cc
- Evemu v2.5.0
40f7cc
40f7cc
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-2
40f7cc
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
40f7cc
40f7cc
* Mon Apr 04 2016 Benjamin Tissoires <benjamin.tissoires@redhat.com> 2.4.0-1
40f7cc
- Evemu v2.4.0
40f7cc
40f7cc
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-2
40f7cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
40f7cc
40f7cc
* Wed Oct 14 2015 Benjamin Tissoires <benjamin.tissoires@redhat.com> 2.3.1-1
40f7cc
- Evemu v2.3.1
40f7cc
40f7cc
* Tue Aug 18 2015 Benjamin Tissoires <benjamin.tissoires@redhat.com> 2.2.0-2.20150818giteba96a4
40f7cc
- git snapshot to fix rhbz #1251015
40f7cc
40f7cc
* Tue Aug 04 2015 Benjamin Tissoires <benjamin.tissoires@redhat.com> 2.2.0-1
40f7cc
- Evemu v2.2.0
40f7cc
40f7cc
* Wed Jul 22 2015 Benjamin Tissoires <benjamin.tissoires@redhat.com> 2.1.0-4.20150722git79b29f0
40f7cc
- Update to current git master: add dmi info and EV_SW and EV_LED states
40f7cc
40f7cc
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-3
40f7cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
40f7cc
40f7cc
* Thu Jun 11 2015 Benjamin Tissoires <benjamin.tissoires@redhat.com> 2.1.0-2
40f7cc
- Apply 2 upstream patches: handle holes in the input node list,
40f7cc
  add uname to the header comment
40f7cc
40f7cc
* Wed Nov 12 2014 Peter Hutterer <peter.hutterer@redhat.com> 2.1.0-1
40f7cc
- Update to version 2.1.0
40f7cc
40f7cc
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-2
40f7cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
40f7cc
40f7cc
* Thu Jun 19 2014 Benjamin Tissoires <benjamin.tissoires@redhat.com> 2.0.0-1
40f7cc
- Update to version 2.0.0
40f7cc
40f7cc
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.99.0-4.20140324gitaf60032
40f7cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
40f7cc
40f7cc
* Sun Mar 23 2014 Peter Hutterer <peter.hutterer@redhat.com> - 1.99.0-3.20140324gitaf60032
40f7cc
- Update to current git, stray debugging output lead to invalid traces
40f7cc
40f7cc
* Mon Feb 10 2014 Peter Hutterer <peter.hutterer@redhat.com> - 1.99.0-2.20131213gitb8f3f57
40f7cc
- Rebuild for libevdev soname bump
40f7cc
40f7cc
* Fri Dec 13 2013 Benjamin Tissoires <benjamin.tissoires@redhat.com> 1.99.0-1.20131213gitb8f3f57
40f7cc
- Update to current git, before 2.0 is released
40f7cc
- fixes #1037056 (evemu FTBFS if "-Werror=format-security" flag is used)
40f7cc
- use libevdev backend (libevdev >= 0.5 is required)
40f7cc
40f7cc
* Thu Nov 21 2013 Benjamin Tissoires <benjamin.tissoires@redhat.com> 1.2.0-0
40f7cc
- Update to version 1.2.0
40f7cc
40f7cc
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-5.20130724git304eb65f
40f7cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
40f7cc
40f7cc
* Wed Jul 24 2013 Benjamin Tissoires <benjamin.tissoires@redhat.com> 1.1.0-4.20130724git304eb65f
40f7cc
- Update to current git, record the resolution and bump the file format to 1.2
40f7cc
40f7cc
* Wed Jul 10 2013 Peter Hutterer <peter.hutterer@redhat.com> - 1.1.0-3.20130708gitf2eb0f2cd
40f7cc
- disable silent rules
40f7cc
40f7cc
* Mon Jul 08 2013 Peter Hutterer <peter.hutterer@redhat.com> - 1.1.0-2.20130708gitf2eb0f2cd
40f7cc
- Update to current git, avoids printing unused bits
40f7cc
40f7cc
* Thu May 23 2013 Peter Hutterer <peter.hutterer@redhat.com>
40f7cc
- Drop unused patch
40f7cc
40f7cc
* Fri May 03 2013 Benjamin Tissoires <benjamin.tissoires@redhat.com> 1.1.0-1
40f7cc
- Update to version 1.1.0, hosted now on freedesktop
40f7cc
40f7cc
* Thu Jan 31 2013 Peter Hutterer <peter.hutterer@redhat.com> 1.0.10-3
40f7cc
- fclose output only once
40f7cc
40f7cc
* Tue Jan 08 2013 Peter Hutterer <peter.hutterer@redhat.com> 1.0.10-2
40f7cc
- Test for device grab in evemu-record
40f7cc
40f7cc
* Fri Jul 06 2012 Peter Hutterer <peter.hutterer@redhat.com> 1.0.10-1
40f7cc
- Update to version 1.0.10, rename. upstream changed name to "evemu" with
40f7cc
  this version
40f7cc
40f7cc
* Thu Feb 09 2012 Peter Hutterer <peter.hutterer@redhat.com> 1.0.8-2
40f7cc
- autoreconf --force to stop weird libtool build errors
40f7cc
40f7cc
* Tue Feb 07 2012 Peter Hutterer <peter.hutterer@redhat.com> 1.0.8-1
40f7cc
- Initial package