2019-03-14 11:02:00 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Alien-LibGumbo
|
|
|
|
#
|
2021-04-13 20:36:06 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2019-03-14 11:02:00 +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-03-14 11:03:43 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2019-03-14 11:02:00 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-Alien-LibGumbo
|
|
|
|
Version: 0.05
|
|
|
|
Release: 0
|
2019-03-14 11:03:43 +00:00
|
|
|
%define cpan_name Alien-LibGumbo
|
2019-03-14 11:02:00 +00:00
|
|
|
Summary: Gumbo parser library
|
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
|
|
Group: Development/Libraries/Perl
|
2021-04-13 20:36:06 +00:00
|
|
|
URL: http://search.cpan.org/dist/Alien-LibGumbo/
|
2019-03-14 11:02:00 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/R/RU/RUZ/%{cpan_name}-%{version}.tar.gz
|
2025-08-12 18:11:37 +02:00
|
|
|
Source100: README.md
|
2019-03-14 11:02:00 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2019-03-14 14:04:18 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
2019-03-14 11:02:00 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(Alien::Base) >= 0.005
|
|
|
|
BuildRequires: perl(Alien::Base::ModuleBuild) >= 0.005
|
|
|
|
BuildRequires: perl(File::ShareDir) >= 1.03
|
|
|
|
BuildRequires: perl(Module::Build) >= 0.420000
|
|
|
|
BuildRequires: perl(Path::Class) >= 0.013
|
2021-04-13 20:46:03 +00:00
|
|
|
%if 0%{?suse_version} <= 1530
|
|
|
|
BuildRequires: perl(PkgConfig)
|
|
|
|
%endif
|
2019-03-14 11:02:00 +00:00
|
|
|
Requires: perl(Alien::Base) >= 0.005
|
|
|
|
Requires: perl(File::ShareDir) >= 1.03
|
|
|
|
Requires: perl(Path::Class) >= 0.013
|
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
|
|
|
This distribution installs libgumbo:https://github.com/google/gumbo-parser
|
|
|
|
on your system for use by perl modules like HTML::Gumbo.
|
|
|
|
|
|
|
|
*If you're interested in parsing HTML* then you want HTML::Gumbo module,
|
|
|
|
not this.
|
|
|
|
|
2019-03-14 14:04:18 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Header files for %{name}
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains header files to develop applications based on %name.
|
|
|
|
|
2019-03-14 11:02:00 +00:00
|
|
|
%prep
|
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{__perl} Build.PL installdirs=vendor
|
|
|
|
./Build build flags=%{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
|
|
|
./Build test
|
|
|
|
|
|
|
|
%install
|
|
|
|
./Build install destdir=%{buildroot} create_packlist=0
|
2019-03-14 14:04:18 +00:00
|
|
|
rm %{buildroot}%{perl_vendorlib}/auto/share/dist/Alien-LibGumbo/lib/pkgconfig/gumbo.pc
|
|
|
|
rm %{buildroot}%{perl_vendorlib}/auto/share/dist/Alien-LibGumbo/dynamic/libgumbo.la
|
|
|
|
%fdupes %{buildroot}%{perl_vendorlib}
|
2019-03-14 11:02:00 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
2019-03-14 11:03:43 +00:00
|
|
|
%doc Changes
|
2019-03-14 14:04:18 +00:00
|
|
|
%exclude %dir %{perl_vendorlib}/auto/share/dist/Alien-LibGumbo/include
|
|
|
|
%exclude %{perl_vendorlib}/auto/share/dist/Alien-LibGumbo/include/*
|
|
|
|
%exclude %{perl_vendorlib}/auto/share/dist/Alien-LibGumbo/lib/libgumbo.a
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{perl_vendorlib}/auto/share/dist/Alien-LibGumbo/include
|
|
|
|
%{perl_vendorlib}/auto/share/dist/Alien-LibGumbo/include/*
|
|
|
|
%{perl_vendorlib}/auto/share/dist/Alien-LibGumbo/lib/libgumbo.a
|
2019-03-14 11:02:00 +00:00
|
|
|
|
|
|
|
%changelog
|