perl-Module-Install-GithubMeta/perl-Module-Install-GithubMeta.spec
2010-05-03 08:26:14 +00:00

79 lines
2.3 KiB
RPMSpec

Name: perl-Module-Install-GithubMeta
Version: 0.10
Release: 3%{?dist}
# lib/Module/Install/GithubMeta.pm -> GPL+ or Artistic
License: GPL+ or Artistic
Group: Development/Libraries
Summary: A Module::Install extension to include GitHub meta information in META.yml
Source: http://search.cpan.org/CPAN/authors/id/B/BI/BINGOS/Module-Install-GithubMeta-%{version}.tar.gz
Url: http://search.cpan.org/dist/Module-Install-GithubMeta
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildArch: noarch
BuildRequires: perl(Capture::Tiny) >= 0.05
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
BuildRequires: perl(Module::Install) >= 0.85
BuildRequires: perl(Test::More) >= 0.47
BuildRequires: perl(Test::Pod)
Requires: perl(Module::Install) >= 0.85
%{?perl_default_filter}
%description
Module::Install::GithubMeta is a Module::Install extension
to include GitHub (http://github.com) meta information in
'META.yml'. It automatically detects if the distribution
directory is under 'git' version control and whether the
'origin' is a GitHub repository; if so, it will set the
'repository' and 'homepage' meta in 'META.yml' to the
appropriate URLs for GitHub.
%prep
%setup -q -n Module-Install-GithubMeta-%{version}
cat README | iconv -f `file --mime-encoding --brief README` -t UTF-8 > x
mv x README
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
%{_fixperms} %{buildroot}/*
%check
make test
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc Changes LICENSE README
%{perl_vendorlib}/*
%{_mandir}/man3/*.3*
%changelog
* Mon May 03 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.10-3
- Mass rebuild with perl-5.12.0
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.10-2
- rebuild against perl 5.10.1
* Fri Sep 11 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.10-1
- submission
* Fri Sep 11 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.10-0
- initial RPM packaging
- generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8)