2024-07-23 19:53:12 +00:00
committed by Git OBS Bridge
parent 9f9c5381a8
commit e1c07a2691

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-HTML-FromText
#
# Copyright (c) 2015 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
@@ -12,28 +12,30 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: perl-HTML-FromText
Version: 2.07
Release: 0
%define cpan_name HTML-FromText
Summary: converts plain text to HTML
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/HTML-FromText/
Source: http://www.cpan.org/authors/id/R/RJ/RJBS/%{cpan_name}-%{version}.tar.gz
Name: perl-HTML-FromText
Version: 2.70.0
Release: 0
# 2.07 -> normalize -> 2.70.0
%define cpan_version 2.07
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Converts plain text to HTML
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/R/RJ/RJBS/%{cpan_name}-%{cpan_version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Email::Find::addrspec) >= 0.09
BuildRequires: perl(Email::Find::addrspec) >= 0.90.0
BuildRequires: perl(HTML::Entities) >= 1.26
BuildRequires: perl(Test::More) >= 0.96
Requires: perl(Email::Find::addrspec) >= 0.09
Requires: perl(Email::Find::addrspec) >= 0.90.0
Requires: perl(HTML::Entities) >= 1.26
Provides: perl(HTML::FromText) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
@@ -43,14 +45,14 @@ options that shape the conversion. There is a utility function,
cut to the Object Oriented interface described in detail below.
%prep
%setup -q -n %{cpan_name}-%{version}
%autosetup -n %{cpan_name}-%{cpan_version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
%{__make} test
make test
%install
%perl_make_install
@@ -58,7 +60,7 @@ cut to the Object Oriented interface described in detail below.
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes LICENSE README
%doc Changes README
%license LICENSE
%changelog