%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 License: GPLv2+ 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 rm -rf %{buildroot} %make_install %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc COPYING README %{_sbindir}/plotnetcfg %{_mandir}/man8/* %changelog * Wed Apr 15 2015 Jiri Benc - 0.3-1 - initial packaging