perl-Crypt-OpenSSL-Random-vl.spec 2.1 KB

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