-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add RPM spec file rhel/rshim.spec.in for fedora
This commit also moves the rshim binary to /usr/sbin and moves the man page to man8. Signed-off-by: Liming Sun <[email protected]>
- Loading branch information
Showing
11 changed files
with
82 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
# Copyright (C) 2019 Mellanox Technologies. All Rights Reserved. | ||
# | ||
|
||
man1_MANS = rshim.1 | ||
man8_MANS = rshim.8 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# SPDX-License-Identifier: GPL-2.0-only | ||
# Copyright (C) 2019 Mellanox Technologies. All Rights Reserved. | ||
# | ||
|
||
Name: rshim | ||
Version: @VERSION@ | ||
Release: 1%{?dist} | ||
Summary: User-space driver for Mellanox BlueField SoC | ||
|
||
License: GPLv2 | ||
|
||
URL: https://github.com/mellanox/rshim-user-space | ||
Source0: https://github.com/Mellanox/rshim-user-space/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz | ||
|
||
BuildRequires: gcc, autoconf, automake | ||
BuildRequires: pkgconfig(libpci), pkgconfig(libusb-1.0), pkgconfig(fuse) | ||
BuildRequires: systemd-units | ||
BuildRequires: systemd-rpm-macros | ||
|
||
%description | ||
This is the user-space driver to access the BlueField SoC via the rshim | ||
interface. It provides ways to push boot stream, debug the target or login | ||
via the virtual console or network interface. | ||
|
||
%prep | ||
%setup -n %{name}-%{version} | ||
|
||
%build | ||
./bootstrap.sh | ||
%configure | ||
make | ||
|
||
%install | ||
%make_install | ||
%__spec_install_post | ||
|
||
%post | ||
%systemd_post rshim.service | ||
|
||
%preun | ||
%systemd_preun rshim.service | ||
|
||
%postun | ||
%systemd_postun_with_restart rshim.service | ||
|
||
%files | ||
%license LICENSE | ||
%doc README.md | ||
%{_sbindir}/rshim | ||
%{_unitdir}/rshim.service | ||
%{_mandir}/man8/rshim.8.gz | ||
|
||
%changelog | ||
* Mon Mar 23 2020 Liming Sun <[email protected]> - 2.0.1-1 | ||
- Rename bfrshim to rshim | ||
- Remove rshim.spec since it's auto-generated from rshim.spec.in | ||
- Fix warnings reported by coverity | ||
- Add rhel/rshim.spec.in for fedora | ||
- Move rshim to sbin and move man page to man8 | ||
|
||
* Fri Mar 13 2020 Liming Sun <[email protected]> - 2.0-1 | ||
- Update the spec file according to fedora packaging-guidelines | ||
|
||
* Mon Dec 16 2019 Liming Sun <[email protected]> | ||
- Initial packaging |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,13 +34,13 @@ tar -axf %{SOURCE0} -C %{name}-%{version} --strip-components 1 | |
make | ||
|
||
%install | ||
%makeinstall -C src INSTALL_DIR="%{buildroot}%{_bindir}" | ||
%makeinstall -C src INSTALL_DIR="%{buildroot}%{_sbindir}" | ||
%if "%{with_systemd}" == "1" | ||
%{__install} -d %{buildroot}%{_unitdir} | ||
%{__install} -m 0644 rshim.service %{buildroot}%{_unitdir} | ||
%endif | ||
%{__install} -d %{buildroot}%{_mandir}/man1 | ||
%{__install} -m 0644 man/rshim.1 %{buildroot}%{_mandir}/man1 | ||
%{__install} -d %{buildroot}%{_mandir}/man8 | ||
%{__install} -m 0644 man/rshim.8 %{buildroot}%{_mandir}/man8 | ||
%__spec_install_post | ||
|
||
%post | ||
|
@@ -63,14 +63,16 @@ make | |
%if "%{with_systemd}" == "1" | ||
%{_unitdir}/rshim.service | ||
%endif | ||
%{_bindir}/rshim | ||
%{_mandir}/man1/rshim.1.gz | ||
%{_sbindir}/rshim | ||
%{_mandir}/man8/rshim.8.gz | ||
|
||
%changelog | ||
* Fri Mar 20 2020 Liming Sun <[email protected]> - 2.0.1-1 | ||
* Mon Mar 23 2020 Liming Sun <[email protected]> - 2.0.1-1 | ||
- Rename bfrshim to rshim | ||
- Remove rshim.spec since it's auto-generated from rshim.spec.in | ||
- Fix some warnings reported by coverity | ||
- Add file rhel/rshim.spec.in for fedora | ||
- Move rshim to sbin and move man page to man8 | ||
|
||
* Fri Mar 13 2020 Liming Sun <[email protected]> - 2.0-1 | ||
- Update the spec file according to fedora packaging-guidelines | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters