3 %bcond_without tests # do not perform "make test"
7 Summary: Text::VimColor - syntax color text in HTML or XML using Vim
8 Summary(pl.UTF-8): Text::VimColor - kolorowanie składni tekstu w HTML-u lub XML-u przy użyciu Vima
9 Name: perl-Text-VimColor
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 268fb3f630b463fcec528d798dcf77c3
17 URL: http://search.cpan.org/dist/Text-VimColor/
19 BuildRequires: perl-Path-Class
22 BuildRequires: perl-devel >= 1:5.8.0
23 BuildRequires: rpm-perlprov >= 4.1-13
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 This module tries to markup text files according to their syntax. It
29 can be used to produce web pages with pretty-printed colourful source
30 code samples. It can produce output in the following formats:
31 - HTML Valid XHTML 1.0, with the exact colouring and style left to a
33 - XML Pieces of text are marked with XML elements in a simple
34 vocabulary, which can be converted to other formats, for example,
36 - Perl array A simple Perl data structure, so that Perl code can be
37 used to turn it into whatever is needed This module works by running
38 the Vim text editor and getting it to apply its excellent syntax
39 highlighting (aka 'font-locking') to an input file, and mark pieces of
40 text according to whether it thinks they are comments, keywords,
43 %description -l pl.UTF-8
44 Ten moduł próbuje oznaczyć pliki tekstowe zgodnie z ich składnią. Może
45 być używany do tworzenia stron WWW z ładnie wydrukowanymi, kolorowymi
46 przykładami kodu źródłowego. Moduł może tworzyć wynik w następujących
48 - HTML - poprawny XHTML 1.0, z dokładnym kolorowaniem i stylem
49 pozostawionym dla arkusza CSS
50 - XML - fragmenty tekstu oznaczane elementami XML-a z prostym
51 słownictwem; można to skonwertować do innych formatów, na przykład
53 - tablica perlowa - prosta struktura danych w Perlu, dzięki czemu
54 można użyć perlowego kodu do przekształcenia jej w co tylko potrzeba.
55 Ten moduł działa poprzez uruchomienie edytora tekstu Vim i zmuszenie
56 go do zastosowania swojego świetnego podświetlania składni (znanego
57 także jako 'font-locking') dla pliku wejściowego oraz oznaczenia
58 fragmentów tekstu zależnie od tego, czy uważa je za komentarze, słowa
59 kluczowe, łańcuchy itp.
62 %setup -q -n %{pdir}-%{pnam}-%{version}
65 %{__perl} Makefile.PL \
69 %{?with_tests:%{__make} test}
72 rm -rf $RPM_BUILD_ROOT
75 DESTDIR=$RPM_BUILD_ROOT
78 rm -rf $RPM_BUILD_ROOT
81 %defattr(644,root,root,755)
83 %attr(755,root,root) %{_bindir}/*
84 %{perl_vendorlib}/Text/*