Compare commits
10 Commits
0f41b1f371
...
9f4947a804
Author | SHA256 | Date | |
---|---|---|---|
9f4947a804 | |||
7fda9433f2 | |||
036da5aa32 | |||
53c5d4dd5b | |||
cb9fa231cd | |||
|
9a2b6c9249 | ||
|
7c02506e64 | ||
|
1fb33afdfe | ||
|
82420d540e | ||
|
5c8e6a1f1f |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:daea9dcdd1ad3d5c18c843e13f1508540e5bc838a908e59a4e90bfd1ce9a52fa
|
||||
size 20375
|
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
|
33
cpanspec.yml
Normal file
33
cpanspec.yml
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
#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 >= 6
|
||||
BuildRequires: vim-data
|
||||
BuildRequires: perl(Test::File::ShareDir::Dist)
|
||||
Requires: vim >= 6
|
||||
Recommends: vim-data >= 6
|
||||
#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
|
||||
|
34
perl-Text-VimColor.changes
Normal file
34
perl-Text-VimColor.changes
Normal file
@@ -0,0 +1,34 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 30 13:42:57 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
|
||||
|
||||
- update to 0.17:
|
||||
* minor installation and test fixes for older systems
|
||||
- changes from 0.16:
|
||||
* simplify version detection using vim script
|
||||
- changes from 0.15:
|
||||
* remove extraneous vim statement that caused delays on some files
|
||||
* ower Term::ANSIColor requirement to 1.03 and make bright colors normal if
|
||||
Term::ANSIColor version < 3
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 29 18:31:22 UTC 2010 - coolo@novell.com
|
||||
|
||||
- remove /var/adm/perl-modules
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 29 18:00:58 UTC 2010 - coolo@novell.com
|
||||
|
||||
- called spec2changelog
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Mar 15 00:00:00 UTC 2009 - pascal.bleser@opensuse.org
|
||||
|
||||
- new package
|
@@ -1,74 +1,128 @@
|
||||
# norootforbuild
|
||||
# vim: set ts=4 sw=4 et:
|
||||
#
|
||||
# spec file for package perl-Text-VimColor
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
|
||||
#
|
||||
# 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.
|
||||
|
||||
Name: perl-Text-VimColor
|
||||
Version: 0.11
|
||||
Release: 0
|
||||
Summary: Perl Module to syntax color Text in HTML or XML using Vim
|
||||
Source: http://search.cpan.org/CPAN/authors/id/G/GE/GEOFFR/Text-VimColor-%{version}.tar.gz
|
||||
URL: http://search.cpan.org/dist/Text-VimColor/
|
||||
Group: Development/Libraries/Perl
|
||||
License: Perl License
|
||||
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
||||
Requires: perl perl-Path-Class
|
||||
Requires: vim vim-data
|
||||
BuildRequires: make perl perl-Path-Class
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define cpan_name Text-VimColor
|
||||
Name: perl-Text-VimColor
|
||||
Version: 0.29
|
||||
Release: 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
|
||||
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
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
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 >= 6
|
||||
BuildRequires: vim-data
|
||||
Requires: vim >= 6
|
||||
Recommends: vim-data >= 6
|
||||
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:
|
||||
|
||||
* 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.
|
||||
|
||||
Note that this package only contains the Perl modules. To use Text::VimColor
|
||||
from the command-line, install the additional package "text-vimcolor".
|
||||
|
||||
%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
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Geoff Richards <qef@laxan.com>
|
||||
%install
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%package -n text-vimcolor
|
||||
Summary: Syntax Color Text in HTML or XML using Vim
|
||||
Group: Development/Tools/Doc Generators
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Summary: Syntax Color Text in HTML or XML using Vim
|
||||
Group: Development/Tools/Doc Generators
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description -n text-vimcolor
|
||||
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.
|
||||
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Geoff Richards <qef@laxan.com>
|
||||
|
||||
%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
|
||||
%__rm -rf "%{buildroot}"
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc ChangeLog README
|
||||
%doc Changes corpus README share
|
||||
%license LICENSE
|
||||
%dir %{perl_vendorlib}/Text
|
||||
%{perl_vendorlib}/Text/VimColor
|
||||
%{perl_vendorlib}/Text/VimColor.pm
|
||||
%dir %{perl_vendorarch}/auto/Text
|
||||
%{perl_vendorarch}/auto/Text/VimColor
|
||||
%doc %{perl_man3dir}/Text::VimColor.%{perl_man3ext}*
|
||||
/var/adm/perl-modules/%{name}
|
||||
%dir %{perl_vendorlib}/auto/share
|
||||
%dir %{perl_vendorlib}/auto/share/dist
|
||||
%{perl_vendorlib}/auto/share/dist/Text-VimColor
|
||||
|
||||
%files -n text-vimcolor
|
||||
%defattr(-,root,root)
|
||||
@@ -76,10 +130,3 @@ Authors:
|
||||
%doc %{_mandir}/man1/text-vimcolor.1*
|
||||
|
||||
%changelog
|
||||
* Sun Mar 15 2009 Pascal Bleser <pascal.bleser@opensuse.org> 0.11
|
||||
- new package
|
||||
|
||||
# Local Variables:
|
||||
# mode: rpm-spec
|
||||
# tab-width: 3
|
||||
# End:
|
||||
|
Reference in New Issue
Block a user