Blame SPECS/rshim.spec

57486c
# SPDX-License-Identifier: GPL-2.0-only
57486c
# Copyright (C) 2019 Mellanox Technologies. All Rights Reserved.
57486c
#
57486c
57486c
Name: rshim
959e26
Version: 2.0.5
959e26
Release: 2%{?dist}
57486c
Summary: User-space driver for Mellanox BlueField SoC
57486c
57486c
License: GPLv2
57486c
57486c
URL: https://github.com/mellanox/rshim-user-space
57486c
Source0: https://github.com/Mellanox/rshim-user-space/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
959e26
Patch0: rshim-sysconfig.patch
57486c
57486c
BuildRequires: gcc, autoconf, automake, make
57486c
BuildRequires: pkgconfig(libpci), pkgconfig(libusb-1.0), pkgconfig(fuse)
57486c
BuildRequires: systemd
57486c
BuildRequires: systemd-rpm-macros
57486c
57486c
Requires: kmod(cuse.ko)
57486c
Suggests: kernel-modules-extra
57486c
57486c
%description
57486c
This is the user-space driver to access the BlueField SoC via the rshim
57486c
interface. It provides ways to push boot stream, debug the target or login
57486c
via the virtual console or network interface.
57486c
57486c
%prep
959e26
%autosetup -p1 -n %{name}-%{version}
57486c
57486c
%build
57486c
./bootstrap.sh
57486c
%configure
57486c
%make_build
57486c
57486c
%install
57486c
%make_install
57486c
959e26
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
959e26
cat > $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/rshim <
959e26
# Command-line options for rshim
959e26
OPTIONS=""
959e26
EOF
959e26
57486c
%post
57486c
%systemd_post rshim.service
57486c
57486c
%preun
57486c
%systemd_preun rshim.service
57486c
57486c
%postun
57486c
%systemd_postun_with_restart rshim.service
57486c
57486c
%files
57486c
%license LICENSE
57486c
%doc README.md
959e26
%config(noreplace) %{_sysconfdir}/rshim.conf
959e26
%config(noreplace) %{_sysconfdir}/sysconfig/rshim
57486c
%{_unitdir}/rshim.service
959e26
%{_sbindir}/rshim
959e26
%{_sbindir}/bfb-install
57486c
%{_mandir}/man8/rshim.8.gz
959e26
%{_mandir}/man8/bfb-install.8.gz
57486c
57486c
%changelog
959e26
* Tue Apr 20 2021 Dean Nelson <dnelson@redhat.com> - 2.0.5-2
959e26
- Add sysconfig/rshim file and update rshim.service to source it.
959e26
- jbastian made the first cut of this patch, which needed to be
959e26
  modified due to the update to 2.0.5. And I chose to go with
959e26
  %%autosetup to handle Patch0, instead of sticking with %%setup.
959e26
- Resolves: rhbz#1946349
959e26
959e26
* Tue Apr 20 2021 Dean Nelson <dnelson@redhat.com> - 2.0.5-1
959e26
- Update user-space rshim driver source to version 2.0.5.
959e26
- Modify rshim.spec accordingly.
959e26
- Resolves: rhbz#1950425
959e26
57486c
* Tue Jan 26 2021 Dean Nelson <dnelson@redhat.com> - 2.0.4-4
57486c
- Expose gating.yaml file in order to enable manual CI gating for rshim
57486c
  in RHEL-8.4, by bumping release and doing a Brew build.
57486c
- Partially resolves: rhbz#1912248
57486c
57486c
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-3
57486c
- Second attempt - Rebuilt for
57486c
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
57486c
57486c
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-2
57486c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
57486c
57486c
* Tue Apr 21 2020 Liming Sun <lsun@mellanox.com> - 2.0.4-1
57486c
- Update .spec file according to review comments
57486c
- Fix the 'KillMode' in rshim.service
57486c
- Support process termination by SIGTERM
57486c
- Fix some compiling warnings and configure issue for FreeBSD
57486c
- Fix a read()/write() issue in rshim_pcie.c caused by optimization
57486c
57486c
* Tue Apr 14 2020 Liming Sun <lsun@mellanox.com> - 2.0.3-1
57486c
- Enable pci device during probing
57486c
- Map the pci resource0 file instead of /dev/mem
57486c
- Add copyright header in bootstrap.sh
57486c
- Add 'Requires' tag check in the rpm .spec for kernel-modules-extra
57486c
- Fix the 'rshim --version' output
57486c
57486c
* Thu Apr 09 2020 Liming Sun <lsun@mellanox.com> - 2.0.2-1
57486c
- Remove unnecessary dependency in .spec and use make_build
57486c
- Add package build for debian/ubuntu
57486c
- Fix some format in the man page
57486c
- Add check for syslog headers
57486c
57486c
* Mon Mar 23 2020 Liming Sun <lsun@mellanox.com> - 2.0.1-1
57486c
- Rename bfrshim to rshim
57486c
- Remove rshim.spec since it's auto-generated from rshim.spec.in
57486c
- Fix warnings reported by coverity
57486c
- Add rhel/rshim.spec.in for fedora
57486c
- Move rshim to sbin and move man page to man8
57486c
57486c
* Fri Mar 13 2020 Liming Sun <lsun@mellanox.com> - 2.0-1
57486c
- Update the spec file according to fedora packaging-guidelines
57486c
57486c
* Mon Dec 16 2019 Liming Sun <lsun@mellanox.com>
57486c
- Initial packaging