3 %bcond_without tests # do not perform "make test"
6 %define pnam Highlight-Engine-Kate
7 Summary: Syntax::Highlight::Engine::Kate - a port to Perl of the syntax highlight engine of the Kate texteditor
8 Summary(pl.UTF-8): Syntax::Highlight::Engine::Kate - perlowy port silnika podświetlania składni z edytora Kate
9 Name: perl-Syntax-Highlight-Engine-Kate
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Syntax/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 10df4c2d1df9a99f04ec7b03f807e8c2
17 URL: http://search.cpan.org/dist/Syntax-Highlight-Engine-Kate/
18 BuildRequires: perl-ExtUtils-MakeMaker >= 6.59
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRequires: perl-Term-ANSIColor
23 BuildRequires: perl-Test-Differences >= 0.61
24 BuildRequires: perl-Test-Simple >= 1.00
25 BuildRequires: perl-Test-Warn >= 0.30
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 Syntax::Highlight::Engine::Kate is a port to Perl of the syntax
32 highlight engine of the Kate text editor.
34 The language XML files of Kate have been rewritten to Perl modules
35 using a script. These modules function as plugins to this module.
37 %description -l pl.UTF-8
38 Syntax::Highlight::Engine::Kate to perlowy port silnika podświetlania
41 Pliki języków edytora Kate w formacie XML zostały przepisane do
42 modułów Perla przy użyciu skryptu. Funkcjonują jako wtyczki dla tego
46 %setup -q -n %{pdir}-%{pnam}-%{version}
49 %{__perl} Makefile.PL \
53 OPTIMIZE="%{rpmcflags}"
55 %{?with_tests:%{__make} test}
58 rm -rf $RPM_BUILD_ROOT
60 %{__make} pure_install \
61 DESTDIR=$RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
64 cp -a eg $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
65 cp -a samples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
68 rm -rf $RPM_BUILD_ROOT
71 %defattr(644,root,root,755)
73 %dir %{perl_vendorlib}/Syntax
74 %dir %{perl_vendorlib}/Syntax/Highlight
75 %dir %{perl_vendorlib}/Syntax/Highlight/Engine
76 %{perl_vendorlib}/Syntax/Highlight/Engine/Kate.pm
77 %{perl_vendorlib}/Syntax/Highlight/Engine/Kate
78 %{_mandir}/man3/Syntax::Highlight::Engine::Kate*.3pm*
79 %{_examplesdir}/%{name}-%{version}