%global debug_package %{nil}

Name: bgpq3
Version: 0.1.35
Release: 1%{?dist}
Summary: bgp filtering automation for Cisco, Juniper, and Nokia routers       
License: Copyleft
URL: https://github.com/snar/bgpq3
Source0: bgpq3-0.1.35.tar.gz
Patch0: bgpq3-makefile-destdir.patch
BuildRequires: glibc-headers

%description
The bgpq3 utility used to generate Cisco and Juniper prefix-lists, extended 
access-lists, policy-statement terms and as-path lists based on RADB data.

%prep
%setup -q
%patch0

%build
%configure
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
%make_install

%files
%defattr(-,root,root,-)
%{!?_licensedir:%global license %%doc}
%license COPYRIGHT
%doc CHANGES README.md
%{_bindir}/%{name}
%{_mandir}/man8/%{name}.8*


%changelog
* Sat Jan 20 2018 Clinton Work <clinton@scripty.com>
- Updated to version 0.1.35
* Sun Jun 26 2016 Clinton Work <clinton@scripty.com>
- Initial spec file