Репозиторий Sisyphus
Последнее обновление: 25 мая 2018 | Пакетов: 18367 | Посещений: 11553840
en ru br
Репозитории ALT
S:1.9.0-alt1.r1629.5
5.1: 1.9.0-alt1.r1563.2.1
4.1: 1.9.x-alt1
3.0: 1.8.23-alt5
www.altlinux.org/Changes

Группа :: Работа с текстами
Пакет: htmldoc

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define subversion r1629
%define sourceversion 1.9.x

Name: htmldoc
Version: 1.9.0
Release: alt1.%subversion.5
Serial: 1

License: GPL with exceptions (see COPYING.txt)
Group: Text tools
Url: http://www.easysw.com/htmldoc/
Summary: htmldoc creates pdf and ps from html
Summary(ru_RU.UTF8): htmldoc - п©я─п╬пЁя─п╟п╪п╪п╟ п©я─п╣п╬п╠я─п╟п╥п╬п╡п╟п╫п╦я▐ html п╡ pdf п╦ ps

Packager: Hihin Ruslan <ruslandh at altlinux.ru>

Source: %name-%sourceversion-%subversion.tar.bz2
Source2: htmldoc.png

Patch1: htmldoc-1.9.x-%subversion-fix.overflow.patch
Patch2: htmldoc-1.9.0-alt-libpng15.patch
Patch3: htmldoc-1.9.0-alt-compat.patch

PreReq: fontconfig >= 2.4.2
Requires: fonts-type1-htmldoc

BuildPreReq: rpm-build-fonts

# Automatically added by buildreq on Tue Mar 29 2011

BuildRequires: gcc-c++ libfltk-devel libjpeg-devel libpng-devel libssl-devel

%description
Htmldoc is a HTML processing program that generates HTML, PostScript, and PDF
files with a table of contents.

%description -l ru_RU.UTF8
Htmldoc - п©я─п╬пЁя─п╟п╪п╪п╟ п╬п╠я─п╟п╠п╬я┌п╨п╦ HTML, п╨п╬я┌п╬я─п╟я▐ п©п╬п╥п╡п╬п╩я▐п╣я┌ я│п╬п╥п╢п╟п╡п╟я┌я▄ PDF, PostScript
п╦ HTML я│ п╬пЁп╩п╟п╡п╩п╣п╫п╦п╣п╪.

%package -n fonts-type1-htmldoc
Summary: Font used by htmldoc function
Group: System/Fonts/Type1

%description -n fonts-type1-htmldoc
This Package provides a htmldoc Type1 fonts
from Irmologion project.

%prep
%setup -n %name-%sourceversion-%subversion
%patch1 -p1
%patch2 -p2
%patch3 -p2
autoconf

%build
export LDFLAGS="-Wl,-rpath-link -Wl,%_x11libdir"
%configure \
 --disable-localjpeg  \
 --disable-localzlib  \
 --disable-localpng

%make_build

%install
%makeinstall

mkdir -p rpmdoc/html
install -m 644 doc/*.html rpmdoc/html
install -m 644 doc/*.png rpmdoc/html

rm -fr %buildroot%_datadir/%name/fonts
rm -fr %buildroot%_docdir/%name

mkdir -p rpmdoc/html
install -m 644 doc/*.html rpmdoc/html
install -m 644 doc/*.png rpmdoc/html

mkdir -p %buildroot%_datadir/%name/data/

install -d -m 755 %buildroot%_sysconfdir/X11/fs/config
install -d -m 755 %buildroot%_fontsdir/%name

install -d -m755 %buildroot%_fontpathdir/

mkdir -p %buildroot%_fontsdir/%name
find -name \*.pfa -print -exec cp -t %buildroot%_fontsdir/%name {} \;
find -name \*.pfb -print -exec cp -t %buildroot%_fontsdir/%name {} \;
find -name \*.afm -print -exec cp -t %buildroot%_fontsdir/%name {} \;
mkfontscale %buildroot%_fontsdir/%name
ln -s fonts.scale %buildroot%_fontsdir/%name/fonts.dir

ln -s  %_fontsdir/%name %buildroot%_datadir/%name/fonts

mkdir -p %buildroot%_fontpathdir
ln -s ../../..%_fontsdir/%name %buildroot%_fontpathdir/%name-%name:pri=40

install -D -m 644 %SOURCE2 %buildroot%_niconsdir/%name.png
install -D -m 644 %SOURCE2 %buildroot%_liconsdir/%name.png

mkdir -p %buildroot%_desktopdir
cat > %buildroot%_desktopdir/%{name}.desktop <<EOF
[Desktop Entry]
Version=1.0
Type=Application
Name=Htmldoc
Comment=HTML to PDF/PS/Indexed HTML converter
Icon=%name
Exec=%name
Terminal=false
Categories=Office;Publishing;
MimeType=text/html;
EOF

%triggerun -- %name <= 7.0.0-alt1
if [ -x %_sbindir/chkfontpath -a -f %_sysconfdir/X11/fs/config ]; then
%_sbindir/chkfontpath -q -r %_fontsdir/%name ||:
fi

%pre -n fonts-type1-htmldoc
if [ -L "%_datadir/%name/fonts" ]; then
 d=$(realpath "%_datadir/%name/fonts")
 rm -f -- "%_datadir/%name/fonts"
 if [ "$d"  != "%_datadir/fonts/htmldoc" ]; then
   echo  " mv -f -- $d %_datadir/fonts/htmldoc"
   mv -f -- "$d" "%_datadir/fonts/htmldoc"
 fi
fi

%post
%_bindir/fc-cache %_fontsdir/Type1 ||:

%postun
%files
%doc COPYING.txt README.txt doc/htmldoc.pdf
%doc rpmdoc/html/
%_bindir/%name
%_man1dir/*
%dir %_datadir/%name
%_datadir/%name/*
%exclude %_datadir/%name/fonts
%_desktopdir/%{name}.desktop
%_liconsdir/%{name}.*
%_niconsdir/%{name}.*

%files -n fonts-type1-htmldoc
%_fontpathdir/
%_fontsdir/*
%_datadir/%name/fonts

%changelog

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

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