diff --git a/Dist-Zilla-Plugin-CheckChangesHasContent-0.003.tar.gz b/Dist-Zilla-Plugin-CheckChangesHasContent-0.003.tar.gz deleted file mode 100644 index 662bddf..0000000 --- a/Dist-Zilla-Plugin-CheckChangesHasContent-0.003.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:27ac8b70e8ee9b792425e9eb0d0b3b9d528b12c8c45e3c3c687cdce7cde3d409 -size 8927 diff --git a/Dist-Zilla-Plugin-CheckChangesHasContent-0.011.tar.gz b/Dist-Zilla-Plugin-CheckChangesHasContent-0.011.tar.gz new file mode 100644 index 0000000..76e9300 --- /dev/null +++ b/Dist-Zilla-Plugin-CheckChangesHasContent-0.011.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ab970b50349f87975ac7e3d5f0297f8d67e4f6fe09564778f27f42eca27ea154 +size 18012 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..b89672b --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,23 @@ +--- +#description_paragraphs: 3 +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +#patches: +# foo.patch: -p1 +# bar.patch: +# preamble: |- +# BuildRequires: foo +#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_install: |- +# sed on %{name}.files +#license: SUSE-NonFree +#skip_noarch: 1 +#custom_build: - +#./Build build flags=%{?_smp_mflags} --myflag +custom_test: |- + export TZ=US/Central + make test diff --git a/perl-Dist-Zilla-Plugin-CheckChangesHasContent.changes b/perl-Dist-Zilla-Plugin-CheckChangesHasContent.changes index d3827c3..27d056e 100644 --- a/perl-Dist-Zilla-Plugin-CheckChangesHasContent.changes +++ b/perl-Dist-Zilla-Plugin-CheckChangesHasContent.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Mar 29 11:42:29 UTC 2019 - John Vandenberg + +- Add custom TZ environment variable needed for tests +- updated package to v0.011 by cpanspec 1.78.09 + ------------------------------------------------------------------- Fri Nov 18 09:09:57 UTC 2011 - coolo@suse.com @@ -8,4 +14,3 @@ Fri Jan 21 19:38:22 UTC 2011 - coolo@novell.com - initial package 0.003 * created by cpanspec 1.78.03 - diff --git a/perl-Dist-Zilla-Plugin-CheckChangesHasContent.spec b/perl-Dist-Zilla-Plugin-CheckChangesHasContent.spec index 0baa184..22b5e4a 100644 --- a/perl-Dist-Zilla-Plugin-CheckChangesHasContent.spec +++ b/perl-Dist-Zilla-Plugin-CheckChangesHasContent.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Dist-Zilla-Plugin-CheckChangesHasContent # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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 @@ -12,39 +12,53 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # - Name: perl-Dist-Zilla-Plugin-CheckChangesHasContent -Version: 0.003 -Release: 1 -License: Apache Software License +Version: 0.011 +Release: 0 %define cpan_name Dist-Zilla-Plugin-CheckChangesHasContent Summary: Ensure Changes has content before releasing -Url: http://search.cpan.org/dist/Dist-Zilla-Plugin-CheckChangesHasContent/ +License: Apache-2.0 Group: Development/Libraries/Perl -Source: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Dist-Zilla-Plugin-CheckChangesHasContent-%{version}.tar.gz -BuildRequires: perl(Capture::Tiny) -BuildRequires: perl(Dist::Zilla) >= 2.100950 -BuildRequires: perl(Dist::Zilla::Role::BeforeRelease) -BuildRequires: perl(Dist::Zilla::Tester) -BuildRequires: perl(File::Find) -BuildRequires: perl(File::pushd) -BuildRequires: perl(File::Temp) -BuildRequires: perl(Moose) >= 0.99 -BuildRequires: perl(namespace::autoclean) >= 0.09 -BuildRequires: perl(Try::Tiny) +Url: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros -Requires: perl(Dist::Zilla) >= 2.100950 +BuildRequires: perl(Capture::Tiny) +BuildRequires: perl(Data::Section) >= 0.200002 +BuildRequires: perl(Dist::Zilla) >= 6 +BuildRequires: perl(Dist::Zilla::File::InMemory) +BuildRequires: perl(Dist::Zilla::Role::BeforeRelease) +BuildRequires: perl(Dist::Zilla::Role::FileGatherer) +BuildRequires: perl(Dist::Zilla::Role::FileMunger) +BuildRequires: perl(Dist::Zilla::Role::TextTemplate) +BuildRequires: perl(Dist::Zilla::Tester) +BuildRequires: perl(Moose) >= 2 +BuildRequires: perl(Moose::Util::TypeConstraints) +BuildRequires: perl(Path::Tiny) +BuildRequires: perl(Sub::Exporter::ForMethods) +BuildRequires: perl(Test::Fatal) +BuildRequires: perl(Test::More) >= 0.88 +BuildRequires: perl(autodie) >= 2.00 +BuildRequires: perl(namespace::autoclean) >= 0.28 +Requires: perl(Data::Section) >= 0.200002 +Requires: perl(Dist::Zilla) >= 6 +Requires: perl(Dist::Zilla::File::InMemory) Requires: perl(Dist::Zilla::Role::BeforeRelease) -Requires: perl(File::pushd) -Requires: perl(Moose) >= 0.99 -Requires: perl(namespace::autoclean) >= 0.09 -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildArch: noarch +Requires: perl(Dist::Zilla::Role::FileGatherer) +Requires: perl(Dist::Zilla::Role::FileMunger) +Requires: perl(Dist::Zilla::Role::TextTemplate) +Requires: perl(Moose) >= 2 +Requires: perl(Moose::Util::TypeConstraints) +Requires: perl(Sub::Exporter::ForMethods) +Requires: perl(autodie) >= 2.00 +Requires: perl(namespace::autoclean) >= 0.28 %{perl_requires} %description @@ -52,51 +66,53 @@ This is a "before release" Dist::Zilla plugin that ensures that your Changes file actually has some content since the last release. If it doesn't find any, it will abort the release process. +This can be contrasted to Dist::Zilla::Plugin::Test::ChangesHasContent, +which generates a test to perform the check. + The algorithm is very naive. It looks for an unindented line starting with the version to be released. It then looks for any text from that line until the next unindented line (or the end of the file), ignoring whitespace. For example, in the file below, algorithm will find "- blah blah blah": - Changes file for Foo-Bar - - {{$NEXT}} - - - blah blah blah - - 0.001 Wed May 12 13:49:13 EDT 2010 - - - the first release + Changes file for Foo-Bar -If you had nothing but whitespace between ' {{$NEXT}} ' and ' 0.001 ', the + {{$NEXT}} + + - blah blah blah + + 0.001 Wed May 12 13:49:13 EDT 2010 + + - the first release + +If you had nothing but whitespace between '{{$NEXT}}' and '0.001', the release would be halted. If you name your change log something other than "Changes", you can configure the name with the 'changelog' argument: - [CheckChangesHasContent] - changelog = ChangeLog + [CheckChangesHasContent] + changelog = ChangeLog %prep %setup -q -n %{cpan_name}-%{version} %build -%{__perl} Makefile.PL INSTALLDIRS=vendor -%{__make} %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} %check -%{__make} test +export TZ=US/Central +make test %install %perl_make_install %perl_process_packlist %perl_gen_filelist -%clean -%{__rm} -rf %{buildroot} - %files -f %{name}.files -%defattr(644,root,root,755) -%doc Changes dist.ini LICENSE README weaver.ini +%defattr(-,root,root,755) +%doc Changes CONTRIBUTING.mkdn README +%license LICENSE %changelog