# # Conditional build: %bcond_without tests # perform "make test" # %include /usr/lib/rpm/macros.perl Summary: Convert raw text to something with a little HTML formatting Summary(pl): Konwersja czystego tekstu na HTML, rozpoznając trochę sformatowania Name: txt2html Version: 2.34 Release: 1 # same as perl License: GPL v1+ or Artistic Group: Applications/Text Source0: http://dl.sourceforge.net/txt2html/%{name}-%{version}.tar.gz # Source0-md5: 587cd41f8876629d66644dd2b8d946df URL: http://www.sourceforge.net/projects/txt2html/ BuildRequires: perl-Module-Build >= 0.26 Requires: perl-Getopt-ArgvFile BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description My intent in writing this tool is to provide an easier way of converting existing text documents to HTML format. txt2html can also be used to aid in writing new HTML documents, but there are probably better ways of doing that. %description -l pl Narzędzie ułatwia konwersję dokumentów tekstowych na HTML. txt2html może też być użyty do pisania nowych dokumentów HTML, chociaż na to pewnie istnieją lepsze sposoby. %prep %setup -q %build %{__perl} Build.PL \ installdirs=vendor ./Build %{?with_tests:./Build test} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_datadir}/misc ./Build install \ destdir=$RPM_BUILD_ROOT install txt2html.dict $RPM_BUILD_ROOT%{_datadir}/misc/txt2html-linkdict %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc LICENSE README Changes DEVNOTES TODO %config %{_datadir}/misc/txt2html-linkdict %attr(755,root,root) %{_bindir}/txt2html %{_mandir}/man*/* %{perl_vendorlib}/HTML/*.pm