1 | %define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib) |
---|
2 | |
---|
3 | Summary: Perl extension providing access to the GSSAPIv2 library |
---|
4 | Name: perl-GSSAPI |
---|
5 | Version: 0.28 |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | License: distributable |
---|
8 | Group: Development/Libraries |
---|
9 | URL: http://search.cpan.org/~gbarr/Authen-SASL/ |
---|
10 | Source0: GSSAPI-%{version}.tar.gz |
---|
11 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
12 | #BuildArch: noarch |
---|
13 | BuildRequires: krb5-devel |
---|
14 | BuildRequires: perl-Test-Pod |
---|
15 | BuildRequires: perl-Test-Pod-Coverage |
---|
16 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
17 | |
---|
18 | %description |
---|
19 | This module gives access to the routines of the GSSAPI library, as |
---|
20 | described in rfc2743 and rfc2744 and implemented by the Kerberos-1.2 |
---|
21 | distribution from MIT. |
---|
22 | |
---|
23 | %prep |
---|
24 | %setup -q -n GSSAPI-%{version} |
---|
25 | |
---|
26 | %build |
---|
27 | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor |
---|
28 | make OPTIMIZE="%{optflags}" |
---|
29 | |
---|
30 | %install |
---|
31 | rm -rf $RPM_BUILD_ROOT |
---|
32 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
33 | |
---|
34 | [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress |
---|
35 | |
---|
36 | find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \; |
---|
37 | |
---|
38 | find $RPM_BUILD_ROOT/usr -type f -print | |
---|
39 | sed "s@^$RPM_BUILD_ROOT@@g" | |
---|
40 | grep -v perllocal.pod | |
---|
41 | grep -v "\.packlist" > GSSAPI-%{version}-filelist |
---|
42 | if [ "$(cat GSSAPI-%{version}-filelist)X" = "X" ] ; then |
---|
43 | echo "ERROR: EMPTY FILE LIST" |
---|
44 | exit -1 |
---|
45 | fi |
---|
46 | |
---|
47 | %clean |
---|
48 | rm -rf $RPM_BUILD_ROOT |
---|
49 | |
---|
50 | %check |
---|
51 | make test |
---|
52 | |
---|
53 | %files -f GSSAPI-%{version}-filelist |
---|
54 | %defattr(-,root,root,-) |
---|
55 | %dir %{perl_vendorarch}/GSSAPI |
---|
56 | %dir %{perl_vendorarch}/auto/GSSAPI |
---|
57 | |
---|
58 | %changelog |
---|
59 | * Thu Jul 3 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.28-1 |
---|
60 | - new upstream release. |
---|
61 | |
---|
62 | * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.26-2 |
---|
63 | - rebuild with perl-5.12.3 |
---|
64 | |
---|
65 | * Wed Mar 11 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.26-1 |
---|
66 | - initial package for Vine Linux |
---|