Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTML-Gumbo?expand=0&rev=2
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-HTML-Gumbo
|
# spec file for package perl-HTML-Gumbo
|
||||||
#
|
#
|
||||||
# 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,67 +16,65 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define cpan_name HTML-Gumbo
|
||||||
Name: perl-HTML-Gumbo
|
Name: perl-HTML-Gumbo
|
||||||
Version: 0.18
|
Version: 0.180.0
|
||||||
Release: 0
|
Release: 0
|
||||||
%define cpan_name HTML-Gumbo
|
# 0.18 -> normalize -> 0.180.0
|
||||||
|
%define cpan_version 0.18
|
||||||
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||||
Summary: HTML5 parser based on gumbo C library
|
Summary: HTML5 parser based on gumbo C library
|
||||||
License: GPL-1.0-or-later OR Artistic-1.0
|
URL: https://metacpan.org/release/%{cpan_name}
|
||||||
Group: Development/Libraries/Perl
|
Source0: https://cpan.metacpan.org/authors/id/R/RU/RUZ/%{cpan_name}-%{cpan_version}.tar.gz
|
||||||
Url: http://search.cpan.org/dist/HTML-Gumbo/
|
|
||||||
Source: %{cpan_name}-%{version}.tar.gz
|
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-Alien-LibGumbo-devel >= 0.03
|
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
BuildRequires: perl(Alien::LibGumbo) >= 0.03
|
BuildRequires: perl(Alien::LibGumbo) >= 0.30.0
|
||||||
BuildRequires: perl(Module::Build)
|
BuildRequires: perl(ExtUtils::CBuilder)
|
||||||
BuildRequires: perl(XSLoader)
|
BuildRequires: perl(Module::Build) >= 0.42
|
||||||
Requires: perl(Alien::LibGumbo) >= 0.03
|
Requires: perl(Alien::LibGumbo) >= 0.30.0
|
||||||
Requires: perl(XSLoader)
|
Provides: perl(HTML::Gumbo) = %{version}
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
%undefine __perllib_provides
|
||||||
%{perl_requires}
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
https://github.com/google/gumbo-parser is an implementation of
|
at https://github.com/google/gumbo-parser is an implementation of at
|
||||||
http://www.w3.org/TR/html5/syntax.html implemented as a pure C99 library
|
http://www.w3.org/TR/html5/syntax.html implemented as a pure C99 library
|
||||||
with no outside dependencies.
|
with no outside dependencies.
|
||||||
|
|
||||||
Goals and features of the C library:
|
Goals and features of the C library:
|
||||||
|
|
||||||
* Fully conformant with the HTML5 spec.
|
* * Fully conformant with the HTML5 spec.
|
||||||
* Robust and resilient to bad input.
|
|
||||||
* Simple API that can be easily wrapped by other languages. (This is one
|
* * Robust and resilient to bad input.
|
||||||
|
|
||||||
|
* * Simple API that can be easily wrapped by other languages. (This is one
|
||||||
of such wrappers.)
|
of such wrappers.)
|
||||||
* Support for source locations and pointers back to the original text.
|
|
||||||
|
* * Support for source locations and pointers back to the original text.
|
||||||
(Not exposed by this implementation at the moment.)
|
(Not exposed by this implementation at the moment.)
|
||||||
* Relatively lightweight, with no outside dependencies.
|
|
||||||
* Passes all html5lib-0.95 tests.
|
* * Relatively lightweight, with no outside dependencies.
|
||||||
* Tested on over 2.5 billion pages from Google's index.
|
|
||||||
|
* * Passes all html5lib-0.95 tests.
|
||||||
|
|
||||||
|
* * Tested on over 2.5 billion pages from Google's index.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__perl} Build.PL installdirs=vendor optimize="%{optflags}"
|
perl Build.PL --installdirs=vendor optimize="%{optflags}"
|
||||||
./Build build flags=%{?_smp_mflags}
|
./Build build --flags=%{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
./Build test
|
./Build test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
./Build install destdir=%{buildroot} create_packlist=0
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
||||||
%perl_gen_filelist
|
%perl_gen_filelist
|
||||||
|
|
||||||
%clean
|
|
||||||
%{__rm} -rf %{buildroot}
|
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%defattr(644,root,root,755)
|
|
||||||
%if 0%{?suse_version} >= 01500
|
|
||||||
%license LICENSE
|
|
||||||
%else
|
|
||||||
%doc LICENSE
|
|
||||||
%endif
|
|
||||||
%doc Changes
|
%doc Changes
|
||||||
|
%license LICENSE
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user