Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37568020
en ru br
Репозитории ALT
S:4.3-alt1
5.1: 2.12-alt1
www.altlinux.org/Changes

Группа :: Development/Tools
Пакет: highlight

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and 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

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin