X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=packaging%2FRPM%2Flibnfs.spec.in;fp=packaging%2FRPM%2Flibnfs.spec.in;h=5450ede4bb6e6c8b1ac1c7397548bd95e79a36bd;hb=9f89cfcd158d23b698de2892bbe11d4484704f3b;hp=0000000000000000000000000000000000000000;hpb=b84208a6137aa46ad1476757e87fbc59dd0cf666;p=deb_libnfs.git diff --git a/packaging/RPM/libnfs.spec.in b/packaging/RPM/libnfs.spec.in new file mode 100644 index 0000000..5450ede --- /dev/null +++ b/packaging/RPM/libnfs.spec.in @@ -0,0 +1,97 @@ +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 + + +CFLAGS="$RPM_OPT_FLAGS $EXTRA -O0 -g -D_GNU_SOURCE" ./configure \ + --prefix=%{_prefix} + +%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 +%{_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 +%{_libdir}/libnfs.a +%{_libdir}/libnfs.la + +%changelog +* Sun Jul 31 2011 : Version 1.0 + - Initial version