%define real_name GSSAPI %define name perl-%{real_name} %define version 0.26 %define release %mkrel 1 Summary: Perl extension providing access to the GSSAPIv2 library Name: %{name} Version: %{version} Release: %{release} License: GPL Group: Development/Perl Requires: perl BuildRequires: perl-devel URL: http://search.cpan.org/dist/%{real_name} Source: http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/%{real_name}-%{version}.tar.gz BuildRequires: krb5-devel BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %description This module gives access to the routines of the GSSAPI library, as described in rfc2743 and rfc2744 and implemented by the Kerberos-1.2 distribution from MIT. Since 0.14 it also compiles and works with Heimdal. Lacks of Heimdal support are gss_release_oid(), gss_str_to_oid() and fail of some tests. Have a look at the tests in t/ directory too see what tests fail on Heimdal ( the *.t tests are just skipping them at the moment) The API presented by this module is a mildly object oriented reinterpretation of the C API, where opaque C structures are Perl objects, but the style of function call has been left mostly untouched. As a result, most routines modify one or more of the parameters passed to them, reflecting the C call-by- reference (or call-by-value-return) semantics. All users of this module are therefore strongly advised to localize all usage of these routines to minimize pain if and when the API changes. %prep %setup -q -n %{real_name}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %__make OPTIMIZE="$RPM_OPT_FLAGS" %check %__make test %install rm -rf $RPM_BUILD_ROOT %makeinstall_std %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc Changes README %{perl_vendorlib}/* %{_mandir}/man?/* %changelog * Sun Jul 06 2008 Guillaume Rousse <guillomovitch@mandriva.org> 0.26-1mdv2009.0 + Revision: 232124 - new version * Tue Jun 17 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.24-3mdv2009.0 + Revision: 223778 - rebuild * Thu Mar 06 2008 Oden Eriksson <oeriksson@mandriva.com> 0.24-2mdv2008.1 + Revision: 180650 - fix deps + Thierry Vignaud <tvignaud@mandriva.com> - fix description-line-too-long - rebuild - kill re-definition of %%buildroot on Pixel's request + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Sat May 05 2007 Olivier Thauvin <nanardon@mandriva.org> 0.24-1mdv2008.0 + Revision: 23368 - 0.24 - Create perl-GSSAPI