diff --git a/.cvsignore b/.cvsignore index e69de29..5ba3391 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +B-Hooks-OP-Check-0.15.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..875eddc --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +perl-B-Hooks-OP-Check-0_15-1_fc10:HEAD:perl-B-Hooks-OP-Check-0.15-1.fc10.src.rpm:1240347812 diff --git a/perl-B-Hooks-OP-Check.spec b/perl-B-Hooks-OP-Check.spec new file mode 100644 index 0000000..e5a7ec9 --- /dev/null +++ b/perl-B-Hooks-OP-Check.spec @@ -0,0 +1,66 @@ +Name: perl-B-Hooks-OP-Check +Version: 0.15 +Release: 1%{?dist} +# lib/B/Hooks/OP/Check.pm -> GPL+ or Artistic +License: GPL+ or Artistic +Group: Development/Libraries +Summary: Wrap OP check callbacks +Source: http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/B-Hooks-OP-Check-%{version}.tar.gz +Url: http://search.cpan.org/dist/B-Hooks-OP-Check +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +BuildRequires: perl(ExtUtils::Depends) +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42 +BuildRequires: perl(parent) +# testing +BuildRequires: perl(Test::More) + +# don't "provide" private Perl libs +%global _use_internal_dependency_generator 0 +%global __deploop() while read FILE; do /usr/lib/rpm/rpmdeps -%{1} ${FILE}; done | /bin/sort -u +%global __find_provides /bin/sh -c "%{__grep} -v '%{perl_vendorarch}/.*\\.so$' | %{__deploop P}" +%global __find_requires /bin/sh -c "%{__deploop R}" + +%description +This module provides a C API for XS modules to hook into the callbacks +of 'PL_check'. + +%prep +%setup -q -n B-Hooks-OP-Check-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} + +make pure_install PERL_INSTALL_ROOT=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' + +%{_fixperms} %{buildroot}/* + +%check +make test + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc Changes README +%{perl_vendorarch}/* +%exclude %dir %{perl_vendorarch}/auto +%{_mandir}/man3/*.3* + +%changelog +* Sat Apr 18 2009 Chris Weyl 0.15-1 +- submission + +* Sat Apr 18 2009 Chris Weyl 0.15-0 +- initial RPM packaging +- generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8) + diff --git a/sources b/sources index e69de29..4355e75 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +86aab1440d1fe933ebd4cf71d4a67ac2 B-Hooks-OP-Check-0.15.tar.gz