]> git.pld-linux.org Git - packages/perl-Text-VimColor.git/blame - perl-Text-VimColor.spec
use generic url
[packages/perl-Text-VimColor.git] / perl-Text-VimColor.spec
CommitLineData
c8e7ed94 1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
9e4f4d07 4
008331b5 5%define pdir Text
6%define pnam VimColor
9e4f4d07 7%include /usr/lib/rpm/macros.perl
51529dcc 8Summary: Text::VimColor - syntax color text in HTML or XML using Vim
8ee6d942 9Summary(pl.UTF-8): Text::VimColor - kolorowanie składni tekstu w HTML-u lub XML-u przy użyciu Vima
c8e7ed94 10Name: perl-Text-VimColor
5103374a 11Version: 0.11
b4463d1a 12Release: 3
51529dcc 13# same as perl
5124dcae 14License: GPL v1+ or Artistic
c8e7ed94 15Group: Development/Languages/Perl
16Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
5103374a 17# Source0-md5: 268fb3f630b463fcec528d798dcf77c3
9e4f4d07 18URL: http://search.cpan.org/dist/Text-VimColor/
c8e7ed94 19%if %{with tests}
20BuildRequires: perl-Path-Class
f9dba76e 21BuildRequires: vim
c8e7ed94 22%endif
be2529af
JB
23BuildRequires: perl-devel >= 1:5.8.0
24BuildRequires: rpm-perlprov >= 4.1-13
c8e7ed94 25BuildArch: noarch
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29This module tries to markup text files according to their syntax. It
30can be used to produce web pages with pretty-printed colourful source
31code samples. It can produce output in the following formats:
9e4f4d07
ER
32- HTML Valid XHTML 1.0, with the exact colouring and style left to a
33 CSS stylesheet
34- XML Pieces of text are marked with XML elements in a simple
35 vocabulary, which can be converted to other formats, for example,
36 using XSLT
37- Perl array A simple Perl data structure, so that Perl code can be
38 used to turn it into whatever is needed This module works by running
39 the Vim text editor and getting it to apply its excellent syntax
40 highlighting (aka 'font-locking') to an input file, and mark pieces of
41 text according to whether it thinks they are comments, keywords,
42 strings, etc.
c8e7ed94 43
b3cfb371
JR
44%description -l pl.UTF-8
45Ten moduł próbuje oznaczyć pliki tekstowe zgodnie z ich składnią. Może
46być używany do tworzenia stron WWW z ładnie wydrukowanymi, kolorowymi
47przykładami kodu źródłowego. Moduł może tworzyć wynik w następujących
be2529af 48formatach:
b3cfb371 49- HTML - poprawny XHTML 1.0, z dokładnym kolorowaniem i stylem
be2529af 50 pozostawionym dla arkusza CSS
590c3f7e 51- XML - fragmenty tekstu oznaczane elementami XML-a z prostym
b3cfb371
JR
52 słownictwem; można to skonwertować do innych formatów, na przykład
53 przy użyciu XSLT
54- tablica perlowa - prosta struktura danych w Perlu, dzięki czemu
9e4f4d07
ER
55 można użyć perlowego kodu do przekształcenia jej w co tylko potrzeba.
56 Ten moduł działa poprzez uruchomienie edytora tekstu Vim i zmuszenie
57 go do zastosowania swojego świetnego podświetlania składni (znanego
58 także jako 'font-locking') dla pliku wejściowego oraz oznaczenia
59 fragmentów tekstu zależnie od tego, czy uważa je za komentarze, słowa
60 kluczowe, łańcuchy itp.
be2529af 61
c8e7ed94 62%prep
63%setup -q -n %{pdir}-%{pnam}-%{version}
64
65%build
66%{__perl} Makefile.PL \
67 INSTALLDIRS=vendor
c8e7ed94 68%{__make}
5124dcae 69
c8e7ed94 70%{?with_tests:%{__make} test}
71
72%install
73rm -rf $RPM_BUILD_ROOT
74
75%{__make} install \
76 DESTDIR=$RPM_BUILD_ROOT
77
78%clean
79rm -rf $RPM_BUILD_ROOT
80
81%files
82%defattr(644,root,root,755)
83%doc ChangeLog README
84%attr(755,root,root) %{_bindir}/*
85%{perl_vendorlib}/Text/*
86%{_mandir}/man3/*
87%{_mandir}/man1/*
This page took 0.083536 seconds and 4 git commands to generate.