SHA256
1
0
forked from pool/rtrlib

Accepting request 670909 from home:mnhauke:network

Initial package for rtrlib

OBS-URL: https://build.opensuse.org/request/show/670909
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/rtrlib?expand=0&rev=1
This commit is contained in:
Jan Engelhardt 2019-02-06 09:06:55 +00:00 committed by Git OBS Bridge
commit 0f40445a31
6 changed files with 174 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
rtrlib-0.6.3.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5591c900761dfce126e8cac17e2cc87dd2285dc49ab2ae1ac7491e513044c77a
size 235094

View File

@ -0,0 +1,19 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e852633..dc12a40 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -82,14 +82,10 @@ ADD_TEST(test_trie tests/test_trie)
ADD_TEST(test_ht_spkitable tests/test_ht_spkitable)
ADD_TEST(test_ht_spkitable_locks tests/test_ht_spkitable_locks)
-ADD_TEST(test_live_validation tests/test_live_validation)
-
ADD_TEST(test_ipaddr tests/test_ipaddr)
ADD_TEST(test_getbits tests/test_getbits)
-ADD_TEST(test_dynamic_groups tests/test_dynamic_groups)
-
#install lib
set (RTRLIB_VERSION_MAJOR 0)
set (RTRLIB_VERSION_MINOR 6)

6
rtrlib.changes Normal file
View File

@ -0,0 +1,6 @@
-------------------------------------------------------------------
Sun Feb 3 19:27:27 UTC 2019 - mardnh@gmx.de
- Initial package, version 0.6.3
- Add patch:
* rtrlib-disable-tests-that-require-network-connections.patch

122
rtrlib.spec Normal file
View File

@ -0,0 +1,122 @@
#
# spec file for package rtrlib
#
# Copyright (c) 2019, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define sover 0
Name: rtrlib
Version: 0.6.3
Release: 0
Summary: Small extensible RPKI-RTR-Client C library
License: MIT
Group: Development/Languages/C and C++
URL: https://rpki.realmv6.org/
Source: https://github.com/rtrlib/rtrlib/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: rtrlib-disable-tests-that-require-network-connections.patch
BuildRequires: cmake
BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libssh) >= 0.5.0
%description
RTRlib is an open-source C implementation of the RPKI/Router Protocol
client. The library allows one to fetch and store validated prefix origin
data from a RTR-cache and performs origin verification of prefixes. It
supports different types of transport sessions (e.g., SSH, unprotected TCP)
and is easily extendable.
%package -n librtr%{sover}
Summary: Small extensible RPKI-RTR-Client C library
Group: System/Libraries
%description -n librtr%{sover}
RTRlib is an open-source C implementation of the RPKI/Router Protocol
client. The library allows one to fetch and store validated prefix origin
data from a RTR-cache and performs origin verification of prefixes. It
supports different types of transport sessions (e.g., SSH, unprotected TCP)
and is easily extendable.
%package -n rtr-tools
Summary: RPKI-RTR command line tools
Group: Productivity/Networking/Routing
%description -n rtr-tools
rtrclient is command line that connects to an RPKI-RTR server and prints
protocol information and information about the fetched ROAs to the console.
rpki-rov is a command line tool that connects to an RPKI-RTR server and
allows one to validate given IP prefixes and origin ASes.
%package devel
Summary: Header files for librtr
Group: Development/Libraries/C and C++
Requires: librtr%{sover} = %{version}
%description devel
Development and header files for librtr.
%package devel-doc
Summary: API documentation of the RTRlib
Group: Documentation/Other
Requires: %{name}-devel
BuildArch: noarch
%description devel-doc
This is the API documentation of the RTRlib, a C implementation of
the RPKI/Router Protocol client.
%prep
%setup -q
%patch0 -p1
%build
CFLAGS="%{optflags} -Wno-return-type"
%cmake
make %{?_smp_mflags}
%install
%cmake_install
mkdir -p %{buildroot}/%{_docdir}/%{name}
mv %{buildroot}/%{_datadir}/doc/%{name}/docs/html %{buildroot}%{_docdir}/%{name}/html
%fdupes -s %{buildroot}/%{_docdir}/%{name}/html
%check
%ctest
%post -n librtr%{sover} -p /sbin/ldconfig
%postun -n librtr%{sover} -p /sbin/ldconfig
%files -n librtr%{sover}
%license LICENSE
%doc CHANGELOG README
%{_libdir}/librtr.so.%{sover}*
%files -n rtr-tools
%{_bindir}/rpki-rov
%{_bindir}/rtrclient
%{_mandir}/man1/rpki-rov.1%{?ext_man}
%{_mandir}/man1/rtrclient.1%{?ext_man}
%files devel
%{_includedir}/rtrlib
%{_libdir}/librtr.so
%{_libdir}/pkgconfig/rtrlib.pc
%files devel-doc
%dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/html
%changelog