Files
perl-HTML-TagCloud/perl-HTML-TagCloud.spec
2025-08-12 18:14:36 +02:00

70 lines
2.3 KiB
RPMSpec

#
# spec file for package perl-HTML-TagCloud
#
# 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
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define cpan_name HTML-TagCloud
Name: perl-HTML-TagCloud
Version: 0.380.0
Release: 0
# 0.38 -> normalize -> 0.380.0
%define cpan_version 0.38
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Generate An HTML Tag Cloud
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/R/RO/ROBERTSD/%{cpan_name}-%{cpan_version}.tar.gz
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Module::Build) >= 0.36
Provides: perl(HTML::TagCloud) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
The HTML::TagCloud module enables you to generate "tag clouds" in HTML. Tag
clouds serve as a textual way to visualize terms and topics that are used
most frequently. The tags are sorted alphabetically and a larger font is
used to indicate more frequent term usage.
Example sites with tag clouds: http://www.43things.com/,
http://www.astray.com/recipes/ and http://www.flickr.com/photos/tags/.
This module provides a simple interface to generating a CSS-based HTML tag
cloud. You simply pass in a set of tags, their URL and their count. This
module outputs stylesheet-based HTML. You may use the included CSS or use
your own.
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%build
perl Build.PL --installdirs=vendor
./Build build --flags=%{?_smp_mflags}
%check
./Build test
%install
./Build install --destdir=%{buildroot} --create_packlist=0
%perl_gen_filelist
%files -f %{name}.files
%doc CHANGES README
%changelog