2024-08-25 18:22:30 +00:00
committed by Git OBS Bridge
parent 63fbdadf9e
commit 7e38458412

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-Syntax-Highlight-CSS # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # 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 %define cpan_name Syntax-Highlight-CSS
Summary: highlight CSS syntax Name: perl-Syntax-Highlight-CSS
License: Artistic-1.0 or GPL-1.0+ Version: 0.10.200
Group: Development/Libraries/Perl Release: 0
Url: http://search.cpan.org/dist/Syntax-Highlight-CSS/ # 0.0102 -> normalize -> 0.10.200
Source: http://www.cpan.org/authors/id/Z/ZO/ZOFFIX/%{cpan_name}-%{version}.tar.gz %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 BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(Module::Build) BuildRequires: perl(Module::Build)
Provides: perl(Syntax::Highlight::CSS) = %{version}
%undefine __perllib_provides
%{perl_requires} %{perl_requires}
%description %description
@@ -37,29 +39,28 @@ The module takes CSS code and wraps different pieces of syntax into HTML
'<span>' elements with appropriate class names which enables you to '<span>' elements with appropriate class names which enables you to
highlight syntax of the snippet using.. CSS ^_^ highlight syntax of the snippet using.. CSS ^_^
I honestly suggest you to try the Syntax::Highlight::Engine::Kate::CSS I honestly suggest you to try Syntax::Highlight::Engine::Kate::CSS first
manpage first and see if it does what you want. Personally, I found that it and see if it does what you want. Personally, I found that it wasn't
wasn't interpeting '@media' blocks properly, but I could've been interpeting '@media' blocks properly, but I could've been DoingItWrong. In
DoingItWrong. In constrast, with the Syntax::Highlight::Engine::Kate::CSS constrast, with Syntax::Highlight::Engine::Kate::CSS you will be able to
manpage you will be able to differentiate between *more* syntax elements differentiate between *more* syntax elements than with this module.
than with this module.
%prep %prep
%setup -q -n %{cpan_name}-%{version} %autosetup -n %{cpan_name}-%{cpan_version}
%build %build
%{__perl} Build.PL installdirs=vendor perl Build.PL --installdirs=vendor
./Build build flags=%{?_smp_mflags} ./Build build --flags=%{?_smp_mflags}
%check %check
./Build test ./Build test
%install %install
./Build install destdir=%{buildroot} create_packlist=0 ./Build install --destdir=%{buildroot} --create_packlist=0
%perl_gen_filelist %perl_gen_filelist
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,755) %doc Changes examples README
%doc Changes examples LICENSE README %license LICENSE
%changelog %changelog