From db1db52b514dbb7a8c1e3588b548efb6a8fcf4f7 Mon Sep 17 00:00:00 2001 From: Ville Skyttä Date: May 14 2017 08:05:02 +0000 Subject: Build with $RPM_OPT_FLAGS (#1380524) Include license files in package --- diff --git a/jitterentropy-rngd.spec b/jitterentropy-rngd.spec index bde0256..3fc4d1d 100644 --- a/jitterentropy-rngd.spec +++ b/jitterentropy-rngd.spec @@ -1,7 +1,7 @@ Summary: RNGD based on CPU Jitter RNG Name: jitterentropy-rngd Version: 1.0.5 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv3 Url: http://www.chronox.de/jent.html Source: http://www.chronox.de/jent/%{name}-%{version}.tar.xz @@ -28,8 +28,8 @@ http://www.chronox.de/jent/doc/CPU-Jitter-NPTRNG.pdf %setup -q %build -# Build must be done with -O0 - so ignore buildin make falgs -make +# Note: Makefile will override our flags with -O0, that's expected. +CFLAGS="$RPM_OPT_FLAGS" %make_build %install install -p -D -m 0755 jitterentropy-rngd %{buildroot}%{_sbindir}/jitterentropy-rngd @@ -39,6 +39,7 @@ sed -i "s/local//" jitterentropy.service install -m 0644 jitterentropy.service %{buildroot}%{_unitdir}/jitterentropy-rngd.service %files +%license COPYING* %doc README.md CHANGES %{_sbindir}/jitterentropy-rngd %{_unitdir}/jitterentropy-rngd.service @@ -53,6 +54,10 @@ install -m 0644 jitterentropy.service %{buildroot}%{_unitdir}/jitterentropy-rngd %systemd_postun_with_restart jitterentropy-rngd.service %changelog +* Sun May 14 2017 Ville Skyttä - 1.0.5-2 +- Build with $RPM_OPT_FLAGS (#1380524) +- Include license files in package + * Tue May 09 2017 Paul Wouters - 1.0.5-1 - Updated to 1.0.5, fixup service file to not reference /usr/local/sbin