Update changelog.
[deb_libnfs.git] / packaging / RPM / libnfs.spec.in
CommitLineData
5670ec6e
AM
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
50CFLAGS="$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
55rm -rf $RPM_BUILD_ROOT
56
57# Create the target build directory hierarchy
58
59make DESTDIR=$RPM_BUILD_ROOT install
60
61# Remove "*.old" files
62find $RPM_BUILD_ROOT -name "*.old" -exec rm -f {} \;
63
64%clean
65rm -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
78Summary: Development libraries for LibNFS
79Group: Development
80
81%description devel
82development libraries for LibNFS
83
84%files devel
85%defattr(-,root,root)
86%{_includedir}/nfsc/libnfs.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%{_libdir}/libnfs.a
93%{_libdir}/libnfs.la
94%{_libdir}/pkgconfig/libnfs.pc
95
96%changelog
97* Tue Dec 6 2011 : Version 1.2
98 - Add support for MKNOD
99 - Add support for HaneWin NFS server
100 - Change all [s]size_t offset_t to be 64bit clean scalars
101* Sun Nov 27 2011 : Version 1.1
102 - Fix definition and use of AUTH
103 - Only call the "connect" callback if non-NULL
104 - make sure the callback for connect is only invoked once for the sync api
105 - make file offset bits 64 bits always
106* Sun Jul 31 2011 : Version 1.0
107 - Initial version