rtrlib/rtrlib.spec

82 lines
1.9 KiB
RPMSpec

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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 0.8.0-1mamba
- package created using the webbuild interface