diff --git a/.gitignore b/.gitignore index e69de29..d3c2c2b 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Module-Install-Repository-0.06.tar.gz diff --git a/perl-Module-Install-Repository.spec b/perl-Module-Install-Repository.spec new file mode 100644 index 0000000..7f9216d --- /dev/null +++ b/perl-Module-Install-Repository.spec @@ -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 0.06-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..02f3f7c 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +cea8fc958cebe19e1be64d7cadbbc470 Module-Install-Repository-0.06.tar.gz