Accepting request 689896 from home:jayvdb:branches:devel:languages:perl
- Add custom TZ environment variable needed for tests - updated package to v0.011 by cpanspec 1.78.09 OBS-URL: https://build.opensuse.org/request/show/689896 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Dist-Zilla-Plugin-CheckChangesHasContent?expand=0&rev=5
This commit is contained in:
committed by
Git OBS Bridge
parent
b6e49ac487
commit
cd7b5b7915
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:27ac8b70e8ee9b792425e9eb0d0b3b9d528b12c8c45e3c3c687cdce7cde3d409
|
|
||||||
size 8927
|
|
3
Dist-Zilla-Plugin-CheckChangesHasContent-0.011.tar.gz
Normal file
3
Dist-Zilla-Plugin-CheckChangesHasContent-0.011.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:ab970b50349f87975ac7e3d5f0297f8d67e4f6fe09564778f27f42eca27ea154
|
||||||
|
size 18012
|
23
cpanspec.yml
Normal file
23
cpanspec.yml
Normal file
@@ -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
|
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Mar 29 11:42:29 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||||
|
|
||||||
|
- 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
|
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
|
- initial package 0.003
|
||||||
* created by cpanspec 1.78.03
|
* created by cpanspec 1.78.03
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-Dist-Zilla-Plugin-CheckChangesHasContent
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# 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
|
Name: perl-Dist-Zilla-Plugin-CheckChangesHasContent
|
||||||
Version: 0.003
|
Version: 0.011
|
||||||
Release: 1
|
Release: 0
|
||||||
License: Apache Software License
|
|
||||||
%define cpan_name Dist-Zilla-Plugin-CheckChangesHasContent
|
%define cpan_name Dist-Zilla-Plugin-CheckChangesHasContent
|
||||||
Summary: Ensure Changes has content before releasing
|
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
|
Group: Development/Libraries/Perl
|
||||||
Source: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Dist-Zilla-Plugin-CheckChangesHasContent-%{version}.tar.gz
|
Url: https://metacpan.org/release/%{cpan_name}
|
||||||
BuildRequires: perl(Capture::Tiny)
|
Source0: https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/%{cpan_name}-%{version}.tar.gz
|
||||||
BuildRequires: perl(Dist::Zilla) >= 2.100950
|
Source1: cpanspec.yml
|
||||||
BuildRequires: perl(Dist::Zilla::Role::BeforeRelease)
|
BuildArch: noarch
|
||||||
BuildRequires: perl(Dist::Zilla::Tester)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
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)
|
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
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(Dist::Zilla::Role::BeforeRelease)
|
||||||
Requires: perl(File::pushd)
|
Requires: perl(Dist::Zilla::Role::FileGatherer)
|
||||||
Requires: perl(Moose) >= 0.99
|
Requires: perl(Dist::Zilla::Role::FileMunger)
|
||||||
Requires: perl(namespace::autoclean) >= 0.09
|
Requires: perl(Dist::Zilla::Role::TextTemplate)
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
Requires: perl(Moose) >= 2
|
||||||
BuildArch: noarch
|
Requires: perl(Moose::Util::TypeConstraints)
|
||||||
|
Requires: perl(Sub::Exporter::ForMethods)
|
||||||
|
Requires: perl(autodie) >= 2.00
|
||||||
|
Requires: perl(namespace::autoclean) >= 0.28
|
||||||
%{perl_requires}
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -52,6 +66,9 @@ This is a "before release" Dist::Zilla plugin that ensures that your
|
|||||||
Changes file actually has some content since the last release. If it
|
Changes file actually has some content since the last release. If it
|
||||||
doesn't find any, it will abort the release process.
|
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 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 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.
|
the next unindented line (or the end of the file), ignoring whitespace.
|
||||||
@@ -81,22 +98,21 @@ configure the name with the 'changelog' argument:
|
|||||||
%setup -q -n %{cpan_name}-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
perl Makefile.PL INSTALLDIRS=vendor
|
||||||
%{__make} %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__make} test
|
export TZ=US/Central
|
||||||
|
make test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%perl_make_install
|
%perl_make_install
|
||||||
%perl_process_packlist
|
%perl_process_packlist
|
||||||
%perl_gen_filelist
|
%perl_gen_filelist
|
||||||
|
|
||||||
%clean
|
|
||||||
%{__rm} -rf %{buildroot}
|
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%defattr(644,root,root,755)
|
%defattr(-,root,root,755)
|
||||||
%doc Changes dist.ini LICENSE README weaver.ini
|
%doc Changes CONTRIBUTING.mkdn README
|
||||||
|
%license LICENSE
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user