diff --git a/perl-Syntax-Highlight-CSS.spec b/perl-Syntax-Highlight-CSS.spec index 2d49e4b..47863d4 100644 --- a/perl-Syntax-Highlight-CSS.spec +++ b/perl-Syntax-Highlight-CSS.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Syntax-Highlight-CSS # -# 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,24 +12,26 @@ # 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-Syntax-Highlight-CSS -Version: 0.0102 -Release: 0 %define cpan_name Syntax-Highlight-CSS -Summary: highlight CSS syntax -License: Artistic-1.0 or GPL-1.0+ -Group: Development/Libraries/Perl -Url: http://search.cpan.org/dist/Syntax-Highlight-CSS/ -Source: http://www.cpan.org/authors/id/Z/ZO/ZOFFIX/%{cpan_name}-%{version}.tar.gz +Name: perl-Syntax-Highlight-CSS +Version: 0.10.200 +Release: 0 +# 0.0102 -> normalize -> 0.10.200 +%define cpan_version 0.0102 +License: Artistic-1.0 OR GPL-1.0-or-later +Summary: Highlight CSS syntax +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/Z/ZO/ZOFFIX/%{cpan_name}-%{cpan_version}.tar.gz BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Module::Build) +Provides: perl(Syntax::Highlight::CSS) = %{version} +%undefine __perllib_provides %{perl_requires} %description @@ -37,29 +39,28 @@ The module takes CSS code and wraps different pieces of syntax into HTML '' elements with appropriate class names which enables you to highlight syntax of the snippet using.. CSS ^_^ -I honestly suggest you to try the Syntax::Highlight::Engine::Kate::CSS -manpage first and see if it does what you want. Personally, I found that it -wasn't interpeting '@media' blocks properly, but I could've been -DoingItWrong. In constrast, with the Syntax::Highlight::Engine::Kate::CSS -manpage you will be able to differentiate between *more* syntax elements -than with this module. +I honestly suggest you to try Syntax::Highlight::Engine::Kate::CSS first +and see if it does what you want. Personally, I found that it wasn't +interpeting '@media' blocks properly, but I could've been DoingItWrong. In +constrast, with Syntax::Highlight::Engine::Kate::CSS you will be able to +differentiate between *more* syntax elements than with this module. %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{cpan_version} %build -%{__perl} Build.PL installdirs=vendor -./Build build flags=%{?_smp_mflags} +perl Build.PL --installdirs=vendor +./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 %files -f %{name}.files -%defattr(-,root,root,755) -%doc Changes examples LICENSE README +%doc Changes examples README +%license LICENSE %changelog