]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without gui # without FLTK-based GUI | |
4 | # | |
5 | Summary: HTML processing program | |
6 | Summary(pl.UTF-8): Program przetwarzający HTML | |
7 | Name: htmldoc | |
8 | Version: 1.8.27 | |
9 | Release: 13 | |
10 | License: GPL v2 with OpenSSL exception | |
11 | Group: Applications/Publishing | |
12 | Source0: ftp://ftp.easysw.com/pub/htmldoc/%{version}/%{name}-%{version}-source.tar.bz2 | |
13 | # Source0-md5: 35589e7b8fe9c54e11be87cd5aec4dcc | |
14 | Patch0: %{name}-libpng15.patch | |
15 | Patch1: htmldoc-1.8.27-fortify-fail.patch | |
16 | Patch2: htmldoc-1.8.27-scanf-overflows.patch | |
17 | URL: http://www.htmldoc.org/ | |
18 | %{?with_gui:BuildRequires: xorg-lib-libXpm-devel} | |
19 | BuildRequires: autoconf | |
20 | BuildRequires: automake | |
21 | %{?with_gui:BuildRequires: fltk-devel} | |
22 | BuildRequires: libjpeg-devel | |
23 | BuildRequires: libpng-devel | |
24 | BuildRequires: openssl-devel >= 0.9.7d | |
25 | BuildRequires: zlib-devel | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | HTML processing program that generates HTML, PostScript, and PDF files | |
30 | with a table of contents. | |
31 | ||
32 | %description -l pl.UTF-8 | |
33 | Program przetwarzający HTML, który generuje pliki HTML, PostScript i | |
34 | PDF ze spisem treści. | |
35 | ||
36 | %prep | |
37 | %setup -q | |
38 | %patch0 -p0 | |
39 | %patch1 -p1 | |
40 | %patch2 -p1 | |
41 | ||
42 | %build | |
43 | %configure \ | |
44 | %{!?with_gui:--without-gui} | |
45 | %{__make} | |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | %{__make} install \ | |
50 | datadir=$RPM_BUILD_ROOT%{_datadir} \ | |
51 | mandir=$RPM_BUILD_ROOT%{_mandir} \ | |
52 | bindir=$RPM_BUILD_ROOT%{_bindir} | |
53 | ||
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
59 | %doc COPYING.txt CHANGES.txt README.txt | |
60 | %doc doc/htmldoc.html doc/htmldoc-fig*.png doc/htmldoc.p* doc/help.html | |
61 | %attr(755,root,root) %{_bindir}/* | |
62 | %{_mandir}/man1/* | |
63 | %{_datadir}/htmldoc |