3 %bcond_without tests # do not perform "make test"
6 Summary: GSSAPI - Perl extension providing access to the GSSAPIv2 library
7 Summary(pl.UTF-8): GSSAPI - rozszerzenie Perla dające dostęp do biblioteki GSSAPIv2
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-authors/id/A/AG/AGROLMS/GSSAPI-%{version}.tar.gz
15 # Source0-md5: 65f00a0749212af064289c8a05e59b3f
16 URL: https://metacpan.org/dist/GSSAPI
17 BuildRequires: heimdal-devel
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: rpmbuild(macros) >= 1.745
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 This module gives access to the routines of the GSSAPI library, as
26 described in RFC 2743 and RFC 2744 and implemented by the Kerberos-1.2
27 distribution from MIT.
29 %description -l pl.UTF-8
30 Ten moduł daje dostęp do funkcji bibliotecznych GSSAPI określonych
31 przez RFC 2743 i RFC 2744 i zaimplementowanych przez MIT w dystrybucji
35 %setup -q -n %{pdir}-%{version}
38 %{__perl} Makefile.PL \
42 OPTIMIZE="%{rpmcflags}"
44 %{?with_tests:%{__make} test}
47 rm -rf $RPM_BUILD_ROOT
50 DESTDIR=$RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
53 cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
61 %{perl_vendorarch}/GSSAPI.pm
62 %dir %{perl_vendorarch}/GSSAPI
63 %{perl_vendorarch}/GSSAPI/*.pm
64 %dir %{perl_vendorarch}/GSSAPI/OID
65 %{perl_vendorarch}/GSSAPI/OID/Set.pm
66 %dir %{perl_vendorarch}/auto/GSSAPI
67 %attr(755,root,root) %{perl_vendorarch}/auto/GSSAPI/GSSAPI.so
68 %{_mandir}/man3/GSSAPI*.3pm*
69 %{_examplesdir}/%{name}-%{version}