From 5bcc4f47cc645f4b06a170775b0f77901500f149 Mon Sep 17 00:00:00 2001 From: Jan Friesse Date: Wed, 20 Mar 2019 17:45:23 +0100 Subject: [PATCH] Modernize a specfile a bit - Use license and set_build_flags macro - Fix URL and source Signed-off-by: Jan Friesse --- omping.spec | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/omping.spec b/omping.spec index d57a8e1..d4e8b03 100644 --- a/omping.spec +++ b/omping.spec @@ -1,10 +1,10 @@ Name: omping Version: 0.0.4 -Release: 17%{?dist} +Release: 18%{?dist} Summary: Utility to test IP multicast functionality License: ISC -URL: http://fedorahosted.org/omping/ -Source0: http://fedorahosted.org/releases/o/m/omping/%{name}-%{version}.tar.gz +URL: https://github.com/jfriesse/omping +Source0: https://github.com/jfriesse/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz BuildRequires: gcc @@ -16,17 +16,23 @@ primarily in local network. %setup -q %build -make %{?_smp_mflags} CFLAGS="%{optflags}" LDFLAGS="$RPM_LD_FLAGS" +%set_build_flags +make %{?_smp_mflags} %install make DESTDIR="%{buildroot}" PREFIX="%{_prefix}" install %files -%doc AUTHORS COPYING +%doc AUTHORS +%license COPYING %{_bindir}/%{name} %{_mandir}/man8/* %changelog +* Wed Mar 20 2019 Jan Friesse - 0.0.4-18 +- Use license and set_build_flags macro +- Fix URL and source + * Fri Feb 01 2019 Fedora Release Engineering - 0.0.4-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild