%global commit d79ff1d8f69a25083c54acf010e319d70be998c1 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: plotnetcfg Version: 0.3 Release: 1%{?dist} Summary: A tool to plot network configuration Group: Applications/System # The entire source code is GPLv2+ except parson/ which is MIT License: GPLv2+ and MIT URL: https://github.com/jbenc/plotnetcfg Source0: https://github.com/jbenc/plotnetcfg/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz Provides: bundled(parson) %description plotnetcfg is a tool that output a diagram of network configuration on the host in a form suitable for graphviz. %prep %setup -q -n %{name}-%{commit} %build make %{?_smp_mflags} CFLAGS="%{optflags}" %install %make_install %files %license COPYING %doc README %{_sbindir}/plotnetcfg %{_mandir}/man8/* %changelog * Wed Apr 15 2015 Jiri Benc - 0.3-1 - initial packaging