Modernize a specfile a bit

- Use license and set_build_flags macro
- Fix URL and source

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
This commit is contained in:
Jan Friesse 2019-03-20 17:45:23 +01:00
parent 27f8bce686
commit 5bcc4f47cc

View File

@ -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 <jfriesse@redhat.com> - 0.0.4-18
- Use license and set_build_flags macro
- Fix URL and source
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild