3 %bcond_without tests # perform "make test"
5 %include /usr/lib/rpm/macros.perl
6 Summary: Convert raw text to something with a little HTML formatting
7 Summary(pl): Konwersja czystego tekstu na HTML, rozpoznaj±c trochê sformatowania
12 License: GPL v1+ or Artistic
13 Group: Applications/Text
14 Source0: http://dl.sourceforge.net/txt2html/%{name}-%{version}.tar.gz
15 # Source0-md5: 587cd41f8876629d66644dd2b8d946df
16 URL: http://www.sourceforge.net/projects/txt2html/
17 BuildRequires: perl-Module-Build >= 0.26
18 Requires: perl-Getopt-ArgvFile
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 My intent in writing this tool is to provide an easier way of
24 converting existing text documents to HTML format. txt2html can also
25 be used to aid in writing new HTML documents, but there are probably
26 better ways of doing that.
29 Narzêdzie u³atwia konwersjê dokumentów tekstowych na HTML. txt2html
30 mo¿e te¿ byæ u¿yty do pisania nowych dokumentów HTML, chocia¿ na to
31 pewnie istniej± lepsze sposoby.
41 %{?with_tests:./Build test}
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT%{_datadir}/misc
48 destdir=$RPM_BUILD_ROOT
50 install txt2html.dict $RPM_BUILD_ROOT%{_datadir}/misc/txt2html-linkdict
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
57 %doc LICENSE README Changes DEVNOTES TODO
58 %config %{_datadir}/misc/txt2html-linkdict
59 %attr(755,root,root) %{_bindir}/txt2html
61 %{perl_vendorlib}/HTML/*.pm