Sophie

Sophie

distrib > Mageia > 2 > i586 > media > core-release-src > by-pkgid > 3ebd1b538621110641b7ead4d452a183 > files > 2

libnfs-1.3.0-1.mga2.src.rpm

%define major	1
%define libname	%mklibname nfs %major
%define devname	%mklibname nfs -d

Summary:	Client library for accessing NFS shares over a network
Name:		libnfs
Version:	1.3.0
Release:	%mkrel 1
# examples are GPL but are not packaged
License:	LGPLv2+
Group:		System/Libraries
URL:		https://github.com/sahlberg/libnfs
# git archive --prefix libnfs-1.3.0/ libnfs-1.3.0 | xz > libnfs-1.3.0.tar.xz
Source:		%name-%version.tar.xz
BuildRequires:	python

%description
LIBNFS is a client library for accessing NFS shares over a network.

%package -n %libname
Summary:	Shared library of libnfs
Group:		System/Libraries
Provides:	%name = %version-%release

%description -n %libname
LIBNFS is a client library for accessing NFS shares over a network.

This package contains the library needed to run programs dynamically
linked with libnfs.

%package -n %devname
Summary:	Headers for libnfs development
Group:		Development/C
Requires:	%libname = %version
Provides:	nfs-devel = %version-%release

%description -n %devname
LIBNFS is a client library for accessing NFS shares over a network.

This package contains the headers that are needed to develop
applications that use libnfs.

%prep
%setup -q

%build
./bootstrap
%configure2_5x --disable-static
%make

%install
rm -rf %{buildroot}
%makeinstall_std

find %{buildroot} -name '*.la' | xargs rm

%clean
rm -rf %{buildroot}

%files -n %libname
%doc README
%{_libdir}/*.so.%{major}*

%files -n %devname
%doc README
%{_libdir}/*.so
%{_includedir}/nfsc
%{_libdir}/pkgconfig/%{name}.pc


%changelog

* Sat Mar 03 2012 anssi <anssi> 1.3.0-1.mga2
+ Revision: 217361
- initial Mageia package release