diff --git a/README.md b/README.md index af565f1..3a5c9d7 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # rtrlib +An open-source C implementation of the RPKI/Router Protocol client. + diff --git a/rtrlib.spec b/rtrlib.spec new file mode 100644 index 0000000..9dd4b4f --- /dev/null +++ b/rtrlib.spec @@ -0,0 +1,81 @@ +Name: rtrlib +Version: 0.8.0 +Release: 1mamba +Summary: An open-source C implementation of the RPKI/Router Protocol client +Group: Applications/Networking +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/rtrlib/rtrlib +Source: https://github.com/rtrlib/rtrlib.git/v%{version}/rtrlib-%{version}.tar.bz2 +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libssh-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +Requires: librtr = %{?epoch:%epoch:}%{version}-%{release} + +%description +An open-source C implementation of the RPKI/Router Protocol client. + +%package -n librtr +Group: System/Libraries +Summary: Shared libraries for %{name} + +%description -n librtr +This package contains shared libraries for %{name}. + +%package -n librtr-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: librtr = %{?epoch:%epoch:}%{version}-%{release} + +%description -n librtr-devel +This package contains libraries and header files for developing applications that use %{name}. + + +%debug_package + +%prep +%setup -q + +%build +%cmake +%cmake_build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%cmake_install + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n librtr -p /sbin/ldconfig +%postun -n librtr -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_bindir}/rpki-rov +%{_bindir}/rtrclient +%{_mandir}/man1/rpki-rov.1* +%{_mandir}/man1/rtrclient.1* + +%files -n librtr +%defattr(-,root,root) +%{_libdir}/librtr.so.* +%doc LICENSE + +%files -n librtr-devel +%defattr(-,root,root) +%dir %{_includedir}/rtrlib +%{_includedir}/rtrlib/* +%{_libdir}/librtr.so +%{_libdir}/pkgconfig/rtrlib.pc +%dir %{_docdir}/rtrlib +%{_docdir}/rtrlib/* +%doc README.md + +%changelog +* Thu May 16 2024 Silvan Calarco 0.8.0-1mamba +- package created using the webbuild interface