commit 05bee47ba6a23f985a085526a99d2db32fb0f54a Author: Mathieu Bridon <bochecha@xxxxxxxxxxxxxxxxx> Date: Thu Sep 15 13:22:04 2011 +0800 Initial packaging of perl-ExtUtils-H2PM. This package was submitted for review in Fedora on Thu Sep 15 2011: https://bugzilla.redhat.com/show_bug.cgi?id=738525#c0 perl-ExtUtils-H2PM.spec | 63 +++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 63 insertions(+), 0 deletions(-) --- diff --git a/perl-ExtUtils-H2PM.spec b/perl-ExtUtils-H2PM.spec new file mode 100644 index 0000000..9457239 --- /dev/null +++ b/perl-ExtUtils-H2PM.spec @@ -0,0 +1,63 @@ +Name: perl-ExtUtils-H2PM +Version: 0.07 +Release: 1%{?dist} +Summary: Automatically generate perl modules to wrap C header files +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/ExtUtils-H2PM/ +Source0: http://www.cpan.org/authors/id/P/PE/PEVANS/ExtUtils-H2PM-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: perl(ExtUtils::CBuilder) +BuildRequires: perl(Module::Build) +BuildRequires: perl(Test::More) + +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(ExtUtils::CBuilder) + +%{?perl_default_filter} + +%description +This module assists in generating wrappers around system functionallity, +such as socket() types or ioctl() calls, where the only interesting +features required are the values of some constants or layouts of structures +normally only known to the C header files. Rather than writing an entire XS +module just to contain some constants and pack/unpack functions, this +module allows the author to generate, at module build time, a pure perl +module containing constant declarations and structure utility functions. +The module then requires no XS module to be loaded at run time. + + +%prep +%setup -q -n ExtUtils-H2PM-%{version} + + +%build +%{__perl} Build.PL installdirs=vendor optimize="%{optimize}" +./Build + + +%install +./Build install destdir=%{buildroot} create_packlist=0 +find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \; +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} %{buildroot}/* + + +%check +./Build test + + +%files +%defattr(-,root,root,-) +%doc Changes LICENSE README +%{perl_vendorlib}/* +%{_mandir}/man3/* + + +%changelog +* Mon Sep 12 2011 Mathieu Bridon <bochecha@xxxxxxxxxxxxxxxxx> 0.07-1 +- Specfile autogenerated by cpanspec 1.78. +- Slightly tweaked the specfile (removed buildroot lines, made noarch) -- 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