1 Star 0 Fork 0

ronaldoa/cbgp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
cbgp.spec.in 2.08 KB
一键复制 编辑 原始数据 按行查看 历史
Laurent Vanbever 提交于 2013-09-15 16:01 . Initial commit
Name: cbgp
Summary: BGP routing solver (C-BGP)
Packager: Bruno Quoitin (bruno.quoitin@uclouvain.be)
%define version @VERSION@
Version: %{version}
%define release 1%{?dist}
Release: %{release}
License: GPL/LGPL
Vendor: The C-BGP Team
Url: http://cbgp.info.ucl.ac.be
Source0: %{name}-%{version}.tar.gz
Group: Applications/Engineering
%define mybuidroot /var/tmp/%{name}-build
BuildRoot: %{mybuildroot}
Requires: libgds >= @LIBGDS_VERSION@ pcre readline zlib pkgconfig
BuildRequires: libgds-devel >= @LIBGDS_VERSION@ zlib-devel readline-devel >= 4 pcre-devel >= 4
#ExclusiveArch: i386
%description
C-BGP is an efficient solver for BGP, the de facto standard protocol used for exchanging routing information accross domains in the Internet. C-BGP is aimed at computing the outcome of the BGP decision process in networks composed of several routers. For this purpose, it takes into account the routers' configuration, the externally received BGP routes and the network topology. It supports the complete BGP decision process, versatile import and export filters, route-reflection, and experimental attributes such as redistribution communities. It is easily configurable through a CISCO-like command-line interface.
%prep
%setup -q -n %{name}-%{version}
%build
CFLAGS="$RPM_OPT_FLAGS"
PKG_CONFIG_PATH="$PKG_CONFIG_PATH:%{_libdir}/pkgconfig" \
./configure \
--prefix=%{_prefix} \
--bindir=%{_bindir} \
--mandir=%{_mandir} \
--localstatedir=%{_localstatedir} \
--libdir=%{_libdir} \
--datadir=%{_datadir} \
--includedir=%{_includedir} \
--sysconfdir=%{_sysconfdir}
make
%install
rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT%{_prefix} bindir=$RPM_BUILD_ROOT%{_bindir} \
mandir=$RPM_BUILD_ROOT%{_mandir} libdir=$RPM_BUILD_ROOT%{_libdir} \
localstatedir=$RPM_BUILD_ROOT%{_localstatedir} \
datadir=$RPM_BUILD_ROOT%{_datadir} \
includedir=$RPM_BUILD_ROOT%{_includedir} \
sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} install
make check
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_prefix}/lib
%{_prefix}/bin
%{_prefix}/include/cbgp
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/macroqz/cbgp.git
git@gitee.com:macroqz/cbgp.git
macroqz
cbgp
cbgp
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385