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