diff --git a/bgpq4.spec b/bgpq4.spec index 406e036..2c9a0e6 100644 --- a/bgpq4.spec +++ b/bgpq4.spec @@ -10,7 +10,12 @@ Source0: https://github.com/bgp/bgpq4/archive/%{version}/%{name}-%{versio BuildRequires: autoconf BuildRequires: automake BuildRequires: gcc +%if 0%{?fedora} || (0%{?rhel} && 0%{?rhel} > 6) BuildRequires: discount +%else +BuildRequires: python-markdown +BuildRequires: sed +%endif %description The bgpq4 utility can be used to generate BGP filter configurations @@ -21,6 +26,9 @@ OpenBGPD routers as well as generic JSON. %prep %setup -q +%if 0%{?rhel} == 6 +sed -e '/^AC_PACKAGE_URL/d' -e 's/-std=gnu11/-std=gnu99/' -i configure.ac +%endif autoreconf --install %build