140 lines
4.1 KiB
RPMSpec
140 lines
4.1 KiB
RPMSpec
%global udevdir %(pkg-config --variable=udevdir udev)
|
|
|
|
Name: libratbag
|
|
Version: 0.9.902
|
|
Release: 1%{?gitdate:.%{gitdate}git%{gitversion}}%{?dist}
|
|
Summary: Programmable input device library
|
|
License: MIT
|
|
URL: https://github.com/libratbag/libratbag
|
|
Source0: https://github.com/libratbag/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
BuildRequires: git
|
|
BuildRequires: meson pkgconfig
|
|
BuildRequires: libevdev-devel
|
|
BuildRequires: libudev-devel
|
|
BuildRequires: pkgconfig(udev) pkgconfig(glib-2.0)
|
|
BuildRequires: check-devel valgrind
|
|
BuildRequires: systemd
|
|
BuildRequires: python3 python3-devel python3-gobject
|
|
BuildRequires: python3-lxml python3-evdev swig
|
|
|
|
%description
|
|
libratbag is a library that allows to configure programmable
|
|
mice.
|
|
|
|
%package ratbagd
|
|
Summary: DBus daemon to access programmable input devices
|
|
Obsoletes: libratbag < 0.9.900
|
|
|
|
%description ratbagd
|
|
The ratbagd package contains a dbus daemon to access and configure
|
|
programmable input devices, primarily gaming mice.
|
|
|
|
%package -n liblur
|
|
Summary: Logitech Unifying Receiver library
|
|
|
|
%description -n liblur
|
|
The liblur package contains libraries and tools to access and
|
|
configure the Logitech Unifying Receivers. The functionality
|
|
are mainly listing, pairing and un-pairing Logitech devices
|
|
attached to a receiver.
|
|
|
|
%package -n liblur-devel
|
|
Summary: Development files for liblur
|
|
Requires: liblur%{?_isa} = %{version}-%{release}
|
|
|
|
%description -n liblur-devel
|
|
The liblur-devel package contains libraries and header files for
|
|
developing applications that use liblur.
|
|
|
|
%prep
|
|
%autosetup
|
|
|
|
# hack until rhbz#1409661 gets fixed
|
|
%{!?__global_cxxflags: %define __global_cxxflags %{optflags}}
|
|
|
|
%build
|
|
# s390x builds sometimes fails during the tests, let just disable those
|
|
%ifarch s390x
|
|
%meson -Dudev-dir=%{udevdir} -Denable-documentation=false -Denable-tests=false
|
|
%else
|
|
%meson -Dudev-dir=%{udevdir} -Denable-documentation=false
|
|
%endif
|
|
%meson_build
|
|
|
|
%check
|
|
%meson_test
|
|
|
|
%install
|
|
%meson_install
|
|
|
|
|
|
%post
|
|
/sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%post -n liblur -p /sbin/ldconfig
|
|
|
|
%postun -n liblur -p /sbin/ldconfig
|
|
|
|
%files ratbagd
|
|
%license COPYING
|
|
%{_bindir}/ratbagctl
|
|
%{_bindir}/ratbagd
|
|
%dir %{_datadir}/libratbag
|
|
%dir %{_datadir}/libratbag
|
|
%{_datadir}/libratbag/devices/*.device
|
|
%{_datadir}/libratbag/gnome/*.svg
|
|
%{_mandir}/man1/ratbagctl.1*
|
|
%{_mandir}/man8/ratbagd.8*
|
|
%{_datadir}/dbus-1/system.d/org.freedesktop.ratbag1.conf
|
|
%{_datadir}/dbus-1/system-services/org.freedesktop.ratbag1.service
|
|
%{_unitdir}/ratbagd.service
|
|
|
|
%files -n liblur
|
|
%license COPYING
|
|
%{_libdir}/liblur.so.*
|
|
%{_bindir}/lur-command
|
|
%{_mandir}/man1/lur-command.1*
|
|
|
|
%files -n liblur-devel
|
|
%{_includedir}/liblur.h
|
|
%{_libdir}/liblur.so
|
|
%{_libdir}/pkgconfig/liblur.pc
|
|
|
|
%changelog
|
|
* Mon May 21 2018 Peter Hutterer <peter.hutterer@redhat.com> 0.9.902-1
|
|
- libratbag 0.9.902
|
|
|
|
* Fri Mar 23 2018 Peter Hutterer <peter.hutterer@redhat.com> 0.9.901-1
|
|
- libratbag 0.9.901
|
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
* Wed Jun 07 2017 Benjamin Tissoires <benjamin.tissoires@redhat.com> 0.9-2
|
|
- disable tests on s390x because they seem to fail without good reasons
|
|
|
|
* Tue Jun 06 2017 Benjamin Tissoires <benjamin.tissoires@redhat.com> 0.9-1
|
|
- libratbag v0.9
|
|
- new manpage for lur-command
|
|
|
|
* Tue May 09 2017 Benjamin Tissoires <benjamin.tissoires@redhat.com> 0.8-1
|
|
- libratbag v0.8
|
|
|
|
* Tue May 09 2017 Benjamin Tissoires <benjamin.tissoires@redhat.com> 0.7-3
|
|
- add a hack for F24 and F25 to compile
|
|
|
|
* Fri May 05 2017 Benjamin Tissoires <benjamin.tissoires@redhat.com> 0.7-2
|
|
- Remove the generation of the documentation, we don't ship it
|
|
|
|
* Thu May 04 2017 Benjamin Tissoires <benjamin.tissoires@redhat.com> 0.7-1
|
|
- Initial Fedora packaging (rhbz#1309703)
|