Initial import

This commit is contained in:
Jitka Plesnikova 2012-05-22 15:42:13 +02:00
parent 2ddd3cc1df
commit 768c2d6ade
3 changed files with 58 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/Module-Install-Repository-0.06.tar.gz

View File

@ -0,0 +1,56 @@
Name: perl-Module-Install-Repository
Version: 0.06
Release: 1%{?dist}
Summary: Automatically sets repository URL from Svn/Svk/Git checkout
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Module-Install-Repository/
Source0: http://www.cpan.org/authors/id/M/MI/MIYAGAWA/Module-Install-Repository-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl >= 0:5.005
BuildRequires: perl(inc::Module::Install)
BuildRequires: perl(base)
BuildRequires: perl(Module::Install::AuthorTests)
BuildRequires: perl(Module::Install::Base)
BuildRequires: perl(Module::Install::TestBase)
# Tests
BuildRequires: perl(File::Temp)
BuildRequires: perl(Path::Class)
BuildRequires: perl(Test::More)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
Module::Install::Repository is a Module::Install plugin to automatically
figure out repository URL and set it via repository() which then will be
added to resources under META.yml.
%prep
%setup -q -n Module-Install-Repository-%{version}
rm -r inc
sed -i -e '/^inc\// d' MANIFEST
sed -i -e '/^auto_set_repository/ d' Makefile.PL
find -type f -exec chmod -x {} +
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
rm -r inc/.author
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Wed May 16 2012 Jitka Plesnikova <jplesnik@redhat.com> 0.06-1
- Specfile autogenerated by cpanspec 1.78.

View File

@ -0,0 +1 @@
cea8fc958cebe19e1be64d7cadbbc470 Module-Install-Repository-0.06.tar.gz