107 lines
4.1 KiB
RPMSpec
107 lines
4.1 KiB
RPMSpec
#
|
|
# spec file for package perl-Text-Trac
|
|
#
|
|
# Copyright (c) 2024 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 Text-Trac
|
|
Name: perl-Text-Trac
|
|
Version: 0.240.0
|
|
Release: 0
|
|
# 0.24 -> normalize -> 0.240.0
|
|
%define cpan_version 0.24
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: Perl extension for formatting text with Trac Wiki Style
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/M/MA/MANWAR/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Class::Accessor::Fast)
|
|
BuildRequires: perl(Class::Data::Inheritable)
|
|
BuildRequires: perl(HTML::Entities)
|
|
BuildRequires: perl(List::MoreUtils)
|
|
BuildRequires: perl(Path::Tiny)
|
|
BuildRequires: perl(Test::Base)
|
|
BuildRequires: perl(Test::More) >= 1.001014
|
|
BuildRequires: perl(Tie::IxHash)
|
|
BuildRequires: perl(UNIVERSAL::require)
|
|
Requires: perl(Class::Accessor::Fast)
|
|
Requires: perl(Class::Data::Inheritable)
|
|
Requires: perl(HTML::Entities)
|
|
Requires: perl(List::MoreUtils)
|
|
Requires: perl(Path::Tiny)
|
|
Requires: perl(Tie::IxHash)
|
|
Requires: perl(UNIVERSAL::require)
|
|
Provides: perl(Text::Trac) = %{version}
|
|
Provides: perl(Text::Trac::BlockNode) = %{version}
|
|
Provides: perl(Text::Trac::Blockquote) = %{version}
|
|
Provides: perl(Text::Trac::Context) = %{version}
|
|
Provides: perl(Text::Trac::Dl) = %{version}
|
|
Provides: perl(Text::Trac::Heading) = %{version}
|
|
Provides: perl(Text::Trac::Hr) = %{version}
|
|
Provides: perl(Text::Trac::InlineNode) = %{version}
|
|
Provides: perl(Text::Trac::InlineNode::Initializer)
|
|
Provides: perl(Text::Trac::LinkResolver) = %{version}
|
|
Provides: perl(Text::Trac::LinkResolver::Attachment) = %{version}
|
|
Provides: perl(Text::Trac::LinkResolver::Changeset) = %{version}
|
|
Provides: perl(Text::Trac::LinkResolver::Comment) = %{version}
|
|
Provides: perl(Text::Trac::LinkResolver::Log) = %{version}
|
|
Provides: perl(Text::Trac::LinkResolver::Milestone) = %{version}
|
|
Provides: perl(Text::Trac::LinkResolver::Report) = %{version}
|
|
Provides: perl(Text::Trac::LinkResolver::Source) = %{version}
|
|
Provides: perl(Text::Trac::LinkResolver::Ticket) = %{version}
|
|
Provides: perl(Text::Trac::LinkResolver::Wiki) = %{version}
|
|
Provides: perl(Text::Trac::Macro) = %{version}
|
|
Provides: perl(Text::Trac::Macro::HelloWorld) = %{version}
|
|
Provides: perl(Text::Trac::Macro::Timestamp) = %{version}
|
|
Provides: perl(Text::Trac::Node) = %{version}
|
|
Provides: perl(Text::Trac::Ol) = %{version}
|
|
Provides: perl(Text::Trac::P) = %{version}
|
|
Provides: perl(Text::Trac::Pre) = %{version}
|
|
Provides: perl(Text::Trac::Table) = %{version}
|
|
Provides: perl(Text::Trac::Text) = %{version}
|
|
Provides: perl(Text::Trac::Ul) = %{version}
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
Text::Trac parses text with Trac WikiFormatting and convert it to html
|
|
format.
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
|
|
|
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 README.md
|
|
|
|
%changelog
|