[packages/ntirpc] - new

qboosh qboosh at pld-linux.org
Thu Jul 28 22:09:20 CEST 2022


commit c8a2042397264a6d36189a592ebe0ba9abbe2c14
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Jul 28 22:11:22 2022 +0200

    - new

 ntirpc.spec | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 82 insertions(+)
---
diff --git a/ntirpc.spec b/ntirpc.spec
new file mode 100644
index 0000000..66fab6b
--- /dev/null
+++ b/ntirpc.spec
@@ -0,0 +1,82 @@
+#
+# Conditional build:
+%bcond_with	gssapi		# RPCSEC_GSS support (MIT Kerberos required)
+%bcond_without	rdma		# RDMA support
+%bcond_with	lttng		# LTTng tracing
+%bcond_without	static_libs	# static libraries
+#
+Summary:	New Transport-independent RPC (TI-RPC) library
+Summary(pl.UTF-8):	Nowa biblioteka Transport-independent RPC (TI-RPC)
+Name:		ntirpc
+Version:	4.0
+Release:	1
+License:	BSD
+Group:		Libraries
+Source0:	https://download.nfs-ganesha.org/4/4.0/%{name}-%{version}.tar.gz
+# Source0-md5:	17b0baada54936dcde80eba27bb6d88d
+URL:		https://github.com/nfs-ganesha/ntirpc
+BuildRequires:	cmake >= 2.6.3
+%{?with_gssapi:BuildRequires:	krb5-devel}
+%{?with_rdma:BuildRequires:	libibverbs-devel}
+%{?with_rdma:BuildRequires:	librdmacm-devel}
+%{?with_lttng:BuildRequires:	lttng-ust-devel}
+BuildRequires:	rpmbuild(macros) >= 1.605
+BuildRequires:	userspace-rcu-devel
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+New Transport-independent RPC (TI-RPC) library.
+
+%description -l pl.UTF-8
+Nowa biblioteka Transport-independent RPC (TI-RPC).
+
+%package devel
+Summary:	Header files for NTIRPC library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki NTIRPC
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Header files for NTIRPC library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki NTIRPC.
+
+%prep
+%setup -q
+
+%build
+install -d build
+cd build
+# ALLOCATOR: also jemalloc(default), tcmalloc
+%cmake .. \
+	-DALLOCATOR=libc \
+	-DLIB_INSTALL_DIR:PATH=%{_lib} \
+	%{!?with_gssapi:-DUSE_GSS=OFF} \
+	%{?with_lttng:-DUSE_LTTNG=ON} \
+	%{?with_rdma:-DUSE_RPC_RDMA=ON}
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
+%attr(755,root,root) %{_libdir}/libntirpc.so.4.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libntirpc.so
+%{_includedir}/ntirpc
+%{_pkgconfigdir}/libntirpc.pc
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ntirpc.git/commitdiff/c8a2042397264a6d36189a592ebe0ba9abbe2c14



More information about the pld-cvs-commit mailing list