perl-Crypt-OpenSSL-RSA-vl.spec 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. Summary: Crypt-OpenSSL-RSA Perl module
  2. Name: perl-Crypt-OpenSSL-RSA
  3. Version: 0.31
  4. Release: 2%{?_dist_release}
  5. License: GPL or Artistic
  6. Group: Development/Libraries
  7. URL: http://search.cpan.org/dist/Crypt-OpenSSL-RSA/
  8. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  9. BuildRequires: openssl-devel
  10. BuildRequires: perl-Crypt-OpenSSL-Guess
  11. Requires: perl-Crypt-OpenSSL-Random
  12. Source0: Crypt-OpenSSL-RSA-%{version}.tar.gz
  13. Vendor: Project Vine
  14. Distribution: Vine Linux
  15. Packager: tomop
  16. %description
  17. Crypt::OpenSSL::RSA is an XS perl module designed to provide basic RSA
  18. functionality. It does this by providing a glue to the RSA functions
  19. in the OpenSSL library.
  20. %prep
  21. %setup -q -n Crypt-OpenSSL-RSA-%{version}
  22. %build
  23. CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS="vendor"
  24. make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
  25. %install
  26. rm -rf $RPM_BUILD_ROOT
  27. make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
  28. find $RPM_BUILD_ROOT -type f -a \( -name perllocal.pod -o -name .packlist \
  29. -o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';'
  30. find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
  31. chmod -R u+w $RPM_BUILD_ROOT/*
  32. for brp in %{_prefix}/lib/rpm/%{_build_vendor}/brp-compress \
  33. %{_prefix}/lib/rpm/brp-compress
  34. do
  35. [ -x $brp ] && $brp && break
  36. done
  37. find $RPM_BUILD_ROOT -type f \
  38. | sed "s@^$RPM_BUILD_ROOT@@g" \
  39. > %{name}-%{version}-%{release}-filelist
  40. eval `%{__perl} -V:archname -V:installsitelib -V:installvendorlib -V:installprivlib`
  41. for d in $installsitelib $installvendorlib $installprivlib; do
  42. [ -z "$d" -o "$d" = "UNKNOWN" -o ! -d "$RPM_BUILD_ROOT$d" ] && continue
  43. find $RPM_BUILD_ROOT$d/* -type d \
  44. | grep -v "/$archname\(/auto\)\?$" \
  45. | sed "s@^$RPM_BUILD_ROOT@%dir @g" \
  46. >> %{name}-%{version}-%{release}-filelist
  47. done
  48. if [ "$(cat %{name}-%{version}-%{release}-filelist)X" = "X" ] ; then
  49. echo "ERROR: EMPTY FILE LIST"
  50. exit 1
  51. fi
  52. %clean
  53. rm -rf $RPM_BUILD_ROOT
  54. %files -f %{name}-%{version}-%{release}-filelist
  55. %defattr(-,root,root,-)
  56. %license LICENSE
  57. %doc Changes README
  58. %changelog
  59. * Sun May 19 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.31-2
  60. - rebuilt with perl-5.26.
  61. * Sun Nov 18 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.31-1
  62. - new upstream release.
  63. * Mon May 9 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.28-3
  64. - rebuilt with openssl-1.0.2.
  65. * Mon Jun 30 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.28-2
  66. - rebuilt with perl-5.16.3.
  67. * Thu Mar 27 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.28-1
  68. - new upstream release.
  69. * Tue Apr 29 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 0.25-1
  70. - initial build.