[packages/ipcalc] - install to /bin as replacement for the program bundled with rc-scripts, rel 2

baggins baggins at pld-linux.org
Sat Sep 11 13:49:49 CEST 2021


commit 9aef360f30e80ef01ec8658293d4a56ceb73e864
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Sep 11 13:49:01 2021 +0200

    - install to /bin as replacement for the program bundled with rc-scripts, rel 2

 ipcalc.spec | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/ipcalc.spec b/ipcalc.spec
index d39e1ae..48dfbb7 100644
--- a/ipcalc.spec
+++ b/ipcalc.spec
@@ -2,7 +2,7 @@ Summary:	Address format change and calculation utility
 Summary(pl.UTF-8):	Narzędzie do zmiany formatu i przeliczania adresów
 Name:		ipcalc
 Version:	1.0.1
-Release:	1
+Release:	2
 License:	GPL v2+
 Group:		Networking/Utilities
 Source0:	https://gitlab.com/ipcalc/ipcalc/-/archive/%{version}/%{name}-%{version}.tar.bz2
@@ -38,13 +38,17 @@ zrozumienia binarnej postaci.
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/bin
+
 %ninja_install -C build
 
+%{__mv} $RPM_BUILD_ROOT{%{_bindir},/bin}/ipcalc
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
 %doc README.md NEWS
-%attr(755,root,root) %{_bindir}/ipcalc
+%attr(755,root,root) /bin/ipcalc
 %{_mandir}/man1/ipcalc.1*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ipcalc.git/commitdiff/9aef360f30e80ef01ec8658293d4a56ceb73e864



More information about the pld-cvs-commit mailing list