Automatic update to v0.180.0 (0.18)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-Text-Markdown-Discount
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,19 +18,21 @@
|
||||
|
||||
%define cpan_name Text-Markdown-Discount
|
||||
Name: perl-Text-Markdown-Discount
|
||||
Version: 0.160.0
|
||||
Version: 0.180.0
|
||||
Release: 0
|
||||
# 0.16 -> normalize -> 0.160.0
|
||||
%define cpan_version 0.16
|
||||
# 0.18 -> normalize -> 0.180.0
|
||||
%define cpan_version 0.18
|
||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
Summary: Fast function for converting markdown to HTML (requires C compiler)
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/S/SE/SEKIMURA/%{cpan_name}-%{cpan_version}.tar.gz
|
||||
Source0: https://cpan.metacpan.org/authors/id/S/SO/SONGMU/%{cpan_name}-%{cpan_version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
Source100: README.md
|
||||
Patch0: use-system-markdown.patch
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(ExtUtils::CBuilder)
|
||||
BuildRequires: perl(Module::Build) >= 0.400.500
|
||||
Provides: perl(Text::Markdown::Discount) = %{version}
|
||||
%undefine __perllib_provides
|
||||
%{perl_requires}
|
||||
@@ -54,23 +56,23 @@ The interface of the 'markdown()' function in this module is not compatible
|
||||
with the 'markdown()' function in Text::Markdown.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
||||
%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 OPTIMIZE="%{optflags}"
|
||||
%make_build
|
||||
perl Build.PL --installdirs=vendor optimize="%{optflags}"
|
||||
./Build build --flags=%{?_smp_mflags}
|
||||
|
||||
%check
|
||||
make test
|
||||
./Build test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
./Build install --destdir=%{buildroot} --create_packlist=0
|
||||
%perl_gen_filelist
|
||||
|
||||
%files -f %{name}.files
|
||||
%doc Changes README
|
||||
%doc Changes README.md
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user