New version 1.9.6
[deb_libnfs.git] / packaging / RPM / libnfs.spec.in
CommitLineData
9f89cfcd
RS
1Name: libnfs
2Summary: NFS client library
3Vendor: Ronnie Sahlberg
4Packager: ronniesahlberg@gmail.com
5Version: @VERSION@
6Release: 1
7Epoch: 0
8License: GNU LGPL version 2.1
9Group: System Environment/Libraries
10URL: http://www.github.com/sahlberg/libnfs
11
12Source: libnfs-%{version}.tar.gz
13
14Provides: lib = %{version}
15
16Prefix: /usr
17BuildRoot: %{_tmppath}/%{name}-%{version}-root
18
19%description
20LibNFS is a NFS client library
21
22#######################################################################
23
24
25
26%prep
27%setup -q
28# setup the init script and sysconfig file
29%setup -T -D -n libnfs-%{version} -q
30
31%build
32
33## check for ccache
34if ccache -h >/dev/null 2>&1 ; then
35 CC="ccache gcc"
36else
37 CC="gcc"
38fi
39
40export CC
41
42## always run autogen.sh
43aclocal
44autoheader
45autoconf
46libtoolize -c -f -i
47automake --add-missing
48
49
9304ad51 50CFLAGS="$RPM_OPT_FLAGS $EXTRA -O0 -g -D_GNU_SOURCE" %configure
9f89cfcd
RS
51
52%install
53# Clean up in case there is trash left from a previous build
54rm -rf $RPM_BUILD_ROOT
55
56# Create the target build directory hierarchy
57
58make DESTDIR=$RPM_BUILD_ROOT install
59
60# Remove "*.old" files
61find $RPM_BUILD_ROOT -name "*.old" -exec rm -f {} \;
62
63%clean
64rm -rf $RPM_BUILD_ROOT
65
66
67#######################################################################
68## Files section ##
69#######################################################################
70
71%files
72%defattr(-,root,root)
73
74%{_libdir}/libnfs.so*
75
76%package devel
77Summary: Development libraries for LibNFS
78Group: Development
79
80%description devel
81development libraries for LibNFS
82
83%files devel
84%defattr(-,root,root)
85%{_includedir}/nfsc/libnfs.h
db0c9f42 86%{_includedir}/nfsc/libnfs-zdr.h
9f89cfcd
RS
87%{_includedir}/nfsc/libnfs-raw.h
88%{_includedir}/nfsc/libnfs-raw-mount.h
89%{_includedir}/nfsc/libnfs-raw-nfs.h
90%{_includedir}/nfsc/libnfs-raw-portmap.h
91%{_includedir}/nfsc/libnfs-raw-rquota.h
9304ad51
ASN
92%{_includedir}/nfsc/libnfs-raw-nlm.h
93%{_includedir}/nfsc/libnfs-raw-nsm.h
9f89cfcd
RS
94%{_libdir}/libnfs.a
95%{_libdir}/libnfs.la
ea545df9 96%{_libdir}/pkgconfig/libnfs.pc
9f89cfcd 97
2c0f57fa
RS
98%package utils
99Summary: Utility programs for LibNFS
100Group: Applications/System
101
102%description utils
103Utility programs for LibNFS
104
105%files utils
106%defattr(-,root,root)
107%{_bindir}/nfs-ls
108%{_mandir}/man1/nfs-ls.1.gz
109
9f89cfcd 110%changelog
080d2311
RS
111* Tue Nov 25 2014 : Version 1.9.6
112 - Add O_TRUNC support for nfs_create
113 - Handle OOM during create
114 - Return more stats fields as part of readdir since we get these for "free"
115 when we use READDIRPLUS
116 - Follow symlinks during path resolution
117 - Add lchown, lstat and lutimes
118 - Replace all [u_]quad types with [u]int types in our RPC layer
119 - Solaris build fixes
b9e5039f
RS
120* Sat Jul 19 2014 : Version 1.9.5
121 - Remove old ONC-RPC symbols
7440522d 122* Wed Mar 19 2014 : Version 1.9.3
70589711
RS
123 - Add O_TRUNC support to nfs_open()
124 - Add a simple but incomplete LD_PRELOAD tool
125 - Fixes for some memory leaks and C++ compile support
126 - Make ANDROID default uid/gid to 65534
127 - Allow the READDIRPLUS emulation to still work if some objects
128 in the direcotry can not be lookedup (NFSv4 ACL denying READ-ATTRIBUTES)
129 - Have libnfs retry any read/write operations where the server responds
130 with a short read/write. Some servers do this when they are overloaded?
0a63cc72
RS
131* Thu Jan 30 2014 : Version 1.9.2
132 - Remove chdir change. This needs more testing.
1d95217b
RS
133* Tue Jan 28 2014 : Version 1.9.1
134 - Restore libnfs-raw-*.h to make install
5392b1cf
RS
135* Mon Jan 27 2014 : Version 1.9
136 - Use _stat64 on windows so file sizes become 64bit always.
137 - Increase default marshalling buffer so we can marshall large PDUs.
138 - RPC layer support for NFSv2
139 - Win32 updates and fixes
140 - Add URL parsing functions and URL argument support.
141 - New utility: nfs-io
142 - nfs-ls enhancements
143 - RPC layer support for NSM
144 - Add example FUSE filesystem.
145 - Minor fixes.
2c0f57fa 146* Wed Oct 30 2013 : Version 1.8
558aefc7
RS
147 - Fix nasty memory leak in read_from_socket
148 - minor updates
31820d27
RS
149* Sun Oct 20 2013 : Version 1.7
150 - Allow nested eventloops so that a sync function can be called from a callback.
151 - Fix a bug in unmarshalling a uint64.
152 - Add PATHCONF support.
153 - WIN32/64 updates
154 - AROS updates
a60caa09
RS
155* Mon May 27 2013 : Version 1.6
156 - AROS/Amiga support
157 - Chose better initial xid value to reduce the probability for collissions.
158 - Set default group to getgid() instead of -1. This fixes an interoperability
159 problem with 3.9 linux knfsd.
8afcdc95
RS
160* Mon Dec 3 2012 : Version 1.5
161 - Switch to using our own RPC/XDR replacement ZDR instead of relying on the
162 system RPC/TIRPC libraries. This allows using libnfs on platforms that lack
163 RPC libraries completely.
164 - Add support for Android.
dedc4675
RS
165* Sun Nov 25 2012 : Version 1.4
166 - Add trackig of freed context and assert on using a context after it has been
167 freed.
168 - Windows x64 support and fixes.
169 - Switch to using our own version of xdr_int64() since the one in libtirpc
170 crashes on some platforms.
171 - Fix memory leak in an error path for addrinfo.
172 - Fix bug dereferencing a null pointer in the mount callback on error.
47e5a2c7
RS
173* Sat Mar 3 2012 : Version 1.3
174 - add set/unset to portmapper
175 - add mount v1
176 - try to rotate to find a free port better
177 - minor fixes
345422a2
RS
178* Tue Dec 6 2011 : Version 1.2
179 - Add support for MKNOD
180 - Add support for HaneWin NFS server
181 - Change all [s]size_t offset_t to be 64bit clean scalars
86ef4910
RS
182* Sun Nov 27 2011 : Version 1.1
183 - Fix definition and use of AUTH
184 - Only call the "connect" callback if non-NULL
185 - make sure the callback for connect is only invoked once for the sync api
186 - make file offset bits 64 bits always
9f89cfcd 187* Sun Jul 31 2011 : Version 1.0
9304ad51 188 - Initial version