Accepting request 838808 from home:M0ses:branches:devel:languages:perl
updated to 0.29 see /usr/share/doc/packages/perl-Text-VimColor/Changes - update to 0.29 - removed deprecated perl macros - removed clean section - added check section OBS-URL: https://build.opensuse.org/request/show/838808 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Text-VimColor?expand=0&rev=7
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:9f2452ca25a48e9a175cb2912e6a264b7277cadfedd1af0c2bbc015aeb6f85ec
|
|
||||||
size 135537
|
|
3
Text-VimColor-0.29.tar.gz
Normal file
3
Text-VimColor-0.29.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:e20d3202c888af3d082a2245db5e87ee774e96fcf6708a30530f2eeb1a90988e
|
||||||
|
size 58409
|
31
cpanspec.yml
Normal file
31
cpanspec.yml
Normal file
@@ -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
|
||||||
|
|
@@ -1,3 +1,18 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Sep 30 13:42:57 UTC 2020 - Frank Schreiner <FSchreiner@suse.com>
|
||||||
|
|
||||||
|
updated to 0.29
|
||||||
|
see /usr/share/doc/packages/perl-Text-VimColor/Changes
|
||||||
|
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Sep 27 11:01:33 UTC 2020 - Frank Schreiner <FSchreiner@suse.com>
|
||||||
|
|
||||||
|
- 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
|
Sun Apr 01 17:28:19 UTC 2012 - pascal.bleser@opensuse.org
|
||||||
|
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-Text-VimColor
|
# 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 <pascal.bleser@opensuse.org>
|
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# 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)
|
# 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/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define cpan_name Text-VimColor
|
||||||
Name: perl-Text-VimColor
|
Name: perl-Text-VimColor
|
||||||
Version: 0.17
|
Version: 0.29
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Perl Module to syntax color Text in HTML or XML using Vim
|
%define cpan_name Text-VimColor
|
||||||
License: GPL-2.0+ or Artistic-1.0(GPL-2.0+ or Artistic-1.0)
|
Summary: Syntax highlight text using Vim
|
||||||
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
Source: http://search.cpan.org/CPAN/authors/id/R/RW/RWSTAUNER/Text-VimColor-%{version}.tar.gz
|
URL: https://metacpan.org/release/%{cpan_name}
|
||||||
Url: http://search.cpan.org/dist/Text-VimColor/
|
Source0: https://cpan.metacpan.org/authors/id/R/RW/RWSTAUNER/%{cpan_name}-%{version}.tar.gz
|
||||||
|
Source1: cpanspec.yml
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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
|
||||||
BuildRequires: perl-Path-Class
|
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
BuildRequires: vim >= 6
|
BuildRequires: perl(File::ShareDir)
|
||||||
BuildRequires: perl(File::ShareDir::Install)
|
BuildRequires: perl(File::ShareDir::Install) >= 0.06
|
||||||
BuildRequires: perl(Term::ANSIColor) >= 1.03
|
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
|
%description
|
||||||
This module tries to markup text files according to their syntax. It can be
|
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
|
* HTML
|
||||||
from the command-line, install the additional package "text-vimcolor".
|
|
||||||
|
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
|
%package -n text-vimcolor
|
||||||
Summary: Syntax Color Text in HTML or XML using Vim
|
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
|
their syntax. It can be used to produce web pages with pretty-printed
|
||||||
colourful source code samples.
|
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
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc README Changes
|
%doc Changes corpus README share
|
||||||
|
%license LICENSE
|
||||||
%dir %{perl_vendorlib}/Text
|
%dir %{perl_vendorlib}/Text
|
||||||
%{perl_vendorlib}/Text/VimColor.pm
|
%{perl_vendorlib}/Text/VimColor.pm
|
||||||
%dir %{perl_vendorarch}/auto/Text
|
%dir %{perl_vendorarch}/auto/Text
|
||||||
|
Reference in New Issue
Block a user