perl-Syntax-Highlight-Engin.../perl-Syntax-Highlight-Engine-Kate.spec

78 lines
2.5 KiB
RPMSpec

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Syntax-Highlight-Engine-Kate
Version: 0.14
Release: 1mamba
Summary: Syntax::Highlight::Engine::Kate - a port to Perl of the syntax highlight engine of the Kate texteditor
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Automatic Build System <autodist@mambasoft.it>
URL: https://www.cpan.org
Source: https://cpan.metacpan.org/modules/by-module/Syntax/Syntax-Highlight-Engine-Kate-%{version}.tar.gz
License: GPL, Artistic
BuildRequires: perl(Carp)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Basename)
BuildRequires: perl(Test::More)
BuildRequires: perl(XML::Dumper)
BuildRequires: perl(XML::TokeParser)
BuildRequires: perl-devel
Requires: perl >= %perl_major_ver
%description
Syntax::Highlight::Engine::Kate is a port to perl of the syntax highlight engine of the Kate text editor.
The language xml files of kate have been rewritten to perl modules using a script. These modules function as
plugins to this module.
Syntax::Highlight::Engine::Kate inherits Syntax::Highlight::Engine::Kate::Template.
%prep
%setup -q -n Syntax-Highlight-Engine-Kate-%{version}
rm -rf lib/Syntax/Highlight/Engine/Kate/Alerts
find -type f -exec chmod -x {} \;
%build
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
%make
%make test
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall_perl
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} ';'
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
chmod -R u+w %{buildroot}/*
chmod 644 Changes
chmod 644 REGISTERED
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{perl_vendorlib}/*
%{_mandir}/man3/*.3pm.gz
%doc Changes README REGISTERED
%changelog
* Wed Feb 24 2021 Automatic Build System <autodist@mambasoft.it> 0.14-1mamba
- automatic version update by autodist
* Mon Apr 10 2017 Automatic Build System <autodist@mambasoft.it> 0.10-1mamba
- automatic update by autodist
* Tue May 28 2013 Automatic Build System <autodist@mambasoft.it> 0.08-1mamba
- automatic update by autodist
* Sun Oct 14 2012 Automatic Build System <autodist@mambasoft.it> 0.07-1mamba
- automatic version update by autodist
* Mon Feb 21 2011 gil <puntogil@libero.it> 0.06-1mamba
- package created by autospec