Commit | Line | Data |
---|---|---|
9f89cfcd RS |
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 | --prefix=%{_prefix} | |
52 | ||
53 | %install | |
54 | # Clean up in case there is trash left from a previous build | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | # Create the target build directory hierarchy | |
58 | ||
59 | make DESTDIR=$RPM_BUILD_ROOT install | |
60 | ||
61 | # Remove "*.old" files | |
62 | find $RPM_BUILD_ROOT -name "*.old" -exec rm -f {} \; | |
63 | ||
64 | %clean | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | ||
68 | ####################################################################### | |
69 | ## Files section ## | |
70 | ####################################################################### | |
71 | ||
72 | %files | |
73 | %defattr(-,root,root) | |
74 | ||
75 | %{_libdir}/libnfs.so* | |
76 | ||
77 | %package devel | |
78 | Summary: Development libraries for LibNFS | |
79 | Group: Development | |
80 | ||
81 | %description devel | |
82 | development libraries for LibNFS | |
83 | ||
84 | %files devel | |
85 | %defattr(-,root,root) | |
86 | %{_includedir}/nfsc/libnfs.h | |
db0c9f42 | 87 | %{_includedir}/nfsc/libnfs-zdr.h |
9f89cfcd RS |
88 | %{_includedir}/nfsc/libnfs-raw.h |
89 | %{_includedir}/nfsc/libnfs-raw-mount.h | |
90 | %{_includedir}/nfsc/libnfs-raw-nfs.h | |
91 | %{_includedir}/nfsc/libnfs-raw-portmap.h | |
92 | %{_includedir}/nfsc/libnfs-raw-rquota.h | |
93 | %{_libdir}/libnfs.a | |
94 | %{_libdir}/libnfs.la | |
ea545df9 | 95 | %{_libdir}/pkgconfig/libnfs.pc |
9f89cfcd RS |
96 | |
97 | %changelog | |
8afcdc95 RS |
98 | * Mon Dec 3 2012 : Version 1.5 |
99 | - Switch to using our own RPC/XDR replacement ZDR instead of relying on the | |
100 | system RPC/TIRPC libraries. This allows using libnfs on platforms that lack | |
101 | RPC libraries completely. | |
102 | - Add support for Android. | |
dedc4675 RS |
103 | * Sun Nov 25 2012 : Version 1.4 |
104 | - Add trackig of freed context and assert on using a context after it has been | |
105 | freed. | |
106 | - Windows x64 support and fixes. | |
107 | - Switch to using our own version of xdr_int64() since the one in libtirpc | |
108 | crashes on some platforms. | |
109 | - Fix memory leak in an error path for addrinfo. | |
110 | - Fix bug dereferencing a null pointer in the mount callback on error. | |
47e5a2c7 RS |
111 | * Sat Mar 3 2012 : Version 1.3 |
112 | - add set/unset to portmapper | |
113 | - add mount v1 | |
114 | - try to rotate to find a free port better | |
115 | - minor fixes | |
345422a2 RS |
116 | * Tue Dec 6 2011 : Version 1.2 |
117 | - Add support for MKNOD | |
118 | - Add support for HaneWin NFS server | |
119 | - Change all [s]size_t offset_t to be 64bit clean scalars | |
86ef4910 RS |
120 | * Sun Nov 27 2011 : Version 1.1 |
121 | - Fix definition and use of AUTH | |
122 | - Only call the "connect" callback if non-NULL | |
123 | - make sure the callback for connect is only invoked once for the sync api | |
124 | - make file offset bits 64 bits always | |
9f89cfcd | 125 | * Sun Jul 31 2011 : Version 1.0 |
86ef4910 | 126 | - Initial version |