[packages/timelimit] - up to 1.8.2
arekm
arekm at pld-linux.org
Mon Nov 20 19:28:25 CET 2017
commit c98a9cdea2e453f1c84f20e2467ad92b3eef41c0
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon Nov 20 19:28:19 2017 +0100
- up to 1.8.2
timelimit.spec | 18 +++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)
---
diff --git a/timelimit.spec b/timelimit.spec
index 4b8459c..0136f80 100644
--- a/timelimit.spec
+++ b/timelimit.spec
@@ -1,11 +1,12 @@
+%bcond_without tests
Summary: Limit a process's absolute execution time
Name: timelimit
-Version: 1.8.1
+Version: 1.8.2
Release: 1
License: distributable
Group: Base
Source0: http://devel.ringlet.net/files/sys/timelimit/%{name}-%{version}.tar.xz
-# Source0-md5: b8d0bcc67b970ce0fe1fce65e2901fbd
+# Source0-md5: 247ecc3333b3e3b7704112921e6b7600
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -23,12 +24,19 @@ shutdown.
CFLAGS="%{rpmcflags} %{rpmcppflags} -pipe -DHAVE_ERR -DHAVE_SYSEXITS_H -DHAVE_ERRNO_H -DHAVE_SIGACTION" \
LDFLAGS="%{rpmldflags}"
+%{?with_tests:%{__make} check}
+
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
-install %{name} $RPM_BUILD_ROOT%{_bindir}
-install %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT \
+ BINDIR=%{_bindir} \
+ MANDIR=%{_mandir}/man \
+ BINOWN=$(id -u) \
+ BINGRP=$(id -g) \
+ SHAREOWN=$(id -u) \
+ SHAREGRP=$(id -g)
%clean
rm -rf $RPM_BUILD_ROOT
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/timelimit.git/commitdiff/c98a9cdea2e453f1c84f20e2467ad92b3eef41c0
More information about the pld-cvs-commit
mailing list