2011-07-31 12:28:09 +04:00
|
|
|
Name: libnfs
|
|
|
|
Summary: NFS client library
|
|
|
|
Vendor: Ronnie Sahlberg
|
|
|
|
Packager: ronniesahlberg@gmail.com
|
|
|
|
Version: @VERSION@
|
|
|
|
Release: 1
|
|
|
|
Epoch: 0
|
|
|
|
License: GNU LGPL version 2.1
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
URL: http://www.github.com/sahlberg/libnfs
|
|
|
|
|
|
|
|
Source: libnfs-%{version}.tar.gz
|
|
|
|
|
|
|
|
Provides: lib = %{version}
|
|
|
|
|
|
|
|
Prefix: /usr
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
%description
|
|
|
|
LibNFS is a NFS client library
|
|
|
|
|
|
|
|
#######################################################################
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
# setup the init script and sysconfig file
|
|
|
|
%setup -T -D -n libnfs-%{version} -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
## check for ccache
|
|
|
|
if ccache -h >/dev/null 2>&1 ; then
|
|
|
|
CC="ccache gcc"
|
|
|
|
else
|
|
|
|
CC="gcc"
|
|
|
|
fi
|
|
|
|
|
|
|
|
export CC
|
|
|
|
|
|
|
|
## always run autogen.sh
|
|
|
|
aclocal
|
|
|
|
autoheader
|
|
|
|
autoconf
|
|
|
|
libtoolize -c -f -i
|
|
|
|
automake --add-missing
|
|
|
|
|
|
|
|
|
2014-01-16 14:03:14 +04:00
|
|
|
CFLAGS="$RPM_OPT_FLAGS $EXTRA -O0 -g -D_GNU_SOURCE" %configure
|
2011-07-31 12:28:09 +04:00
|
|
|
|
|
|
|
%install
|
|
|
|
# Clean up in case there is trash left from a previous build
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
# Create the target build directory hierarchy
|
|
|
|
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
|
|
|
|
# Remove "*.old" files
|
|
|
|
find $RPM_BUILD_ROOT -name "*.old" -exec rm -f {} \;
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
#######################################################################
|
|
|
|
## Files section ##
|
|
|
|
#######################################################################
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
|
|
|
%{_libdir}/libnfs.so*
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development libraries for LibNFS
|
|
|
|
Group: Development
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
development libraries for LibNFS
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/nfsc/libnfs.h
|
2012-11-28 18:36:06 +04:00
|
|
|
%{_includedir}/nfsc/libnfs-zdr.h
|
2011-07-31 12:28:09 +04:00
|
|
|
%{_includedir}/nfsc/libnfs-raw.h
|
|
|
|
%{_includedir}/nfsc/libnfs-raw-mount.h
|
|
|
|
%{_includedir}/nfsc/libnfs-raw-nfs.h
|
|
|
|
%{_includedir}/nfsc/libnfs-raw-portmap.h
|
|
|
|
%{_includedir}/nfsc/libnfs-raw-rquota.h
|
2014-01-16 14:03:14 +04:00
|
|
|
%{_includedir}/nfsc/libnfs-raw-nlm.h
|
|
|
|
%{_includedir}/nfsc/libnfs-raw-nsm.h
|
2011-07-31 12:28:09 +04:00
|
|
|
%{_libdir}/libnfs.a
|
|
|
|
%{_libdir}/libnfs.la
|
2011-09-16 10:23:23 +04:00
|
|
|
%{_libdir}/pkgconfig/libnfs.pc
|
2011-07-31 12:28:09 +04:00
|
|
|
|
|
|
|
%changelog
|
2014-01-28 08:47:24 +04:00
|
|
|
* Mon Jan 27 2014 : Version 1.9
|
|
|
|
- Use _stat64 on windows so file sizes become 64bit always.
|
|
|
|
- Increase default marshalling buffer so we can marshall large PDUs.
|
|
|
|
- RPC layer support for NFSv2
|
|
|
|
- Win32 updates and fixes
|
|
|
|
- Add URL parsing functions and URL argument support.
|
|
|
|
- New utility: nfs-io
|
|
|
|
- nfs-ls enhancements
|
|
|
|
- RPC layer support for NSM
|
|
|
|
- Add example FUSE filesystem.
|
|
|
|
- Minor fixes.
|
2014-01-16 14:03:14 +04:00
|
|
|
* Sun Oct 30 2013 : Version 1.8
|
2013-10-31 05:17:49 +04:00
|
|
|
- Fix nasty memory leak in read_from_socket
|
|
|
|
- minor updates
|
2013-10-21 03:31:32 +04:00
|
|
|
* Sun Oct 20 2013 : Version 1.7
|
|
|
|
- Allow nested eventloops so that a sync function can be called from a callback.
|
|
|
|
- Fix a bug in unmarshalling a uint64.
|
|
|
|
- Add PATHCONF support.
|
|
|
|
- WIN32/64 updates
|
|
|
|
- AROS updates
|
2013-05-28 08:35:26 +04:00
|
|
|
* Mon May 27 2013 : Version 1.6
|
|
|
|
- AROS/Amiga support
|
|
|
|
- Chose better initial xid value to reduce the probability for collissions.
|
|
|
|
- Set default group to getgid() instead of -1. This fixes an interoperability
|
|
|
|
problem with 3.9 linux knfsd.
|
2012-12-03 18:38:18 +04:00
|
|
|
* Mon Dec 3 2012 : Version 1.5
|
|
|
|
- Switch to using our own RPC/XDR replacement ZDR instead of relying on the
|
|
|
|
system RPC/TIRPC libraries. This allows using libnfs on platforms that lack
|
|
|
|
RPC libraries completely.
|
|
|
|
- Add support for Android.
|
2012-11-25 19:57:40 +04:00
|
|
|
* Sun Nov 25 2012 : Version 1.4
|
|
|
|
- Add trackig of freed context and assert on using a context after it has been
|
|
|
|
freed.
|
|
|
|
- Windows x64 support and fixes.
|
|
|
|
- Switch to using our own version of xdr_int64() since the one in libtirpc
|
|
|
|
crashes on some platforms.
|
|
|
|
- Fix memory leak in an error path for addrinfo.
|
|
|
|
- Fix bug dereferencing a null pointer in the mount callback on error.
|
2012-03-03 12:04:58 +04:00
|
|
|
* Sat Mar 3 2012 : Version 1.3
|
|
|
|
- add set/unset to portmapper
|
|
|
|
- add mount v1
|
|
|
|
- try to rotate to find a free port better
|
|
|
|
- minor fixes
|
2011-12-06 11:02:34 +04:00
|
|
|
* Tue Dec 6 2011 : Version 1.2
|
|
|
|
- Add support for MKNOD
|
|
|
|
- Add support for HaneWin NFS server
|
|
|
|
- Change all [s]size_t offset_t to be 64bit clean scalars
|
2011-11-27 04:19:18 +04:00
|
|
|
* Sun Nov 27 2011 : Version 1.1
|
|
|
|
- Fix definition and use of AUTH
|
|
|
|
- Only call the "connect" callback if non-NULL
|
|
|
|
- make sure the callback for connect is only invoked once for the sync api
|
|
|
|
- make file offset bits 64 bits always
|
2011-07-31 12:28:09 +04:00
|
|
|
* Sun Jul 31 2011 : Version 1.0
|
2014-01-16 14:03:14 +04:00
|
|
|
- Initial version
|