2024-07-26 21:14:25 +00:00
committed by Git OBS Bridge
parent 4e976c94e9
commit d6e3bbf90b

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-PPI-HTML # spec file for package perl-PPI-HTML
# #
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,37 +16,41 @@
# #
Name: perl-PPI-HTML
Version: 1.08
Release: 0
%define cpan_name PPI-HTML %define cpan_name PPI-HTML
Summary: Generate syntax-hightlighted HTML for Perl using PPI Name: perl-PPI-HTML
Version: 1.80.0
Release: 0
# 1.08 -> normalize -> 1.80.0
%define cpan_version 1.08
License: Artistic-1.0 OR GPL-1.0-or-later License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl Summary: Generate syntax-hightlighted HTML for Perl using PPI
Url: https://metacpan.org/release/%{cpan_name} URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/A/AD/ADAMK/%{cpan_name}-%{version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/A/AD/ADAMK/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml Source1: cpanspec.yml
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(CSS::Tiny) >= 1.10 BuildRequires: perl(CSS::Tiny) >= 1.10
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
BuildRequires: perl(PPI) >= 0.990 BuildRequires: perl(PPI) >= 0.990
BuildRequires: perl(Params::Util) >= 0.05 BuildRequires: perl(Params::Util) >= 0.05
Requires: perl(CSS::Tiny) >= 1.10 Requires: perl(CSS::Tiny) >= 1.10
Requires: perl(PPI) >= 0.990 Requires: perl(PPI) >= 0.990
Requires: perl(Params::Util) >= 0.05 Requires: perl(Params::Util) >= 0.05
Provides: perl(PPI::HTML) = %{version}
Provides: perl(PPI::HTML::Fragment) = %{version}
%undefine __perllib_provides
%{perl_requires} %{perl_requires}
%description %description
PPI::HTML converts Perl documents into syntax highlighted HTML pages. PPI::HTML converts Perl documents into syntax highlighted HTML pages.
%prep %prep
%setup -q -n %{cpan_name}-%{version} %autosetup -n %{cpan_name}-%{cpan_version}
%build %build
PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} %make_build
%check %check
make test make test
@@ -57,7 +61,6 @@ make test
%perl_gen_filelist %perl_gen_filelist
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README %doc Changes README
%license LICENSE %license LICENSE