diff --git a/Text-VimColor-0.17.tar.gz b/Text-VimColor-0.17.tar.gz deleted file mode 100644 index 2168cda..0000000 --- a/Text-VimColor-0.17.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9f2452ca25a48e9a175cb2912e6a264b7277cadfedd1af0c2bbc015aeb6f85ec -size 135537 diff --git a/Text-VimColor-0.29.tar.gz b/Text-VimColor-0.29.tar.gz new file mode 100644 index 0000000..e53c07c --- /dev/null +++ b/Text-VimColor-0.29.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e20d3202c888af3d082a2245db5e87ee774e96fcf6708a30530f2eeb1a90988e +size 58409 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..2334a53 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,31 @@ +--- +#description_paragraphs: 3 +#description: |- +# override description from CPAN +#summary: override summary from CPAN +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +#patches: +# foo.patch: -p1 +# bar.patch: +preamble: |- + BuildRequires: vim-data + BuildRequires: perl(Test::File::ShareDir::Dist) + BuildRequires: vim +#post_prep: |- +# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` +# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL +#post_build: |- +# rm unused.files +#post_install: |- +# sed on %{name}.files +#license: SUSE-NonFree +#skip_noarch: 1 +#custom_build: |- +#./Build build flags=%{?_smp_mflags} --myflag +#custom_test: |- +#startserver && make test +#ignore_requires: Bizarre::Module + diff --git a/perl-Text-VimColor.changes b/perl-Text-VimColor.changes index f435d20..63cb007 100644 --- a/perl-Text-VimColor.changes +++ b/perl-Text-VimColor.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Wed Sep 30 13:42:57 UTC 2020 - Frank Schreiner + +updated to 0.29 + see /usr/share/doc/packages/perl-Text-VimColor/Changes + + +------------------------------------------------------------------- +Sun Sep 27 11:01:33 UTC 2020 - Frank Schreiner + +- update to 0.29 +- removed deprecated perl macros +- removed clean section +- added check section + ------------------------------------------------------------------- Sun Apr 01 17:28:19 UTC 2012 - pascal.bleser@opensuse.org diff --git a/perl-Text-VimColor.spec b/perl-Text-VimColor.spec index 4c16205..b1bdad7 100644 --- a/perl-Text-VimColor.spec +++ b/perl-Text-VimColor.spec @@ -2,7 +2,7 @@ # # spec file for package perl-Text-VimColor # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # Copyright (c) 2012 Pascal Bleser # # All modifications and additions to the file contributed by third parties @@ -14,38 +14,87 @@ # 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/ # +%define cpan_name Text-VimColor Name: perl-Text-VimColor -Version: 0.17 +Version: 0.29 Release: 0 -Summary: Perl Module to syntax color Text in HTML or XML using Vim -License: GPL-2.0+ or Artistic-1.0(GPL-2.0+ or Artistic-1.0) +%define cpan_name Text-VimColor +Summary: Syntax highlight text using Vim +License: Artistic-1.0 OR GPL-1.0-or-later Group: Development/Libraries/Perl -Source: http://search.cpan.org/CPAN/authors/id/R/RW/RWSTAUNER/Text-VimColor-%{version}.tar.gz -Url: http://search.cpan.org/dist/Text-VimColor/ +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/R/RW/RWSTAUNER/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml BuildRoot: %{_tmppath}/%{name}-%{version}-build -Requires: perl -Requires: perl-Path-Class -Requires: vim >= 6 -Recommends: vim-data -Requires: perl(Term::ANSIColor) >= 1.03 -BuildRequires: make BuildRequires: perl -BuildRequires: perl-Path-Class BuildRequires: perl-macros -BuildRequires: vim >= 6 -BuildRequires: perl(File::ShareDir::Install) -BuildRequires: perl(Term::ANSIColor) >= 1.03 +BuildRequires: perl(File::ShareDir) +BuildRequires: perl(File::ShareDir::Install) >= 0.06 +BuildRequires: perl(Path::Class) >= 0.04 +BuildRequires: perl(Test::File::ShareDir::Dist) +BuildRequires: perl(Test::More) >= 0.88 +Requires: perl(File::ShareDir) +Requires: perl(Path::Class) >= 0.04 +Recommends: perl(Term::ANSIColor) >= 3 +%{perl_requires} +# MANUAL BEGIN +BuildRequires: vim +BuildRequires: vim-data +BuildRequires: perl(Test::File::ShareDir::Dist) +# MANUAL END %description This module tries to markup text files according to their syntax. It can be -used to produce web pages with pretty-printed colourful source code samples. +used to produce web pages with pretty-printed colorful source code samples. +It can produce output in the following formats: -Note that this package only contains the Perl modules. To use Text::VimColor -from the command-line, install the additional package "text-vimcolor". +* HTML + +Valid XHTML 1.0, with the exact coloring and style left to a CSS stylesheet + +* XML + +Pieces of text are marked with XML elements in a simple vocabulary, which +can be converted to other formats, for example, using XSLT + +* Perl array + +A simple Perl data structure, so that Perl code can be used to turn it into +whatever is needed + +* ANSI Escape Sequences + +A string marked with Term::ANSIColor suitable for printing to a terminal. + +This module works by running the Vim text editor and getting it to apply +its excellent syntax highlighting (aka 'font-locking') to an input file, +and mark pieces of text according to whether it thinks they are comments, +keywords, strings, etc. The Perl code then reads back this markup and +converts it to the desired output format. + +This is an object-oriented module. To use it, create an object with the new +function (as shown in SYNOPSIS) and then call methods to get the markup +out. + +%prep +%setup -q -n %{cpan_name}-%{version} +find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644 + +%build +perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +make %{?_smp_mflags} + +%check +make test + +%install +%perl_make_install +%perl_process_packlist +%perl_gen_filelist %package -n text-vimcolor Summary: Syntax Color Text in HTML or XML using Vim @@ -57,24 +106,10 @@ The text-vimcolor command-line program tries to markup text files according to their syntax. It can be used to produce web pages with pretty-printed colourful source code samples. -%prep -%setup -q -n "Text-VimColor-%{version}" -%__sed -i '/^auto_install/d' Makefile.PL - -%build -%__perl Makefile.PL PREFIX="%{_prefix}" -%__make - -%install -%perl_make_install -%perl_process_packlist - -%clean -%{?buildroot:%__rm -rf "%{buildroot}"} - %files %defattr(-,root,root) -%doc README Changes +%doc Changes corpus README share +%license LICENSE %dir %{perl_vendorlib}/Text %{perl_vendorlib}/Text/VimColor.pm %dir %{perl_vendorarch}/auto/Text