105 lines
3.4 KiB
RPMSpec
105 lines
3.4 KiB
RPMSpec
#
|
|
# spec file for package perl-App-GitHooks
|
|
#
|
|
# Copyright (c) 2017 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
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# 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/
|
|
#
|
|
|
|
|
|
Name: perl-App-GitHooks
|
|
Version: 1.9.0
|
|
Release: 0
|
|
%define cpan_name App-GitHooks
|
|
Summary: Extensible plugins system for git hooks
|
|
License: Artistic-1.0 or GPL-1.0+
|
|
Group: Development/Libraries/Perl
|
|
Url: http://search.cpan.org/dist/App-GitHooks/
|
|
Source0: https://cpan.metacpan.org/authors/id/A/AU/AUBERTG/%{cpan_name}-v%{version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Capture::Tiny)
|
|
BuildRequires: perl(Class::Load)
|
|
BuildRequires: perl(Config::Tiny)
|
|
BuildRequires: perl(Data::Section)
|
|
BuildRequires: perl(Data::Validate::Type)
|
|
BuildRequires: perl(Git::Repository)
|
|
BuildRequires: perl(Module::Build)
|
|
BuildRequires: perl(Module::Pluggable)
|
|
BuildRequires: perl(Parallel::ForkManager)
|
|
BuildRequires: perl(Path::Tiny)
|
|
BuildRequires: perl(Readonly)
|
|
BuildRequires: perl(Term::Encoding)
|
|
BuildRequires: perl(Term::ReadKey)
|
|
BuildRequires: perl(Test::Compile) >= 1.001
|
|
BuildRequires: perl(Test::Deep)
|
|
BuildRequires: perl(Test::Exception)
|
|
BuildRequires: perl(Test::FailWarnings)
|
|
BuildRequires: perl(Test::Git)
|
|
BuildRequires: perl(Test::Requires::Git) >= 1.005
|
|
BuildRequires: perl(Test::Type) >= 1.002
|
|
BuildRequires: perl(Try::Tiny)
|
|
BuildRequires: perl(autodie)
|
|
Requires: perl(Capture::Tiny)
|
|
Requires: perl(Class::Load)
|
|
Requires: perl(Config::Tiny)
|
|
Requires: perl(Data::Section)
|
|
Requires: perl(Data::Validate::Type)
|
|
Requires: perl(Git::Repository)
|
|
Requires: perl(Module::Pluggable)
|
|
Requires: perl(Parallel::ForkManager)
|
|
Requires: perl(Path::Tiny)
|
|
Requires: perl(Readonly)
|
|
Requires: perl(Term::Encoding)
|
|
Requires: perl(Term::ReadKey)
|
|
Requires: perl(Test::Exception)
|
|
Requires: perl(Test::Git)
|
|
Requires: perl(Test::Requires::Git) >= 1.005
|
|
Requires: perl(Try::Tiny)
|
|
Requires: perl(autodie)
|
|
%{perl_requires}
|
|
|
|
%description
|
|
'App::GitHooks' is an extensible and easy to configure git hooks framework
|
|
that supports many plugins.
|
|
|
|
Here's an example of it in action, running the 'pre-commit' hook checks
|
|
before the commit message can be entered:
|
|
|
|
Here is another example, with a Perl file that fails compilation this time:
|
|
|
|
%prep
|
|
%setup -q -n %{cpan_name}-v%{version}
|
|
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
|
|
|
|
%build
|
|
%{__perl} Build.PL installdirs=vendor
|
|
./Build build flags=%{?_smp_mflags}
|
|
|
|
%check
|
|
./Build test
|
|
|
|
%install
|
|
./Build install destdir=%{buildroot} create_packlist=0
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%defattr(-,root,root,755)
|
|
%doc Changes examples ignore.txt README.md
|
|
%license LICENSE
|
|
|
|
%changelog
|