2011-01-22 19:44:27 +00:00
|
|
|
#
|
2015-04-16 19:25:05 +00:00
|
|
|
# spec file for package perl-Pod-Markdown
|
2011-01-22 19:44:27 +00:00
|
|
|
#
|
2024-03-08 22:56:58 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2011-01-22 19:44:27 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-10-11 13:20:52 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-01-22 19:44:27 +00:00
|
|
|
#
|
|
|
|
|
2015-04-16 19:25:05 +00:00
|
|
|
|
2023-11-16 16:40:49 +00:00
|
|
|
%define cpan_name Pod-Markdown
|
2011-01-22 19:44:27 +00:00
|
|
|
Name: perl-Pod-Markdown
|
2023-11-16 16:40:49 +00:00
|
|
|
Version: 3.400.0
|
2015-04-16 19:25:05 +00:00
|
|
|
Release: 0
|
2023-11-16 16:40:49 +00:00
|
|
|
%define cpan_version 3.400
|
2018-03-06 05:32:06 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2023-11-16 16:40:49 +00:00
|
|
|
Summary: Convert POD to Markdown
|
2020-11-03 09:31:24 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2023-11-16 16:40:49 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/R/RW/RWSTAUNER/%{cpan_name}-%{cpan_version}.tar.gz
|
2015-04-16 19:25:05 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:16:36 +02:00
|
|
|
Source100: README.md
|
2011-04-03 14:56:47 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2015-09-28 11:16:44 +00:00
|
|
|
BuildRequires: perl(Pod::Simple) >= 3.27
|
2015-04-16 19:25:05 +00:00
|
|
|
BuildRequires: perl(Pod::Simple::Methody)
|
2011-01-22 19:44:27 +00:00
|
|
|
BuildRequires: perl(Test::Differences)
|
2015-04-16 19:25:05 +00:00
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
2019-10-11 13:20:52 +00:00
|
|
|
BuildRequires: perl(URI::Escape)
|
2011-08-29 13:40:21 +00:00
|
|
|
BuildRequires: perl(parent)
|
2015-09-28 11:16:44 +00:00
|
|
|
Requires: perl(Pod::Simple) >= 3.27
|
2015-04-16 19:25:05 +00:00
|
|
|
Requires: perl(Pod::Simple::Methody)
|
2019-10-11 13:20:52 +00:00
|
|
|
Requires: perl(URI::Escape)
|
2011-08-29 13:40:21 +00:00
|
|
|
Requires: perl(parent)
|
2023-11-16 16:40:49 +00:00
|
|
|
Provides: perl(Pod::Markdown) = 3.400.0
|
|
|
|
Provides: perl(Pod::Perldoc::ToMarkdown) = 3.400.0
|
2024-03-08 22:56:58 +00:00
|
|
|
%undefine __perllib_provides
|
2015-08-23 14:13:06 +00:00
|
|
|
Recommends: perl(HTML::Entities)
|
2011-01-22 19:44:27 +00:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
2016-03-11 21:28:13 +00:00
|
|
|
This module uses Pod::Simple to convert POD to Markdown.
|
2015-04-16 19:25:05 +00:00
|
|
|
|
|
|
|
Literal characters in Pod that are special in Markdown (like *asterisks*)
|
|
|
|
are backslash-escaped when appropriate.
|
|
|
|
|
|
|
|
By default 'markdown' and 'html' formatted regions are accepted. Regions of
|
|
|
|
'markdown' will be passed through unchanged. Regions of 'html' will be
|
|
|
|
placed inside a '<div>' tag so that markdown characters won't be processed.
|
|
|
|
Regions of ':markdown' or ':html' will be processed as POD and included. To
|
2016-03-11 21:28:13 +00:00
|
|
|
change which regions are accepted use the Pod::Simple API:
|
2015-04-16 19:25:05 +00:00
|
|
|
|
|
|
|
my $parser = Pod::Markdown->new;
|
|
|
|
$parser->unaccept_targets(qw( markdown html ));
|
2011-01-22 19:44:27 +00:00
|
|
|
|
|
|
|
%prep
|
2023-11-16 16:40:49 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
2011-01-22 19:44:27 +00:00
|
|
|
|
|
|
|
%build
|
2019-10-11 13:20:52 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2023-11-16 16:40:49 +00:00
|
|
|
%make_build
|
2011-01-22 19:44:27 +00:00
|
|
|
|
|
|
|
%check
|
2019-10-11 13:20:52 +00:00
|
|
|
make test
|
2011-01-22 19:44:27 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2019-10-11 13:20:52 +00:00
|
|
|
%doc Changes README
|
2018-08-24 11:08:40 +00:00
|
|
|
%license LICENSE
|
2011-01-22 19:44:27 +00:00
|
|
|
|
|
|
|
%changelog
|