Group :: Sistema/Bibliotecas
RPM: libgssglue
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%def_disable static
Name: libgssglue
Version: 0.1
Release: alt1
Summary: GSSAPI frontend library
License: Distributable
Group: System/Libraries
Url: http://www.citi.umich.edu/projects/nfsv4/linux/
Provides: libgssapi
Obsoletes: libgssapi
Source0: %name-%version-%release.tar
%package devel
Summary: GSSAPI frontend library and headers
Group: Development/C
Requires: %name = %version-%release
Provides: libgssapi-devel
Obsoletes: libgssapi-devel
%if_enabled static
%package devel-static
Summary: GSSAPI frontend static library
Group: Development/C
Requires: %name-devel = %version-%release
Provides: libgssapi-devel-static
Obsoletes: libgssapi-devel-static
%endif
%description
This library exports a gssapi interface, but doesn't implement any gssapi
mechanisms itself; instead it calls gssapi routines in other libraries,
depending on the mechanism.
%description devel
This library exports a gssapi interface, but doesn't implement any gssapi
mechanisms itself; instead it calls gssapi routines in other libraries,
depending on the mechanism.
This package holds development part of %name library
%if_enabled static
%description devel-static
This library exports a gssapi interface, but doesn't implement any gssapi
mechanisms itself; instead it calls gssapi routines in other libraries,
depending on the mechanism.
This package contains static %name library
%endif
%prep
%setup -q
sed -i 's at ^/usr/lib at /%_lib at ; s at krb5\.so[ ] at krb5.so.2 at ' doc/gssapi_mech.conf
%build
%__autoreconf
%configure %{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
%__install -pD -m644 doc/gssapi_mech.conf %buildroot%_sysconfdir/gssapi_mech.conf
%post -p %post_ldconfig
%postun -p %postun_ldconfig
%files
%doc AUTHORS COPYING README
%config(noreplace) %_sysconfdir/gssapi_mech.conf
/%_lib/%name.so.*
%files devel
%_libdir/%name.so
%_pkgconfigdir/*
%_includedir/gssglue
%if_enabled static
%files devel-static
%_libdir/%name.a
%endif
%changelog
…
Todas as alterações você pod ver aqui
Name: libgssglue
Version: 0.1
Release: alt1
Summary: GSSAPI frontend library
License: Distributable
Group: System/Libraries
Url: http://www.citi.umich.edu/projects/nfsv4/linux/
Provides: libgssapi
Obsoletes: libgssapi
Source0: %name-%version-%release.tar
%package devel
Summary: GSSAPI frontend library and headers
Group: Development/C
Requires: %name = %version-%release
Provides: libgssapi-devel
Obsoletes: libgssapi-devel
%if_enabled static
%package devel-static
Summary: GSSAPI frontend static library
Group: Development/C
Requires: %name-devel = %version-%release
Provides: libgssapi-devel-static
Obsoletes: libgssapi-devel-static
%endif
%description
This library exports a gssapi interface, but doesn't implement any gssapi
mechanisms itself; instead it calls gssapi routines in other libraries,
depending on the mechanism.
%description devel
This library exports a gssapi interface, but doesn't implement any gssapi
mechanisms itself; instead it calls gssapi routines in other libraries,
depending on the mechanism.
This package holds development part of %name library
%if_enabled static
%description devel-static
This library exports a gssapi interface, but doesn't implement any gssapi
mechanisms itself; instead it calls gssapi routines in other libraries,
depending on the mechanism.
This package contains static %name library
%endif
%prep
%setup -q
sed -i 's at ^/usr/lib at /%_lib at ; s at krb5\.so[ ] at krb5.so.2 at ' doc/gssapi_mech.conf
%build
%__autoreconf
%configure %{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
%__install -pD -m644 doc/gssapi_mech.conf %buildroot%_sysconfdir/gssapi_mech.conf
%post -p %post_ldconfig
%postun -p %postun_ldconfig
%files
%doc AUTHORS COPYING README
%config(noreplace) %_sysconfdir/gssapi_mech.conf
/%_lib/%name.so.*
%files devel
%_libdir/%name.so
%_pkgconfigdir/*
%_includedir/gssglue
%if_enabled static
%files devel-static
%_libdir/%name.a
%endif
%changelog
…
Todas as alterações você pod ver aqui