From e45e5b1483e9add71bf8dbdac253ca5c98ac5c61 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sun, 2 Dec 2018 09:58:50 +0100 Subject: [PATCH] - cleanup --- calc.spec | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/calc.spec b/calc.spec index 5bbb083..e6646b3 100644 --- a/calc.spec +++ b/calc.spec @@ -1,7 +1,7 @@ # -# TODO: some unpackaged libs, should we pack them as ghosts? -# -%bcond_without tests +# Conditional build: +%bcond_without tests # unit tests + Summary: Arbitrary precision calculator Summary(pl.UTF-8): Kalkulator operujący na liczbach z dowolną dokładnością Name: calc @@ -18,6 +18,7 @@ BuildRequires: readline-devel >= 4.2 BuildRequires: sed >= 4.0 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +# libraries have circular dependencies %define no_install_post_check_so 1 %description @@ -76,7 +77,7 @@ rm -rf $RPM_BUILD_ROOT install -D %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop -rm -f $RPM_BUILD_ROOT%{_datadir}/calc/README +%{__rm} $RPM_BUILD_ROOT%{_datadir}/calc/README find $RPM_BUILD_ROOT%{_datadir}/calc -type f | \ xargs %{__sed} -i -e 's|#!/usr/local/bin/calc|#!%{_bindir}/calc|g' -- 2.43.0