Blame SPECS/rshim.spec

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