Benjamin Tissoires 7b2bd4
%global udevdir %(pkg-config --variable=udevdir udev)
Benjamin Tissoires 7b2bd4
Benjamin Tissoires 7b2bd4
Name:           libratbag
Peter Hutterer 951222
Version:        0.10
Peter Hutterer a2d865
Release:        2%{?gitdate:.%{gitdate}git%{gitversion}}%{?dist}
Benjamin Tissoires 7b2bd4
Summary:        Programmable input device library
Benjamin Tissoires 7b2bd4
License:        MIT
Benjamin Tissoires 7b2bd4
URL:            https://github.com/libratbag/libratbag
Benjamin Tissoires 7b2bd4
Source0:        https://github.com/libratbag/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
Benjamin Tissoires 7b2bd4
Peter Hutterer 700878
BuildRequires:  git gcc gcc-c++
Benjamin Tissoires 7b2bd4
BuildRequires:  meson pkgconfig
Benjamin Tissoires 7b2bd4
BuildRequires:  libevdev-devel
Benjamin Tissoires 7b2bd4
BuildRequires:  libudev-devel
Peter Hutterer 951222
BuildRequires:  pkgconfig(udev) pkgconfig(glib-2.0) pkgconfig(json-glib-1.0)
Peter Hutterer 6de1c5
BuildRequires:  check-devel valgrind
Peter Hutterer 6de1c5
BuildRequires:  systemd
Peter Hutterer 6de1c5
BuildRequires:  python3 python3-devel python3-gobject
Peter Hutterer 6de1c5
BuildRequires:  python3-lxml python3-evdev swig
Peter Hutterer f9e803
BuildRequires:  libunistring-devel
Benjamin Tissoires 7b2bd4
Benjamin Tissoires 7b2bd4
%description
Benjamin Tissoires 7b2bd4
libratbag is a library that allows to configure programmable
Benjamin Tissoires 7b2bd4
mice.
Benjamin Tissoires 7b2bd4
Peter Hutterer 6de1c5
%package        ratbagd
Peter Hutterer 6de1c5
Summary:        DBus daemon to access programmable input devices
Peter Hutterer 6de1c5
Obsoletes:      libratbag < 0.9.900
Peter Hutterer a2d865
Requires:       python3-evdev python3-gobject
Benjamin Tissoires 7b2bd4
Peter Hutterer 6de1c5
%description    ratbagd
Peter Hutterer 6de1c5
The ratbagd package contains a dbus daemon to access and configure
Peter Hutterer 6de1c5
programmable input devices, primarily gaming mice.
Benjamin Tissoires 7b2bd4
Benjamin Tissoires 7b2bd4
%package        -n liblur
Benjamin Tissoires 7b2bd4
Summary:        Logitech Unifying Receiver library
Benjamin Tissoires 7b2bd4
Benjamin Tissoires 7b2bd4
%description    -n liblur
Benjamin Tissoires 7b2bd4
The liblur package contains libraries and tools to access and
Benjamin Tissoires 7b2bd4
configure the Logitech Unifying Receivers. The functionality
Benjamin Tissoires 7b2bd4
are mainly listing, pairing and un-pairing Logitech devices
Benjamin Tissoires 7b2bd4
attached to a receiver.
Benjamin Tissoires 7b2bd4
Benjamin Tissoires 7b2bd4
%package        -n liblur-devel
Benjamin Tissoires 7b2bd4
Summary:        Development files for liblur
Benjamin Tissoires 7b2bd4
Requires:       liblur%{?_isa} = %{version}-%{release}
Benjamin Tissoires 7b2bd4
Benjamin Tissoires 7b2bd4
%description    -n liblur-devel
Benjamin Tissoires 7b2bd4
The liblur-devel package contains libraries and header files for
Benjamin Tissoires 7b2bd4
developing applications that use liblur.
Benjamin Tissoires 7b2bd4
Benjamin Tissoires 7b2bd4
%prep
Peter Hutterer f9e803
%autosetup -S git
Benjamin Tissoires 7b2bd4
Benjamin Tissoires f37358
# hack until rhbz#1409661 gets fixed
Benjamin Tissoires f37358
%{!?__global_cxxflags: %define __global_cxxflags %{optflags}}
Benjamin Tissoires f37358
Benjamin Tissoires 7b2bd4
%build
Benjamin Tissoires 454353
# s390x builds sometimes fails during the tests, let just disable those
Benjamin Tissoires 454353
%ifarch s390x
Peter Hutterer 523b5d
%meson -Dudev-dir=%{udevdir} -Ddocumentation=false -Dtests=false
Benjamin Tissoires 454353
%else
Peter Hutterer 523b5d
%meson -Dudev-dir=%{udevdir} -Ddocumentation=false
Benjamin Tissoires 454353
%endif
Benjamin Tissoires 7b2bd4
%meson_build
Benjamin Tissoires 7b2bd4
Benjamin Tissoires 7b2bd4
%check
Benjamin Tissoires 7b2bd4
%meson_test
Benjamin Tissoires 7b2bd4
Benjamin Tissoires 7b2bd4
%install
Benjamin Tissoires 7b2bd4
%meson_install
Benjamin Tissoires 7b2bd4
Benjamin Tissoires 7b2bd4
344139
%ldconfig_scriptlets -n liblur
Benjamin Tissoires 7b2bd4
Peter Hutterer 6de1c5
%files ratbagd
Benjamin Tissoires 7b2bd4
%license COPYING
Peter Hutterer 6de1c5
%{_bindir}/ratbagctl
Peter Hutterer 6de1c5
%{_bindir}/ratbagd
Benjamin Tissoires 7b2bd4
%dir %{_datadir}/libratbag
Peter Hutterer 6de1c5
%dir %{_datadir}/libratbag
Peter Hutterer f9e803
%{_datadir}/libratbag/*.device
Peter Hutterer 6de1c5
%{_mandir}/man1/ratbagctl.1*
Peter Hutterer 6de1c5
%{_mandir}/man8/ratbagd.8*
Peter Hutterer 6de1c5
%{_datadir}/dbus-1/system.d/org.freedesktop.ratbag1.conf
Peter Hutterer 6de1c5
%{_datadir}/dbus-1/system-services/org.freedesktop.ratbag1.service
Peter Hutterer 6de1c5
%{_unitdir}/ratbagd.service
Benjamin Tissoires 7b2bd4
Benjamin Tissoires 7b2bd4
%files -n liblur
Benjamin Tissoires 7b2bd4
%license COPYING
Benjamin Tissoires 7b2bd4
%{_libdir}/liblur.so.*
Benjamin Tissoires 7b2bd4
%{_bindir}/lur-command
Peter Hutterer 6de1c5
%{_mandir}/man1/lur-command.1*
Benjamin Tissoires 7b2bd4
Benjamin Tissoires 7b2bd4
%files -n liblur-devel
Benjamin Tissoires 7b2bd4
%{_includedir}/liblur.h
Benjamin Tissoires 7b2bd4
%{_libdir}/liblur.so
Benjamin Tissoires 7b2bd4
%{_libdir}/pkgconfig/liblur.pc
Benjamin Tissoires 7b2bd4
Benjamin Tissoires 7b2bd4
%changelog
Peter Hutterer a2d865
* Mon Sep 16 2019 Peter Hutterer <peter.hutterer@redhat.com> 0.10-2
Peter Hutterer a2d865
- Add missing Requires for ratbagctl
Peter Hutterer a2d865
Peter Hutterer 951222
* Fri Aug 02 2019 Peter Hutterer <peter.hutterer@redhat.com> 0.10-1
Peter Hutterer 951222
- libratbag 0.10
Peter Hutterer 951222
Peter Hutterer f9e803
* Fri Jul 26 2019 Peter Hutterer <peter.hutterer@redhat.com> 0.9.906-1
Peter Hutterer f9e803
- libratbag 0.9.906
Peter Hutterer f9e803
562842
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.905-4
562842
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
562842
Peter Hutterer 82dd55
* Wed Jul 17 2019 Peter Hutterer <peter.hutterer@redhat.com> 0.9.905-3
Peter Hutterer 82dd55
- Use python3-embed as dependency where available. Fixes FTBFS with python
Peter Hutterer 82dd55
  3.8 (#1718290)
Peter Hutterer 82dd55
Peter Hutterer 523b5d
* Thu Feb 28 2019 Peter Hutterer <peter.hutterer@redhat.com> 0.9.905-2
Peter Hutterer 523b5d
- Fix meson options
Peter Hutterer 523b5d
Peter Hutterer 63f046
* Thu Feb 28 2019 Peter Hutterer <peter.hutterer@redhat.com> 0.9.905-1
Peter Hutterer 63f046
- libratbag 0.9.905
Peter Hutterer 63f046
607610
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.904-2
607610
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
607610
Peter Hutterer d19f4d
* Thu Jan 24 2019 Peter Hutterer <peter.hutterer@redhat.com> 0.9.904-1
Peter Hutterer d19f4d
- libratbag 0.9.904
Peter Hutterer d19f4d
Peter Hutterer fe1a7e
* Wed Sep 05 2018 Peter Hutterer <peter.hutterer@redhat.com> 0.9.903-1
Peter Hutterer fe1a7e
- libratbag 0.9.903
Peter Hutterer fe1a7e
Peter Hutterer 700878
* Fri Jul 20 2018 Peter Hutterer <peter.hutterer@redhat.com> 0.9.902-4
Peter Hutterer 700878
- Add gcc to BuildRequires (#1604654)
Peter Hutterer 700878
- Change to use the correct -Ddocumentation=false
Peter Hutterer 700878
c01b72
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.902-3
c01b72
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
c01b72
2efebb
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.9.902-2
2efebb
- Rebuilt for Python 3.7
2efebb
Peter Hutterer 5619f9
* Mon May 21 2018 Peter Hutterer <peter.hutterer@redhat.com> 0.9.902-1
Peter Hutterer 5619f9
- libratbag 0.9.902
Peter Hutterer 5619f9
Peter Hutterer 6de1c5
* Fri Mar 23 2018 Peter Hutterer <peter.hutterer@redhat.com> 0.9.901-1
Peter Hutterer 6de1c5
- libratbag 0.9.901
Peter Hutterer 6de1c5
307573
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-5
307573
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
307573
7ae966
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-4
7ae966
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
7ae966
f375cf
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-3
f375cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f375cf
Benjamin Tissoires 454353
* Wed Jun 07 2017 Benjamin Tissoires <benjamin.tissoires@redhat.com> 0.9-2
Benjamin Tissoires 454353
- disable tests on s390x because they seem to fail without good reasons
Benjamin Tissoires 454353
Benjamin Tissoires b592a5
* Tue Jun 06 2017 Benjamin Tissoires <benjamin.tissoires@redhat.com> 0.9-1
Benjamin Tissoires b592a5
- libratbag v0.9
Benjamin Tissoires b592a5
- new manpage for lur-command
Benjamin Tissoires b592a5
Benjamin Tissoires cedab1
* Tue May 09 2017 Benjamin Tissoires <benjamin.tissoires@redhat.com> 0.8-1
Benjamin Tissoires cedab1
- libratbag v0.8
Benjamin Tissoires cedab1
Benjamin Tissoires f37358
* Tue May 09 2017 Benjamin Tissoires <benjamin.tissoires@redhat.com> 0.7-3
Benjamin Tissoires f37358
- add a hack for F24 and F25 to compile
Benjamin Tissoires f37358
Benjamin Tissoires 7b2bd4
* Fri May 05 2017 Benjamin Tissoires <benjamin.tissoires@redhat.com> 0.7-2
Benjamin Tissoires 7b2bd4
- Remove the generation of the documentation, we don't ship it
Benjamin Tissoires 7b2bd4
Benjamin Tissoires 7b2bd4
* Thu May 04 2017 Benjamin Tissoires <benjamin.tissoires@redhat.com> 0.7-1
Benjamin Tissoires 7b2bd4
- Initial Fedora packaging (rhbz#1309703)