perl-Class-Gomor-vl.spec 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. Name: perl-Class-Gomor
  2. Summary: Perl module that implements another class and object builder
  3. Version: 1.02
  4. Release: 1%{?_dist_release}
  5. License: Artistic or GPL+
  6. Group: Development/Libraries
  7. URL: http://search.cpan.org/dist/Class-Gomor/
  8. Source: http://search.cpan.org/CPAN/authors/id/G/GO/GOMOR/Class-Gomor-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  10. BuildArch: noarch
  11. BuildRequires: perl
  12. BuildRequires: perl(Data::Dumper)
  13. BuildRequires: perl(ExtUtils::MakeMaker)
  14. %description
  15. Class-Gomor is a Perl module that implements another class and object builder.
  16. %prep
  17. %setup -n Class-Gomor-%{version}
  18. %build
  19. %{__perl} Makefile.PL INSTALLDIRS="vendor"
  20. %{__make} %{?_smp_mflags}
  21. %install
  22. %{__rm} -rf %{buildroot}
  23. %{__make} pure_install DESTDIR=%{buildroot}
  24. ### Clean up buildroot
  25. find %{buildroot} -name .packlist -exec %{__rm} {} \;
  26. ### Clean up docs
  27. find examples/ -type f -exec %{__chmod} a-x {} \;
  28. %clean
  29. %{__rm} -rf %{buildroot}
  30. %files
  31. %defattr(-, root, root, 0755)
  32. %doc Changes LICENSE LICENSE.Artistic MANIFEST META.yml README examples/
  33. %doc %{_mandir}/man3/*.3pm*
  34. %dir %{perl_vendorlib}/Class/
  35. %{perl_vendorlib}/Class/Gomor/
  36. %{perl_vendorlib}/Class/Gomor.pm
  37. %changelog
  38. * Mon Mar 05 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.02-1
  39. - initial build for Vine Linux