Files
perl-Text-VimColor/perl-Text-VimColor.spec

93 lines
3.0 KiB
RPMSpec
Raw Normal View History

# 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
%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
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.
%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
%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}*
%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)
%{_bindir}/text-vimcolor
%doc %{_mandir}/man1/text-vimcolor.1*
%changelog