Blame SPECS/rshim.spec

115f36
# SPDX-License-Identifier: GPL-2.0-only
115f36
# Copyright (C) 2019 Mellanox Technologies. All Rights Reserved.
115f36
#
115f36
115f36
Name: rshim
115f36
Version: 2.0.5
115f36
Release: 2%{?dist}
115f36
Summary: User-space driver for Mellanox BlueField SoC
115f36
115f36
License: GPLv2
115f36
115f36
URL: https://github.com/mellanox/rshim-user-space
115f36
Source0: https://github.com/Mellanox/rshim-user-space/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
115f36
Patch0: rshim-sysconfig.patch
115f36
115f36
BuildRequires: gcc, autoconf, automake, make
115f36
BuildRequires: pkgconfig(libpci), pkgconfig(libusb-1.0), pkgconfig(fuse)
115f36
BuildRequires: systemd
115f36
BuildRequires: systemd-rpm-macros
115f36
115f36
Requires: kmod(cuse.ko)
115f36
Suggests: kernel-modules-extra
115f36
115f36
%description
115f36
This is the user-space driver to access the BlueField SoC via the rshim
115f36
interface. It provides ways to push boot stream, debug the target or login
115f36
via the virtual console or network interface.
115f36
115f36
%prep
115f36
%autosetup -p1 -n %{name}-%{version}
115f36
115f36
%build
115f36
./bootstrap.sh
115f36
%configure
115f36
%make_build
115f36
115f36
%install
115f36
%make_install
115f36
115f36
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
115f36
cat > $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/rshim <
115f36
# Command-line options for rshim
115f36
OPTIONS=""
115f36
EOF
115f36
115f36
%post
115f36
%systemd_post rshim.service
115f36
115f36
%preun
115f36
%systemd_preun rshim.service
115f36
115f36
%postun
115f36
%systemd_postun_with_restart rshim.service
115f36
115f36
%files
115f36
%license LICENSE
115f36
%doc README.md
115f36
%config(noreplace) %{_sysconfdir}/rshim.conf
115f36
%config(noreplace) %{_sysconfdir}/sysconfig/rshim
115f36
%{_unitdir}/rshim.service
115f36
%{_sbindir}/rshim
115f36
%{_sbindir}/bfb-install
115f36
%{_mandir}/man8/rshim.8.gz
115f36
%{_mandir}/man8/bfb-install.8.gz
115f36
115f36
%changelog
115f36
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2.0.5-2
115f36
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
115f36
  Related: rhbz#1991688
115f36
115f36
* Tue May 18 2021 Dean Nelson <dnelson@redhat.com> - 2.0.5-1
115f36
- Update user-space rshim driver source to version 2.0.5
115f36
- Modify rshim.spec accordingly
115f36
- Switch to %%autosetup to handle Patch0 and any future patches
115f36
- Resolves: rhbz#1858577
115f36
115f36
* Tue Apr 20 2021 Jeff Bastian <jbastian@redhat.com> - 2.0.4-6
115f36
- Add sysconfig/rshim file and update rshim.service to source it
115f36
- Resolves: rhbz#1960060
115f36
115f36
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.0.4-5
115f36
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
115f36
115f36
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-4
115f36
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
115f36
115f36
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-3
115f36
- Second attempt - Rebuilt for
115f36
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
115f36
115f36
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-2
115f36
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
115f36
115f36
* Tue Apr 21 2020 Liming Sun <lsun@mellanox.com> - 2.0.4-1
115f36
- Update .spec file according to review comments
115f36
- Fix the 'KillMode' in rshim.service
115f36
- Support process termination by SIGTERM
115f36
- Fix some compiling warnings and configure issue for FreeBSD
115f36
- Fix a read()/write() issue in rshim_pcie.c caused by optimization
115f36
115f36
* Tue Apr 14 2020 Liming Sun <lsun@mellanox.com> - 2.0.3-1
115f36
- Enable pci device during probing
115f36
- Map the pci resource0 file instead of /dev/mem
115f36
- Add copyright header in bootstrap.sh
115f36
- Add 'Requires' tag check in the rpm .spec for kernel-modules-extra
115f36
- Fix the 'rshim --version' output
115f36
115f36
* Thu Apr 09 2020 Liming Sun <lsun@mellanox.com> - 2.0.2-1
115f36
- Remove unnecessary dependency in .spec and use make_build
115f36
- Add package build for debian/ubuntu
115f36
- Fix some format in the man page
115f36
- Add check for syslog headers
115f36
115f36
* Mon Mar 23 2020 Liming Sun <lsun@mellanox.com> - 2.0.1-1
115f36
- Rename bfrshim to rshim
115f36
- Remove rshim.spec since it's auto-generated from rshim.spec.in
115f36
- Fix warnings reported by coverity
115f36
- Add rhel/rshim.spec.in for fedora
115f36
- Move rshim to sbin and move man page to man8
115f36
115f36
* Fri Mar 13 2020 Liming Sun <lsun@mellanox.com> - 2.0-1
115f36
- Update the spec file according to fedora packaging-guidelines
115f36
115f36
* Mon Dec 16 2019 Liming Sun <lsun@mellanox.com>
115f36
- Initial packaging