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