Skip to content

Commit

Permalink
Some cleanup in the .spec file
Browse files Browse the repository at this point in the history
Signed-off-by: Liming Sun <[email protected]>
  • Loading branch information
lsun100 committed Apr 9, 2020
1 parent a6a509a commit 8613c14
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Copyright (C) 2019 Mellanox Technologies. All Rights Reserved.
#

AC_INIT([rshim], [2.0.1])
AC_INIT([rshim], [2.0.2])
AC_CONFIG_AUX_DIR(config)
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AC_LANG(C)
Expand Down
9 changes: 7 additions & 2 deletions rhel/rshim.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,10 @@ via the virtual console or network interface.
%build
./bootstrap.sh
%configure
make
%make_build

%install
%make_install
%__spec_install_post

%post
%systemd_post rshim.service
Expand All @@ -51,6 +50,12 @@ make
%{_mandir}/man8/rshim.8.gz

%changelog
* Thu Apr 09 2020 Liming Sun <[email protected]> - 2.0.2-1
- Remove unnecessary dependency in .spec and use make_build
- Add package build for debian/ubuntu
- Fix some format in the man page
- Add check for syslog headers

* 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
Expand Down
9 changes: 7 additions & 2 deletions rshim.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ tar -axf %{SOURCE0} -C %{name}-%{version} --strip-components 1
%build
./bootstrap.sh
%configure
make
%make_build

%install
%undefine _missing_build_ids_terminate_build
Expand All @@ -42,7 +42,6 @@ make
%endif
%{__install} -d %{buildroot}%{_mandir}/man8
%{__install} -m 0644 man/rshim.8 %{buildroot}%{_mandir}/man8
%__spec_install_post

%post
%if "%{with_systemd}" == "1"
Expand All @@ -69,6 +68,12 @@ make
%{_mandir}/man8/rshim.8.gz

%changelog
* Thu Apr 09 2020 Liming Sun <[email protected]> - 2.0.2-1
- Remove unnecessary dependency in .spec and use make_build
- Add package build for debian/ubuntu
- Fix some format in the man page
- Add check for syslog headers

* 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
Expand Down

0 comments on commit 8613c14

Please sign in to comment.