commit 28c963eb19bf4bc894bb0c5161b2b5ec922d0bec Author: Ralf CorsÃpius <corsepiu@xxxxxxxxxxxxxxxxx> Date: Thu Mar 31 04:24:38 2011 +0200 Import. .gitignore | 1 + perl-CHI.spec | 150 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 152 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..071d67c 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/CHI-0.44.tar.gz diff --git a/perl-CHI.spec b/perl-CHI.spec new file mode 100644 index 0000000..2427c53 --- /dev/null +++ b/perl-CHI.spec @@ -0,0 +1,150 @@ +Name: perl-CHI +Version: 0.44 +Release: 2%{?dist} +Summary: Unified cache handling interface +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/CHI/ +Source0: http://www.cpan.org/authors/id/J/JS/JSWARTZ/CHI-%{version}.tar.gz +BuildArch: noarch + +%bcond_without author_tests + +%bcond_without smoke_tests + +BuildRequires: perl(Carp::Assert) >= 0.20 +BuildRequires: perl(Compress::Zlib) +BuildRequires: perl(Data::UUID) +BuildRequires: perl(Date::Parse) +BuildRequires: perl(Digest::JHash) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Spec) >= 0.80 +BuildRequires: perl(Hash::MoreUtils) +BuildRequires: perl(JSON) +BuildRequires: perl(List::MoreUtils) >= 0.13 +BuildRequires: perl(Log::Any) >= 0.08 +BuildRequires: perl(Log::Any::Adapter::Dispatch) >= 0.05 +BuildRequires: perl(Module::Load::Conditional) +BuildRequires: perl(Moose) >= 0.66 +BuildRequires: perl(Storable) +BuildRequires: perl(Task::Weaken) +BuildRequires: perl(Test::Builder) +BuildRequires: perl(Test::Class) +BuildRequires: perl(Test::Deep) +BuildRequires: perl(Test::Exception) +BuildRequires: perl(Test::Log::Dispatch) +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::Warn) +BuildRequires: perl(Time::Duration) >= 1.06 +BuildRequires: perl(Time::Duration::Parse) >= 0.03 +BuildRequires: perl(Try::Tiny) >= 0.05 + +%if %{with author_tests} +BuildRequires: perl(Test::Pod) +BuildRequires: perl(Module::Mask) +%endif + +%if %{with smoke_tests} +BuildRequires: perl(Cache::FileCache) +BuildRequires: perl(Cache::FastMmap) +%endif + +%if 0%{?fedora} < 15 +# Fedora < 15's rpm misses these: +Requires: perl(Exporter) +%endif +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + + +%{?perl_filter_default} + +%{?filter_setup: +%filter_from_provides /^perl(Bar)/d +%filter_from_provides /^perl(Baz)/d +%filter_from_provides /^perl(DummySerializer)/d +%filter_from_provides /^perl(Foo)/d +# Replace unversioned dependencies with versioned ones. +%filter_from_requires s/^perl(Carp::Assert)$/perl(Carp::Assert) >= 0.20/ +%filter_from_requires s/^perl(List::MoreUtils)$/perl(List::MoreUtils) >= 0.13/ +%filter_from_requires s/^perl(Log::Any)$/perl(Log::Any) >= 0.06/ +%filter_from_requires s/^perl(Moose)$/perl(Moose) >= 0.66/ +%filter_from_requires s/^perl(Time::Duration)$/perl(Time::Duration) >= 1.06/ +%filter_from_requires s/^perl(Time::Duration::Parse)$/perl(Time::Duration::Parse) >= 0.03/ +%filter_setup +} + +%description +CHI provides a unified caching API, designed to assist a developer in +persisting data for a specified period of time. + +%package Test +Group: Development/Libraries +Summary: CHI::Test module +Requires: perl-CHI = %{version}-%{release} + +%if 0%{?fedora} < 15 +# Fedora < 15's rpm misses these: +Requires: perl(Exporter) +Requires: perl(Test::Class) +%endif + +%description Test +CHI::Test and CHI::t perl modules + +%prep +%setup -q -n CHI-%{version} +# Fix bogus permissions +find lib \( -type f -a -executable \) -exec chmod -x {} \; + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor --skipdeps +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 %{?with_author_tests:AUTHOR_TESTING=1} %{?with_smoke_tests:AUTOMATED_TESTING=1} + +%files +%defattr(-,root,root,-) +%doc Changes LICENSE README htdocs/CHI/* +%dir %{perl_vendorlib}/CHI +%{perl_vendorlib}/CHI.pm +%{perl_vendorlib}/CHI/Benchmarks.pod +%{perl_vendorlib}/CHI/CacheObject.pm +%{perl_vendorlib}/CHI/Constants.pm +%{perl_vendorlib}/CHI/Driver* +%{perl_vendorlib}/CHI/Serializer +%{perl_vendorlib}/CHI/Stats.pm +%{perl_vendorlib}/CHI/Types.pm +%{perl_vendorlib}/CHI/Util.pm +%{_mandir}/man3/* + +%files Test +%defattr(-,root,root,-) +%dir %{perl_vendorlib}/CHI +%{perl_vendorlib}/CHI/t +%{perl_vendorlib}/CHI/Test* + +%changelog +* Tue Mar 29 2011 Ralf CorsÃpius <corsepiu@xxxxxxxxxxxxxxxxx> 0.44-2 +- Change %%bcond_with author_tests into %%bcond_without author_tests. + +* Tue Mar 29 2011 Ralf CorsÃpius <corsepiu@xxxxxxxxxxxxxxxxx> 0.44-1 +- Upstream update. +- Extend provides-filter to filter versioned perl(Foo), + perl(Bar), perl(Baz), perl(DummySerializer). +- Add %%bcond_with author_tests and %%bcond_without smoke_tests. +- Split out CHI::Test and CHI::t into separate sub-package. + +* Mon Mar 14 2011 Ralf CorsÃpius <corsepiu@xxxxxxxxxxxxxxxxx> 0.42-1 +- Upstream update. + +* Mon Feb 07 2011 Ralf CorsÃpius <corsepiu@xxxxxxxxxxxxxxxxx> 0.36-1 +- Initial Fedora package. diff --git a/sources b/sources index e69de29..d9eeb8b 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +67086f7fb1b7c8f9ceb1553038ee08e0 CHI-0.44.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