From 9aef360f30e80ef01ec8658293d4a56ceb73e864 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Sat, 11 Sep 2021 13:49:01 +0200 Subject: [PATCH] - 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* -- 2.44.0