6e2c902
6e2c902
%global		_hardened_build 1
6e2c902
6e2c902
Name:		libntirpc
d7ea70e
Version:	1.4.0
64bd170
%global		dev pre3
d7ea70e
%global		dev_version 1.4.0%{dev}
64bd170
%global		dash_dev_version 1.4.0-%{dev}
64bd170
Release:	0.3%{?dev:%{dev}}%{?dist}
6e2c902
Summary:	New Transport Independent RPC Library
6e2c902
Group:		System Environment/Libraries
6e2c902
License:	BSD
6e2c902
Url:		https://github.com/nfs-ganesha/ntirpc
6e2c902
64bd170
Source0:	https://github.com/nfs-ganesha/ntirpc/archive/v%{dash_dev_version}/ntirpc-%{dash_dev_version}.tar.gz
6e2c902
6e2c902
BuildRequires:	cmake
6e2c902
BuildRequires:	jemalloc-devel
6e2c902
BuildRequires:	krb5-devel
f3f342a
# libtirpc has /etc/netconfig, most machines probably have it anyway
f3f342a
# for NFS client
f3f342a
Requires:	libtirpc
6e2c902
6e2c902
%description
6e2c902
This package contains a new implementation of the original libtirpc, 
6e2c902
transport-independent RPC (TI-RPC) library for NFS-Ganesha. It has
6e2c902
the following features not found in libtirpc:
6e2c902
 1. Bi-directional operation
6e2c902
 2. Full-duplex operation on the TCP (vc) transport
6e2c902
 3. Thread-safe operating modes
6e2c902
 3.1 new locking primitives and lock callouts (interface change)
6e2c902
 3.2 stateless send/recv on the TCP transport (interface change)
6e2c902
 4. Flexible server integration support
6e2c902
 5. Event channels (remove static arrays of xprt handles, new EPOLL/KEVENT
6e2c902
    integration)
6e2c902
6e2c902
%package devel
6e2c902
Summary:	Development headers for %{name}
6e2c902
Requires:	%{name}%{?_isa} = %{version}
6e2c902
6e2c902
%description devel
6e2c902
Development headers and auxiliary files for developing with %{name}.
6e2c902
6e2c902
%prep
64bd170
%setup -q -n ntirpc-%{dash_dev_version}
6e2c902
6e2c902
%build
0b3b76e
%cmake . -DOVERRIDE_INSTALL_PREFIX=/usr -DTIRPC_EPOLL=1 -DUSE_GSS=ON "-GUnix Makefiles"
6e2c902
6e2c902
make %{?_smp_mflags}
6e2c902
6e2c902
%install
6e2c902
## make install is broken in various ways
6e2c902
## make install DESTDIR=%%{buildroot}
6e2c902
mkdir -p %{buildroot}%{_libdir}/pkgconfig
6e2c902
install -p -m 0755 src/%{name}.so.%{version} %{buildroot}%{_libdir}/
6e2c902
ln -s %{name}.so.%{version} %{buildroot}%{_libdir}/%{name}.so.1
6e2c902
ln -s %{name}.so.%{version} %{buildroot}%{_libdir}/%{name}.so
6e2c902
mkdir -p %{buildroot}%{_includedir}/ntirpc
6e2c902
cp -a ntirpc %{buildroot}%{_includedir}/
55e6e17
install -p -m 644 libntirpc.pc %{buildroot}%{_libdir}/pkgconfig/
6e2c902
6e2c902
%post -p /sbin/ldconfig
6e2c902
6e2c902
%postun -p /sbin/ldconfig
6e2c902
6e2c902
%files
6e2c902
%{_libdir}/libntirpc.so.*
6e2c902
%{!?_licensedir:%global license %%doc}
6e2c902
%license COPYING
6e2c902
%doc NEWS README
6e2c902
6e2c902
%files devel
6e2c902
%{_libdir}/libntirpc.so
6e2c902
%{_includedir}/ntirpc/
55e6e17
%{_libdir}/pkgconfig/libntirpc.pc
6e2c902
6e2c902
%changelog
64bd170
* Thu Aug 4 2016 Kaleb S. KEITHLEY <kkeithle at redhat.com> 1.4.0-0.3pre3
64bd170
- libntirpc 1.4.0-pre3
64bd170
2c46ba4
* Mon Feb 29 2016 Kaleb S. KEITHLEY <kkeithle at redhat.com> 1.4.0-0.2pre2
2c46ba4
- libntirpc 1.4.0-pre2
2c46ba4
d8fbe3f
* Fri Feb 5 2016 Kaleb S. KEITHLEY <kkeithle at redhat.com> 1.4.0-0.1pre1
d8fbe3f
- libntirpc 1.4.0-pre1, correct release
d8fbe3f
d7ea70e
* Fri Feb 5 2016 Kaleb S. KEITHLEY <kkeithle at redhat.com> 1.4.0-1pre1
d7ea70e
- libntirpc 1.4.0-pre1
d7ea70e
4139020
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-2
4139020
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
4139020
f3f342a
* Wed Dec 9 2015 Kaleb S. KEITHLEY <kkeithle at redhat.com>
f3f342a
- Requires: libtirpc for /etc/netconfig (most already have it)
f3f342a
21de3cd
* Mon Oct 26 2015 Kaleb S. KEITHLEY <kkeithle at redhat.com> 1.3.1-1
21de3cd
- libntirpc 1.3.1 GA
21de3cd
0b3b76e
* Fri Oct 9 2015 Kaleb S. KEITHLEY <kkeithle at redhat.com> 1.3.0-3
0b3b76e
- libntirpc 1.3.0 GA, w/ -DTIRPC_EPOLL=ON
0b3b76e
b8a8dc0
* Wed Sep 9 2015 Kaleb S. KEITHLEY <kkeithle at redhat.com> 1.3.0-2
b8a8dc0
- libntirpc 1.3.0 GA, w/ correct top-level CMakeList.txt
b8a8dc0
55e6e17
* Wed Sep 9 2015 Kaleb S. KEITHLEY <kkeithle at redhat.com> 1.3.0-1
55e6e17
- libntirpc 1.3.0 GA
55e6e17
33cb12f
* Thu Jul 16 2015 Kaleb S. KEITHLEY <kkeithle at redhat.com> 1.2.1-3
33cb12f
- RHEL 6 finally has new enough cmake
33cb12f
- use -isystem ... to ensure correct <rpc/rpc*.h> are used
33cb12f
- ensure -DTIRPC_EPOLL is defined for correct evchan functionality
33cb12f
2f83f79
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-2
2f83f79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2f83f79
6e2c902
* Mon Mar 23 2015 Kaleb S. KEITHLEY <kkeithle at redhat.com> 1.2.1-1
6e2c902
- Initial commit