diff --git a/Log-Fast-1.0.6.tar.gz b/Log-Fast-1.0.6.tar.gz deleted file mode 100644 index 956defc..0000000 --- a/Log-Fast-1.0.6.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:51cec2b55115c6110d459f2faeb6d9b5d696beb1aee02f06d05474f24e1af970 -size 44137 diff --git a/Log-Fast-v2.0.0.tar.gz b/Log-Fast-v2.0.0.tar.gz new file mode 100644 index 0000000..e89abbe --- /dev/null +++ b/Log-Fast-v2.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:57a28d71fec0db8715da495dc8aa852453af0aa1609edace0ac966e68a792ec6 +size 15712 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..76ad4a4 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,28 @@ +--- +#description_paragraphs: 3 +#description: |- +# override description from CPAN +#summary: override summary from CPAN +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +#patches: +# foo.patch: -p1 +# bar.patch: +#preamble: |- +# BuildRequires: gcc-c++ +#post_prep: |- +# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` +# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL +#post_build: |- +# rm unused.files +#post_install: |- +# sed on %{name}.files +#license: SUSE-NonFree +#skip_noarch: 1 +#custom_build: |- +#./Build build flags=%{?_smp_mflags} --myflag +#custom_test: |- +#startserver && make test +#ignore_requires: Bizarre::Module diff --git a/perl-Log-Fast.changes b/perl-Log-Fast.changes new file mode 100644 index 0000000..9821e9d --- /dev/null +++ b/perl-Log-Fast.changes @@ -0,0 +1,6 @@ +------------------------------------------------------------------- +Fri Feb 19 10:28:41 UTC 2016 - coolo@suse.com + +- initial package 2.0.0 + * created by cpanspec 1.78.08 + diff --git a/perl-Log-Fast.spec b/perl-Log-Fast.spec index 8f54d1b..cbe4fd4 100644 --- a/perl-Log-Fast.spec +++ b/perl-Log-Fast.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Log-Fast # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,41 +17,23 @@ Name: perl-Log-Fast -Version: 1.0.6 +Version: 2.0.0 Release: 0 %define cpan_name Log-Fast Summary: Fast and flexible logger License: MIT Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Log-Fast/ -Source: http://www.cpan.org/authors/id/P/PO/POWERMAN/%{cpan_name}-%{version}.tar.gz +Source0: http://www.cpan.org/authors/id/P/PO/POWERMAN/%{cpan_name}-v%{version}.tar.gz +Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros +BuildRequires: perl(Module::Build::Tiny) >= 0.034 BuildRequires: perl(Sys::Syslog) >= 0.29 BuildRequires: perl(Test::Exception) -BuildRequires: perl(version) -#BuildRequires: perl(a) -#BuildRequires: perl(a::b) -#BuildRequires: perl(CPANPLUS::Backend) -#BuildRequires: perl(inc::Module::Install) -#BuildRequires: perl(JSON) -#BuildRequires: perl(Log::Fast) -#BuildRequires: perl(LWP::Simple) -#BuildRequires: perl(Module::AutoInstall) -#BuildRequires: perl(Module::Build) -#BuildRequires: perl(Module::Install::Base) -#BuildRequires: perl(Parse::CPAN::Meta) -#BuildRequires: perl(Test::Perl::Critic) -#BuildRequires: perl(YAML::Tiny) Requires: perl(Sys::Syslog) >= 0.29 -Requires: perl(version) -Recommends: perl(Pod::Coverage) >= 0.18 -Recommends: perl(Test::CheckManifest) >= 0.9 -Recommends: perl(Test::Perl::Critic) -Recommends: perl(Test::Pod) >= 1.22 -Recommends: perl(Test::Pod::Coverage) >= 1.08 %{perl_requires} %description @@ -64,27 +46,26 @@ levels or 20000 messages on disabled log levels in _one second_ will slow down your application only by 2-3%. Comparing to some other CPAN modules, this one (in average): faster than -the Log::Dispatch manpage in about 45 times, faster than the Log::Handler -manpage in about 15 times, faster than the Sys::Syslog manpage in about 7 -times, and slower than the Log::Syslog::Fast manpage in about 2 times. +Log::Dispatch in about 45 times, faster than Log::Handler in about 15 +times, faster than Sys::Syslog in about 7 times, and slower than +Log::Syslog::Fast in about 2 times. %prep -%setup -q -n %{cpan_name}-%{version} +%setup -q -n %{cpan_name}-v%{version} %build -%{__perl} Makefile.PL INSTALLDIRS=vendor -%{__make} %{?_smp_mflags} +%{__perl} Build.PL --installdirs=vendor +./Build build --flags=%{?_smp_mflags} %check -%{__make} test +./Build test %install -%perl_make_install -%perl_process_packlist +./Build install --destdir=%{buildroot} --create_packlist=0 %perl_gen_filelist %files -f %{name}.files %defattr(-,root,root,755) -%doc Changes README +%doc Changes LICENSE README %changelog