diff --git a/perl-HTML-Gumbo.spec b/perl-HTML-Gumbo.spec
index e39e91d..8f47e0b 100644
--- a/perl-HTML-Gumbo.spec
+++ b/perl-HTML-Gumbo.spec
@@ -1,7 +1,7 @@
#
# 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
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,67 +16,65 @@
#
+%define cpan_name HTML-Gumbo
Name: perl-HTML-Gumbo
-Version: 0.18
+Version: 0.180.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
-License: GPL-1.0-or-later OR Artistic-1.0
-Group: Development/Libraries/Perl
-Url: http://search.cpan.org/dist/HTML-Gumbo/
-Source: %{cpan_name}-%{version}.tar.gz
+URL: https://metacpan.org/release/%{cpan_name}
+Source0: https://cpan.metacpan.org/authors/id/R/RU/RUZ/%{cpan_name}-%{cpan_version}.tar.gz
BuildRequires: perl
-BuildRequires: perl-Alien-LibGumbo-devel >= 0.03
BuildRequires: perl-macros
-BuildRequires: perl(Alien::LibGumbo) >= 0.03
-BuildRequires: perl(Module::Build)
-BuildRequires: perl(XSLoader)
-Requires: perl(Alien::LibGumbo) >= 0.03
-Requires: perl(XSLoader)
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
+BuildRequires: perl(Alien::LibGumbo) >= 0.30.0
+BuildRequires: perl(ExtUtils::CBuilder)
+BuildRequires: perl(Module::Build) >= 0.42
+Requires: perl(Alien::LibGumbo) >= 0.30.0
+Provides: perl(HTML::Gumbo) = %{version}
+%undefine __perllib_provides
%{perl_requires}
%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
with no outside dependencies.
Goals and features of the C library:
-* 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
+* * 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
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.)
-* Relatively lightweight, with no outside dependencies.
-* Passes all html5lib-0.95 tests.
-* Tested on over 2.5 billion pages from Google's index.
+
+* * Relatively lightweight, with no outside dependencies.
+
+* * Passes all html5lib-0.95 tests.
+
+* * Tested on over 2.5 billion pages from Google's index.
%prep
-%setup -q -n %{cpan_name}-%{version}
+%autosetup -n %{cpan_name}-%{cpan_version}
%build
-%{__perl} Build.PL installdirs=vendor optimize="%{optflags}"
-./Build build flags=%{?_smp_mflags}
+perl Build.PL --installdirs=vendor optimize="%{optflags}"
+./Build build --flags=%{?_smp_mflags}
%check
./Build test
%install
-./Build install destdir=%{buildroot} create_packlist=0
+./Build install --destdir=%{buildroot} --create_packlist=0
%perl_gen_filelist
-%clean
-%{__rm} -rf %{buildroot}
-
%files -f %{name}.files
-%defattr(644,root,root,755)
-%if 0%{?suse_version} >= 01500
-%license LICENSE
-%else
-%doc LICENSE
-%endif
%doc Changes
+%license LICENSE
%changelog