forked from pool/perl-Code-TidyAll
159 lines
6.4 KiB
RPMSpec
159 lines
6.4 KiB
RPMSpec
#
|
|
# spec file for package perl-Code-TidyAll
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define cpan_name Code-TidyAll
|
|
Name: perl-Code-TidyAll
|
|
Version: 0.850.0
|
|
Release: 0
|
|
# 0.85 -> normalize -> 0.850.0
|
|
%define cpan_version 0.85
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: Engine for tidyall, your all-in-one code tidier and validator
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Capture::Tiny)
|
|
BuildRequires: perl(Config::INI::Reader)
|
|
BuildRequires: perl(Date::Format)
|
|
BuildRequires: perl(Digest::SHA)
|
|
BuildRequires: perl(File::Which)
|
|
BuildRequires: perl(File::pushd)
|
|
BuildRequires: perl(IPC::Run3)
|
|
BuildRequires: perl(IPC::System::Simple)
|
|
BuildRequires: perl(List::Compare)
|
|
BuildRequires: perl(List::SomeUtils)
|
|
BuildRequires: perl(Log::Any)
|
|
BuildRequires: perl(Module::Runtime)
|
|
BuildRequires: perl(Moo) >= 2.000000
|
|
BuildRequires: perl(Moo::Role)
|
|
BuildRequires: perl(Path::Tiny) >= 0.98.0
|
|
BuildRequires: perl(Scope::Guard)
|
|
BuildRequires: perl(Specio) >= 0.400
|
|
BuildRequires: perl(Specio::Declare)
|
|
BuildRequires: perl(Specio::Library::Builtins)
|
|
BuildRequires: perl(Specio::Library::Numeric)
|
|
BuildRequires: perl(Specio::Library::Path::Tiny) >= 0.40.0
|
|
BuildRequires: perl(Specio::Library::String)
|
|
BuildRequires: perl(Test::Class::Most)
|
|
BuildRequires: perl(Test::Differences)
|
|
BuildRequires: perl(Test::Fatal)
|
|
BuildRequires: perl(Test::More) >= 0.96
|
|
BuildRequires: perl(Test::Warnings)
|
|
BuildRequires: perl(Text::Diff) >= 1.440
|
|
BuildRequires: perl(Text::Diff::Table)
|
|
BuildRequires: perl(Time::Duration::Parse)
|
|
BuildRequires: perl(Try::Tiny)
|
|
BuildRequires: perl(autodie)
|
|
BuildRequires: perl(lib::relative)
|
|
Requires: perl(Capture::Tiny)
|
|
Requires: perl(Config::INI::Reader)
|
|
Requires: perl(Date::Format)
|
|
Requires: perl(Digest::SHA)
|
|
Requires: perl(File::Which)
|
|
Requires: perl(File::pushd)
|
|
Requires: perl(IPC::Run3)
|
|
Requires: perl(IPC::System::Simple)
|
|
Requires: perl(List::Compare)
|
|
Requires: perl(List::SomeUtils)
|
|
Requires: perl(Log::Any)
|
|
Requires: perl(Module::Runtime)
|
|
Requires: perl(Moo) >= 2.000000
|
|
Requires: perl(Moo::Role)
|
|
Requires: perl(Path::Tiny) >= 0.98.0
|
|
Requires: perl(Scope::Guard)
|
|
Requires: perl(Specio) >= 0.400
|
|
Requires: perl(Specio::Declare)
|
|
Requires: perl(Specio::Library::Builtins)
|
|
Requires: perl(Specio::Library::Numeric)
|
|
Requires: perl(Specio::Library::Path::Tiny) >= 0.40.0
|
|
Requires: perl(Specio::Library::String)
|
|
Requires: perl(Text::Diff) >= 1.440
|
|
Requires: perl(Text::Diff::Table)
|
|
Requires: perl(Time::Duration::Parse)
|
|
Requires: perl(Try::Tiny)
|
|
Provides: perl(Code::TidyAll) = %{version}
|
|
Provides: perl(Code::TidyAll::Cache) = %{version}
|
|
Provides: perl(Code::TidyAll::CacheModel) = %{version}
|
|
Provides: perl(Code::TidyAll::CacheModel::Shared) = %{version}
|
|
Provides: perl(Code::TidyAll::Config::INI::Reader) = %{version}
|
|
Provides: perl(Code::TidyAll::Git::Precommit) = %{version}
|
|
Provides: perl(Code::TidyAll::Git::Prereceive) = %{version}
|
|
Provides: perl(Code::TidyAll::Git::Util) = %{version}
|
|
Provides: perl(Code::TidyAll::Plugin) = %{version}
|
|
Provides: perl(Code::TidyAll::Plugin::CSSUnminifier) = %{version}
|
|
Provides: perl(Code::TidyAll::Plugin::GenericTransformer) = %{version}
|
|
Provides: perl(Code::TidyAll::Plugin::GenericValidator) = %{version}
|
|
Provides: perl(Code::TidyAll::Plugin::JSBeautify) = %{version}
|
|
Provides: perl(Code::TidyAll::Plugin::JSHint) = %{version}
|
|
Provides: perl(Code::TidyAll::Plugin::JSLint) = %{version}
|
|
Provides: perl(Code::TidyAll::Plugin::JSON) = %{version}
|
|
Provides: perl(Code::TidyAll::Plugin::MasonTidy) = %{version}
|
|
Provides: perl(Code::TidyAll::Plugin::PHPCodeSniffer) = %{version}
|
|
Provides: perl(Code::TidyAll::Plugin::PerlCritic) = %{version}
|
|
Provides: perl(Code::TidyAll::Plugin::PerlTidy) = %{version}
|
|
Provides: perl(Code::TidyAll::Plugin::PerlTidySweet) = %{version}
|
|
Provides: perl(Code::TidyAll::Plugin::PodChecker) = %{version}
|
|
Provides: perl(Code::TidyAll::Plugin::PodSpell) = %{version}
|
|
Provides: perl(Code::TidyAll::Plugin::PodTidy) = %{version}
|
|
Provides: perl(Code::TidyAll::Plugin::SortLines) = %{version}
|
|
Provides: perl(Code::TidyAll::Result) = %{version}
|
|
Provides: perl(Code::TidyAll::Role::GenericExecutable) = %{version}
|
|
Provides: perl(Code::TidyAll::Role::HasIgnore) = %{version}
|
|
Provides: perl(Code::TidyAll::Role::RunsCommand) = %{version}
|
|
Provides: perl(Code::TidyAll::Role::Tempdir) = %{version}
|
|
Provides: perl(Code::TidyAll::SVN::Precommit) = %{version}
|
|
Provides: perl(Code::TidyAll::SVN::Util) = %{version}
|
|
Provides: perl(Code::TidyAll::Util::Zglob) = %{version}
|
|
Provides: perl(Code::TidyAll::Zglob) = %{version}
|
|
Provides: perl(Test::Code::TidyAll) = %{version}
|
|
%undefine __perllib_provides
|
|
Recommends: perl(Parallel::ForkManager)
|
|
%{perl_requires}
|
|
|
|
%description
|
|
This is the engine used by tidyall - read that first to get an overview.
|
|
|
|
You can call this API from your own program instead of executing 'tidyall'.
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
%make_build
|
|
|
|
%check
|
|
make test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%doc Changes CODE_OF_CONDUCT.md CONTRIBUTING.md README.md
|
|
%license LICENSE
|
|
|
|
%changelog
|