Fixed configure options and directory ownership
This commit is contained in:
22
frr.spec
22
frr.spec
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
Name: frr
|
Name: frr
|
||||||
Version: 10.2.1
|
Version: 10.2.1
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: Routing daemon
|
Summary: Routing daemon
|
||||||
License: GPL-2.0-or-later AND ISC AND LGPL-2.0-or-later AND BSD-2-Clause AND BSD-3-Clause AND (GPL-2.0-or-later OR ISC) AND MIT
|
License: GPL-2.0-or-later AND ISC AND LGPL-2.0-or-later AND BSD-2-Clause AND BSD-3-Clause AND (GPL-2.0-or-later OR ISC) AND MIT
|
||||||
URL: http://www.frrouting.org
|
URL: http://www.frrouting.org
|
||||||
@@ -49,13 +49,14 @@ BuildRequires: json-c-devel
|
|||||||
BuildRequires: libcap-devel
|
BuildRequires: libcap-devel
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: libxcrypt-devel
|
BuildRequires: libxcrypt-devel
|
||||||
BuildRequires: libyang-devel >= 2.0.0
|
BuildRequires: libyang-devel >= 2.1.128
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: ncurses
|
BuildRequires: ncurses
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
BuildRequires: net-snmp-devel
|
BuildRequires: net-snmp-devel
|
||||||
BuildRequires: pam-devel
|
BuildRequires: pam-devel
|
||||||
BuildRequires: patch
|
BuildRequires: patch
|
||||||
|
BuildRequires: pcre2-devel
|
||||||
BuildRequires: perl-XML-LibXML
|
BuildRequires: perl-XML-LibXML
|
||||||
BuildRequires: perl-generators
|
BuildRequires: perl-generators
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
@@ -120,7 +121,7 @@ autoreconf -ivf
|
|||||||
|
|
||||||
%configure \
|
%configure \
|
||||||
--sbindir=%{frr_libdir} \
|
--sbindir=%{frr_libdir} \
|
||||||
--sysconfdir=%{_sysconfdir}/frr \
|
--sysconfdir=%{_sysconfdir} \
|
||||||
--libdir=%{_libdir}/frr \
|
--libdir=%{_libdir}/frr \
|
||||||
--libexecdir=%{_libexecdir}/frr \
|
--libexecdir=%{_libexecdir}/frr \
|
||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
@@ -133,8 +134,6 @@ autoreconf -ivf
|
|||||||
--enable-group=frr \
|
--enable-group=frr \
|
||||||
--enable-vty-group=frrvty \
|
--enable-vty-group=frrvty \
|
||||||
--enable-rtadv \
|
--enable-rtadv \
|
||||||
--disable-exampledir \
|
|
||||||
--enable-systemd=yes \
|
|
||||||
--enable-static=no \
|
--enable-static=no \
|
||||||
--disable-ldpd \
|
--disable-ldpd \
|
||||||
--disable-babeld \
|
--disable-babeld \
|
||||||
@@ -142,6 +141,7 @@ autoreconf -ivf
|
|||||||
--with-yangmodelsdir=%{_datadir}/frr-yang/ \
|
--with-yangmodelsdir=%{_datadir}/frr-yang/ \
|
||||||
--with-crypto=openssl \
|
--with-crypto=openssl \
|
||||||
--enable-fpm \
|
--enable-fpm \
|
||||||
|
--enable-pcre2posix \
|
||||||
%{?with_grpc:--enable-grpc}
|
%{?with_grpc:--enable-grpc}
|
||||||
|
|
||||||
%make_build MAKEINFO="makeinfo --no-split" PYTHON=%{__python3}
|
%make_build MAKEINFO="makeinfo --no-split" PYTHON=%{__python3}
|
||||||
@@ -157,8 +157,8 @@ bzip2 -9 selinux/%{name}.pp
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/{frr,rc.d/init.d,sysconfig,logrotate.d,pam.d,default} \
|
mkdir -p %{buildroot}%{_sysconfdir}/{frr,rc.d/init.d,sysconfig,logrotate.d,pam.d,default} \
|
||||||
%{buildroot}%{_localstatedir}/log/frr %{buildroot}%{_infodir} \
|
%{buildroot}%{_localstatedir}/log/frr %{buildroot}%{_localstatedir}/lib/frr \
|
||||||
%{buildroot}%{_unitdir}
|
%{buildroot}%{_infodir} %{buildroot}%{_unitdir}
|
||||||
|
|
||||||
mkdir -p -m 0755 %{buildroot}%{_libdir}/frr
|
mkdir -p -m 0755 %{buildroot}%{_libdir}/frr
|
||||||
mkdir -p %{buildroot}%{_tmpfilesdir}
|
mkdir -p %{buildroot}%{_tmpfilesdir}
|
||||||
@@ -249,6 +249,7 @@ rm tests/lib/*grpc*
|
|||||||
%license COPYING
|
%license COPYING
|
||||||
%doc doc/mpls
|
%doc doc/mpls
|
||||||
%dir %attr(750,frr,frr) %{_sysconfdir}/frr
|
%dir %attr(750,frr,frr) %{_sysconfdir}/frr
|
||||||
|
%dir %attr(755,frr,frr) %{_localstatedir}/lib/frr
|
||||||
%dir %attr(755,frr,frr) %{_localstatedir}/log/frr
|
%dir %attr(755,frr,frr) %{_localstatedir}/log/frr
|
||||||
%dir %attr(755,frr,frr) /run/frr
|
%dir %attr(755,frr,frr) /run/frr
|
||||||
%{_infodir}/*info*
|
%{_infodir}/*info*
|
||||||
@@ -281,6 +282,13 @@ rm tests/lib/*grpc*
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 13 2025 Alexey Kurov <nucleo@fedoraproject.org> - 10.2.1-4
|
||||||
|
- Removed unrecognized options enable-systemd and disable-exampledir
|
||||||
|
- Fixed sysconfdir option warning
|
||||||
|
- Added option for support of PCRE2
|
||||||
|
- Own local state file dir
|
||||||
|
- Minimum libyang version 2.1.128
|
||||||
|
|
||||||
* Tue Feb 11 2025 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 10.2.1-3
|
* Tue Feb 11 2025 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 10.2.1-3
|
||||||
- Drop call to %sysusers_create_compat
|
- Drop call to %sysusers_create_compat
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user