2012-04-01 17:37:29 +00:00
|
|
|
# vim: set ts=4 sw=4 et:
|
|
|
|
#
|
|
|
|
# spec file for package perl-Text-VimColor
|
|
|
|
#
|
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-Text-VimColor
|
|
|
|
Version: 0.17
|
|
|
|
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)
|
|
|
|
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/
|
|
|
|
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
|
2009-03-15 20:02:52 +00:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
Note that this package only contains the Perl modules. To use Text::VimColor
|
|
|
|
from the command-line, install the additional package "text-vimcolor".
|
|
|
|
|
|
|
|
%package -n text-vimcolor
|
2012-04-01 17:37:29 +00:00
|
|
|
Summary: Syntax Color Text in HTML or XML using Vim
|
|
|
|
Group: Development/Tools/Doc Generators
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2009-03-15 20:02:52 +00:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%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
|
2012-04-01 17:37:29 +00:00
|
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
2009-03-15 20:02:52 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2012-04-01 17:37:29 +00:00
|
|
|
%doc README Changes
|
2009-03-15 20:02:52 +00:00
|
|
|
%dir %{perl_vendorlib}/Text
|
|
|
|
%{perl_vendorlib}/Text/VimColor.pm
|
|
|
|
%dir %{perl_vendorarch}/auto/Text
|
|
|
|
%{perl_vendorarch}/auto/Text/VimColor
|
|
|
|
%doc %{perl_man3dir}/Text::VimColor.%{perl_man3ext}*
|
2012-04-01 17:37:29 +00:00
|
|
|
%dir %{perl_vendorlib}/auto/share
|
|
|
|
%dir %{perl_vendorlib}/auto/share/dist
|
|
|
|
%{perl_vendorlib}/auto/share/dist/Text-VimColor
|
2009-03-15 20:02:52 +00:00
|
|
|
|
|
|
|
%files -n text-vimcolor
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/text-vimcolor
|
|
|
|
%doc %{_mandir}/man1/text-vimcolor.1*
|
|
|
|
|
|
|
|
%changelog
|