]>
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: 15 | |
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 | Patch3: gcc11.patch | |
18 | URL: http://www.htmldoc.org/ | |
19 | %{?with_gui:BuildRequires: xorg-lib-libXpm-devel} | |
20 | BuildRequires: autoconf | |
21 | BuildRequires: automake | |
22 | %{?with_gui:BuildRequires: fltk-devel} | |
23 | BuildRequires: libjpeg-devel | |
24 | BuildRequires: libpng-devel | |
25 | BuildRequires: openssl-devel >= 0.9.7d | |
26 | BuildRequires: zlib-devel | |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
30 | HTML processing program that generates HTML, PostScript, and PDF files | |
31 | with a table of contents. | |
32 | ||
33 | %description -l pl.UTF-8 | |
34 | Program przetwarzający HTML, który generuje pliki HTML, PostScript i | |
35 | PDF ze spisem treści. | |
36 | ||
37 | %prep | |
38 | %setup -q | |
39 | %patch0 -p0 | |
40 | %patch1 -p1 | |
41 | %patch2 -p1 | |
42 | %patch3 -p1 | |
43 | ||
44 | %build | |
45 | %configure \ | |
46 | %{!?with_gui:--without-gui} | |
47 | %{__make} | |
48 | ||
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | %{__make} install \ | |
52 | datadir=$RPM_BUILD_ROOT%{_datadir} \ | |
53 | mandir=$RPM_BUILD_ROOT%{_mandir} \ | |
54 | bindir=$RPM_BUILD_ROOT%{_bindir} | |
55 | ||
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
61 | %doc COPYING.txt CHANGES.txt README.txt | |
62 | %doc doc/htmldoc.html doc/htmldoc-fig*.png doc/htmldoc.p* doc/help.html | |
63 | %attr(755,root,root) %{_bindir}/* | |
64 | %{_mandir}/man1/* | |
65 | %{_datadir}/htmldoc |