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