perl-GSSAPI-vl.spec 1.8 KB

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