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-WikiConverter?expand=0&rev=2
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-HTML-WikiConverter (Version 0.68)
|
||||
# spec file for package perl-HTML-WikiConverter
|
||||
#
|
||||
# Copyright (c) 2010 SUSE LINUX Products 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,49 +12,45 @@
|
||||
# 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-WikiConverter
|
||||
Version: 0.68
|
||||
Release: 1
|
||||
License: GPL+ or Artistic
|
||||
|
||||
%define cpan_name HTML-WikiConverter
|
||||
Name: perl-HTML-WikiConverter
|
||||
Version: 0.680.0
|
||||
Release: 0
|
||||
# 0.68 -> normalize -> 0.680.0
|
||||
%define cpan_version 0.68
|
||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
Summary: Convert HTML to wiki markup
|
||||
Url: http://search.cpan.org/dist/HTML-WikiConverter/
|
||||
Group: Development/Libraries/Perl
|
||||
Source: http://www.cpan.org/authors/id/D/DI/DIBERRI/%{cpan_name}-%{version}.tar.gz
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/D/DI/DIBERRI/%{cpan_name}-%{cpan_version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Carp)
|
||||
BuildRequires: perl(CSS) >= 1.70.0
|
||||
BuildRequires: perl(Class::Data::Inheritable) >= 0.02
|
||||
BuildRequires: perl(CSS) >= 1.07
|
||||
BuildRequires: perl(Exporter)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(HTML::Element)
|
||||
BuildRequires: perl(HTML::Entities) >= 1.27
|
||||
BuildRequires: perl(HTML::Tagset) >= 3.04
|
||||
BuildRequires: perl(HTML::Tree) >= 3.18
|
||||
BuildRequires: perl(Params::Validate) >= 0.77
|
||||
BuildRequires: perl(Pod::Usage) >= 1.16
|
||||
BuildRequires: perl(Test::More)
|
||||
BuildRequires: perl(URI) >= 1.35
|
||||
BuildRequires: perl(URI::Escape)
|
||||
Requires: perl(Carp)
|
||||
Requires: perl(CSS) >= 1.70.0
|
||||
Requires: perl(Class::Data::Inheritable) >= 0.02
|
||||
Requires: perl(CSS) >= 1.07
|
||||
Requires: perl(Exporter)
|
||||
Requires: perl(HTML::Element)
|
||||
Requires: perl(HTML::Entities) >= 1.27
|
||||
Requires: perl(HTML::Tagset) >= 3.04
|
||||
Requires: perl(HTML::Tree) >= 3.18
|
||||
Requires: perl(Params::Validate) >= 0.77
|
||||
Requires: perl(Pod::Usage) >= 1.16
|
||||
Requires: perl(Test::More)
|
||||
Requires: perl(URI) >= 1.35
|
||||
Requires: perl(URI::Escape)
|
||||
Provides: perl(HTML::WikiConverter) = %{version}
|
||||
Provides: perl(HTML::WikiConverter::Normalizer)
|
||||
Provides: perl(HTML::WikiConverter::WebApp)
|
||||
%undefine __perllib_provides
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
@@ -82,25 +78,24 @@ documentation for details of supported features. Suggestions for
|
||||
improvements, especially in the form of patches, are very much appreciated.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
%autosetup -n %{cpan_name}-%{cpan_version}
|
||||
|
||||
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
||||
|
||||
%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
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes LICENSE README webapp-install
|
||||
%doc Changes README webapp-install
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user