]>
Commit | Line | Data |
---|---|---|
57443028 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without gui # without FLTK-based GUI | |
4 | # | |
79da5567 | 5 | %define snap r1629 |
fac7c3ba | 6 | Summary: Convert html source files into html, postscript, or pdf |
7 | Summary(pl.UTF-8): Konwertuj pliki html do ps, pdf lub html | |
c6ed2b5c | 8 | Name: htmldoc |
79da5567 | 9 | Version: 1.9 |
10 | Release: 0.1.%{snap} | |
6245a5f0 | 11 | License: GPL v2 with OpenSSL exception |
c6ed2b5c | 12 | Group: Applications/Publishing |
79da5567 | 13 | Source0: ftp://ftp.easysw.com/pub/htmldoc/snapshots/%{name}-%{version}.x-%{snap}.tar.bz2 |
14 | # Source0-md5: a5982321cadbadaef9ec59c10733b9df | |
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 | |
79da5567 | 35 | %setup -q -n %{name}-%{version}%{?snap:.x-%{snap}} |
c6ed2b5c JB |
36 | |
37 | %build | |
57443028 JB |
38 | %configure \ |
39 | %{!?with_gui:--without-gui} | |
c6ed2b5c JB |
40 | %{__make} |
41 | ||
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | %{__make} install \ | |
45 | datadir=$RPM_BUILD_ROOT%{_datadir} \ | |
46 | mandir=$RPM_BUILD_ROOT%{_mandir} \ | |
47 | bindir=$RPM_BUILD_ROOT%{_bindir} | |
48 | ||
c6ed2b5c JB |
49 | %clean |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
f71c1852 | 54 | %doc COPYING.txt CHANGES.txt README.txt |
79da5567 | 55 | %doc doc/*.html doc/htmldoc-fig*.png doc/htmldoc.p* |
c6ed2b5c JB |
56 | %attr(755,root,root) %{_bindir}/* |
57 | %{_mandir}/man1/* | |
58 | %{_datadir}/htmldoc |