commit 6ca157bb4aee85b42a4f6a860f4c63d235a29a26 Author: Jitka Plesnikova <jplesnik@xxxxxxxxxx> Date: Thu Jun 28 16:33:28 2012 +0200 Initial import .gitignore | 1 + perl-Module-Install-AutoLicense.spec | 60 ++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 62 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..0da4d98 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Module-Install-AutoLicense-0.08.tar.gz diff --git a/perl-Module-Install-AutoLicense.spec b/perl-Module-Install-AutoLicense.spec new file mode 100644 index 0000000..237a049 --- /dev/null +++ b/perl-Module-Install-AutoLicense.spec @@ -0,0 +1,60 @@ +Name: perl-Module-Install-AutoLicense +Version: 0.08 +Release: 1%{?dist} +Summary: Module::Install extension to automatically generate LICENSE files +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Module-Install-AutoLicense/ +Source0: http://www.cpan.org/authors/id/B/BI/BINGOS/Module-Install-AutoLicense-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl >= 1:5.6.0 +BuildRequires: perl(inc::Module::Install) >= 0.85 +BuildRequires: perl(base) +BuildRequires: perl(Capture::Tiny) >= 0.05 +BuildRequires: perl(File::Path) +BuildRequires: perl(File::Temp) +BuildRequires: perl(Module::Install) >= 0.85 +BuildRequires: perl(Module::Install::Base) +BuildRequires: perl(Module::Install::GithubMeta) +BuildRequires: perl(Software::License) >= 0.01 +BuildRequires: perl(Test::More) >= 0.47 +BuildRequires: perl(Test::Pod) >= 1.00 +BuildRequires: perl(Test::Pod::Coverage) >= 1.00 +Requires: perl(Module::Install) >= 0.85 +Requires: perl(Software::License) >= 0.01 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +Module::Install::AutoLicense is a Module::Install extension that generates +a LICENSE file automatically whenever the author runs Makefile.PL. On the +user side it does nothing. + +%prep +%setup -q -n Module-Install-AutoLicense-%{version} +rm -r inc +sed -i -e '/^inc\// d' MANIFEST +find -type f -exec chmod -x {} + + +%build +%{__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 +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Mon Jun 25 2012 Jitka Plesnikova <jplesnik@xxxxxxxxxx> 0.08-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..f39b5c7 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +1bdc939ddf41388ee6893f1339726d09 Module-Install-AutoLicense-0.08.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel