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