Group :: Ferramentas de texto
RPM: htmldoc
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define subversion r1563
%define sourceversion 1.9.x
Name: htmldoc
Version: 1.9.0
Release: alt1.%subversion.2.1
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.CP1251): htmldoc - ïðîãðàììà ïðåîáðàçîâàíèÿ html â pdf è ps
Packager: Andrei Bulava <abulava at altlinux.ru>
Source: %name-%sourceversion-%subversion.tar.bz2
Source1: htmldoc.menu
Source2: htmldoc.png
PreReq: fontconfig >= 2.4.2
Requires: fonts-type1-htmldoc
BuildPreReq: xorg-x11-font-utils
BuildPreReq: rpm-build-fonts
# Automatically added by buildreq on Mon Jun 16 2008
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.CP1251
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 -q -n %name-%sourceversion-%subversion
%build
export LDFLAGS="-Wl,-rpath-link -Wl,%_x11libdir"
%configure --with-gui
%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%_defaultdocdir/%name
%__mkdir_p rpmdoc/html
%__install -m 644 doc/*.html rpmdoc/html
%__install -m 644 doc/*.png rpmdoc/html
%__mkdir_p %buildroot%_menudir
%__install -m 644 %SOURCE1 %buildroot%_menudir/htmldoc
%__mkdir_p %buildroot%_iconsdir
%__install -m 644 %SOURCE2 %buildroot%_iconsdir
%__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/etc/X11/fontpath.d/
%__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%_sysconfdir/X11/fontpath.d
%__ln_s ../../..%_fontsdir/%name %buildroot%_sysconfdir/X11/fontpath.d/%name-%name:pri=40
%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
%update_menus
%_bindir/fc-cache %_fontsdir/Type1 ||:
%postun
%clean_menus
%files
%doc COPYING.txt README.txt doc/htmldoc.pdf
%doc rpmdoc/html/
%_bindir/%name
%_man1dir/*
%dir %_datadir/%name
%_datadir/%name/*
%exclude %_datadir/%name/fonts
%_menudir/%name
%_iconsdir/*
%files -n fonts-type1-htmldoc
%_sysconfdir/X11/fontpath.d/
%_fontsdir/*
%_datadir/%name/fonts
%changelog
…
Todas as alterações você pod ver aqui
%define sourceversion 1.9.x
Name: htmldoc
Version: 1.9.0
Release: alt1.%subversion.2.1
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.CP1251): htmldoc - ïðîãðàììà ïðåîáðàçîâàíèÿ html â pdf è ps
Packager: Andrei Bulava <abulava at altlinux.ru>
Source: %name-%sourceversion-%subversion.tar.bz2
Source1: htmldoc.menu
Source2: htmldoc.png
PreReq: fontconfig >= 2.4.2
Requires: fonts-type1-htmldoc
BuildPreReq: xorg-x11-font-utils
BuildPreReq: rpm-build-fonts
# Automatically added by buildreq on Mon Jun 16 2008
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.CP1251
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 -q -n %name-%sourceversion-%subversion
%build
export LDFLAGS="-Wl,-rpath-link -Wl,%_x11libdir"
%configure --with-gui
%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%_defaultdocdir/%name
%__mkdir_p rpmdoc/html
%__install -m 644 doc/*.html rpmdoc/html
%__install -m 644 doc/*.png rpmdoc/html
%__mkdir_p %buildroot%_menudir
%__install -m 644 %SOURCE1 %buildroot%_menudir/htmldoc
%__mkdir_p %buildroot%_iconsdir
%__install -m 644 %SOURCE2 %buildroot%_iconsdir
%__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/etc/X11/fontpath.d/
%__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%_sysconfdir/X11/fontpath.d
%__ln_s ../../..%_fontsdir/%name %buildroot%_sysconfdir/X11/fontpath.d/%name-%name:pri=40
%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
%update_menus
%_bindir/fc-cache %_fontsdir/Type1 ||:
%postun
%clean_menus
%files
%doc COPYING.txt README.txt doc/htmldoc.pdf
%doc rpmdoc/html/
%_bindir/%name
%_man1dir/*
%dir %_datadir/%name
%_datadir/%name/*
%exclude %_datadir/%name/fonts
%_menudir/%name
%_iconsdir/*
%files -n fonts-type1-htmldoc
%_sysconfdir/X11/fontpath.d/
%_fontsdir/*
%_datadir/%name/fonts
%changelog
…
Todas as alterações você pod ver aqui