Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37570897
en ru br
ALT Linux repositórios
S:4.3-alt1

Group :: Development/Tools
RPM: highlight

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Name:    highlight
Summary: Universal source code to formatted text converter
Version: 4.3
Release: alt1
Group:   Development/Tools
License: GPL-3.0
URL:     http://www.andre-simon.de/

Packager: Alexey Gladkov <legion at altlinux.ru>

Source0: %name-%version.tar

BuildRequires: boost-devel-headers
BuildRequires: gcc-c++
BuildRequires: liblua5-devel
BuildRequires: libstdc++-devel
BuildRequires: pkg-config

BuildRequires: swig

BuildRequires: rpm-build-perl
BuildRequires: perl-devel

Requires: highlight-common = %version-%release

%description
A utility that converts sourcecode to HTML, XHTML, RTF, LaTeX, TeX, XML or
terminal escape sequences with syntax highlighting.
It supports several programming and markup languages.
Language descriptions are configurable and support regular expressions.
The utility offers indentation and reformatting capabilities.
It is easily possible to create new language definitions and colour themes.

%package -n highlight-common
Summary: Source code to formatted text converter (architecture independent files)
Group: Development/Other

Conflicts: highlight <= 3.38-alt1

BuildArch: noarch

%description -n highlight-common
A utility that converts sourcecode to HTML, XHTML, RTF, LaTeX, TeX, XML or
terminal escape sequences with syntax highlighting.
It supports several programming and markup languages.
Language descriptions are configurable and support regular expressions.
The utility offers indentation and reformatting capabilities.
It is easily possible to create new language definitions and colour themes.

%package -n perl-highlight
Summary: perl bindings for highlight source code to formatted text converter
Group: Development/Perl

Provides: libhighlight-perl = %version-%release
Requires: highlight-common  = %version-%release

%description -n perl-highlight
A utility that converts sourcecode to HTML, XHTML, RTF, LaTeX, TeX, XML or
terminal escape sequences with syntax highlighting.
It supports several programming and markup languages.
Language descriptions are configurable and support regular expressions.
The utility offers indentation and reformatting capabilities.
It is easily possible to create new language definitions and colour themes.

%prep
%setup -q -n highlight

%build
%add_optflags %optflags_shared

export CFLAGS="%optflags"
export CXXFLAGS="%optflags"

%make cli

pushd extras/swig
%make perl
popd

%install
%makeinstall DESTDIR=%buildroot

install -D extras/swig/highlight.pm %buildroot/%perl_vendor_archlib/highlight.pm
install -D extras/swig/highlight.so %buildroot/%perl_vendor_autolib/highlight/highlight.so

rm -rf -- %buildroot/%_datadir/doc/%name

%files
%_bindir/%name
%_man1dir/%name.*
%_man5dir/filetypes.conf.5*

%files -n highlight-common
%_sysconfdir/%name
%_datadir/%name

%files -n perl-highlight
%perl_vendor_autolib/*
%perl_vendor_archlib/*

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009