Group :: Sistema/Bibliotecas
RPM: libnfsidmap
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%def_disable ldap
%def_disable static
Name: libnfsidmap
Version: 0.20
Release: alt1
Summary: Name to user id mapping library
License: BSD
Group: System/Libraries
Url: http://www.citi.umich.edu/projects/nfsv4/linux/
Source: %name-%version-%release.tar
%if_enabled ldap
BuildRequires: libldap-devel
%endif
%package devel
Summary: Name to user id mapping library and headers
Group: Development/C
Requires: %name = %version-%release
%if_enabled static
%package devel-static
Summary: Name to user id mapping static library
Group: Development/C
Requires: %name-devel = %version-%release
%endif
%description
%name is a library holding mulitiple methods of mapping names to id's
and visa versa, mainly for NFSv4.
%description devel
%name is a library holding mulitiple methods of mapping names to id's
and visa versa, mainly for NFSv4.
This package holds development part of %name library
%if_enabled static
%description devel-static
%name is a library holding mulitiple methods of mapping names to id's
and visa versa, mainly for NFSv4.
This package contains static %name library
%endif
%prep
%setup
%build
%__autoreconf
%configure %{subst_enable ldap} %{subst_enable static}
%make_build
%install
%makeinstall
mkdir -p %buildroot/%_lib
mv %buildroot%_libdir/*.so.* %buildroot/%_lib/
find %buildroot%_libdir -name \*.so|while read; do
ln -snf ../../%_lib/`readlink $REPLY` %buildroot%_libdir/${REPLY##*/}
done
%post -p %post_ldconfig
%postun -p %postun_ldconfig
%files
%doc COPYING README
/%_lib/%name.so.*
%files devel
%_libdir/%name.so
%_includedir/nfsidmap.h
%_pkgconfigdir/*
%_man3dir/*
%if_enabled static
%files devel-static
%_libdir/%name.a
%endif
%changelog
…
Todas as alterações você pod ver aqui
%def_disable static
Name: libnfsidmap
Version: 0.20
Release: alt1
Summary: Name to user id mapping library
License: BSD
Group: System/Libraries
Url: http://www.citi.umich.edu/projects/nfsv4/linux/
Source: %name-%version-%release.tar
%if_enabled ldap
BuildRequires: libldap-devel
%endif
%package devel
Summary: Name to user id mapping library and headers
Group: Development/C
Requires: %name = %version-%release
%if_enabled static
%package devel-static
Summary: Name to user id mapping static library
Group: Development/C
Requires: %name-devel = %version-%release
%endif
%description
%name is a library holding mulitiple methods of mapping names to id's
and visa versa, mainly for NFSv4.
%description devel
%name is a library holding mulitiple methods of mapping names to id's
and visa versa, mainly for NFSv4.
This package holds development part of %name library
%if_enabled static
%description devel-static
%name is a library holding mulitiple methods of mapping names to id's
and visa versa, mainly for NFSv4.
This package contains static %name library
%endif
%prep
%setup
%build
%__autoreconf
%configure %{subst_enable ldap} %{subst_enable static}
%make_build
%install
%makeinstall
mkdir -p %buildroot/%_lib
mv %buildroot%_libdir/*.so.* %buildroot/%_lib/
find %buildroot%_libdir -name \*.so|while read; do
ln -snf ../../%_lib/`readlink $REPLY` %buildroot%_libdir/${REPLY##*/}
done
%post -p %post_ldconfig
%postun -p %postun_ldconfig
%files
%doc COPYING README
/%_lib/%name.so.*
%files devel
%_libdir/%name.so
%_includedir/nfsidmap.h
%_pkgconfigdir/*
%_man3dir/*
%if_enabled static
%files devel-static
%_libdir/%name.a
%endif
%changelog
…
Todas as alterações você pod ver aqui