commit f600d959a57a8935cf7642f85071071b6ca38d19 Author: Petr Písař <ppisar@xxxxxxxxxx> Date: Fri Feb 15 09:36:26 2013 +0100 Import .gitignore | 1 + ...-0.43-Fix-test-to-use-renamed-requires_xs.patch | 26 +++++++ perl-Module-Install-XSUtil.spec | 76 ++++++++++++++++++++ sources | 1 + 4 files changed, 104 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..9c9dc0c 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Module-Install-XSUtil-0.43.tar.gz diff --git a/Module-Install-XSUtil-0.43-Fix-test-to-use-renamed-requires_xs.patch b/Module-Install-XSUtil-0.43-Fix-test-to-use-renamed-requires_xs.patch new file mode 100644 index 0000000..693d9cf --- /dev/null +++ b/Module-Install-XSUtil-0.43-Fix-test-to-use-renamed-requires_xs.patch @@ -0,0 +1,26 @@ +From c11031cb15f1568e91a53b3b57a6752cc1e9f176 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@xxxxxxxxxx> +Date: Tue, 12 Feb 2013 16:44:15 +0100 +Subject: [PATCH] Fix test to use renamed requires_xs() + +<https://rt.cpan.org/Public/Bug/Display.html?id=77780> +--- + example/MyMakefile.PL | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/example/MyMakefile.PL b/example/MyMakefile.PL +index f6b1adc..e52644f 100644 +--- a/example/MyMakefile.PL ++++ b/example/MyMakefile.PL +@@ -15,7 +15,7 @@ BEGIN{ + + all_from 'lib/Foo.pm'; + +-requires_xs 'B::Hooks::OP::Annotation'; # for testing only ++requires_xs_module 'B::Hooks::OP::Annotation'; # for testing only + + use_ppport 3.19; + use_xshelper -clean; +-- +1.8.1.2 + diff --git a/perl-Module-Install-XSUtil.spec b/perl-Module-Install-XSUtil.spec new file mode 100644 index 0000000..ebd2c10 --- /dev/null +++ b/perl-Module-Install-XSUtil.spec @@ -0,0 +1,76 @@ +Name: perl-Module-Install-XSUtil +Version: 0.43 +Release: 1%{?dist} +Summary: Utility functions for XS modules +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Module-Install-XSUtil/ +Source0: http://www.cpan.org/authors/id/G/GF/GFUJI/Module-Install-XSUtil-%{version}.tar.gz +# Fix test, CPAN RT#77780 +Patch0: Module-Install-XSUtil-0.43-Fix-test-to-use-renamed-requires_xs.patch +BuildArch: noarch +BuildRequires: perl +BuildRequires: perl(inc::Module::Install) +BuildRequires: perl(Module::Install::Repository) +# Run-time: +BuildRequires: perl(Config) +BuildRequires: perl(constant) +BuildRequires: perl(Devel::CheckLib) >= 0.4 +BuildRequires: perl(ExtUtils::ParseXS) >= 2.21 +BuildRequires: perl(File::Basename) +BuildRequires: perl(File::Find) +BuildRequires: perl(File::Spec) +BuildRequires: perl(File::Temp) +BuildRequires: perl(Module::Install) >= 0.91 +BuildRequires: perl(Module::Install::Base) +# Optional: +BuildRequires: perl(Devel::PPPort) >= 3.19 +# Tests: +BuildRequires: perl(Test::More) >= 0.88 +# Run authors tests because these are the only real tests +BuildRequires: perl(B::Hooks::OP::Annotation) >= 0.43 +BuildRequires: perl(File::Copy) +BuildRequires: perl(FindBin) +BuildRequires: perl(lib) +BuildRequires: perl(Module::Install::AuthorTests) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(Devel::CheckLib) >= 0.4 +Requires: perl(ExtUtils::ParseXS) >= 2.21 +Requires: perl(File::Basename) +Requires: perl(File::Temp) +Requires: perl(Module::Install) >= 0.91 +Requires: perl(XSLoader) >= 0.1 + +%description +Module::Install::XSUtil provides a set of utilities to setup distributions +which include or depend on an XS module. + +%prep +%setup -q -n Module-Install-XSUtil-%{version} +%patch0 -p1 +# Remove bundled modules +rm -rf inc/* +sed -i -e '/^inc\//d' MANIFEST +# Run author tests, setting TEST_FILES clashes with nested test (CPAN RT#77780) +mkdir inc/.author + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Tue Feb 12 2013 Petr Pisar <ppisar@xxxxxxxxxx> 0.43-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..6dc9558 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +b726d8aa6c1cd2c30076e8c04ad273e1 Module-Install-XSUtil-0.43.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