# # 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.50 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: 533b2c4990c42b963f5e4fbcfac7abd1 URL: http://www.sourceforge.net/projects/txt2html/ BuildRequires: perl-Module-Build >= 0.26 %if %{with tests} BuildRequires: perl-Getopt-ArgvFile BuildRequires: perl-Test-Distribution BuildRequires: perl-YAML-Syck %endif 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 %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc README Changes DEVNOTES TODO %attr(755,root,root) %{_bindir}/txt2html %{_mandir}/man*/* %{perl_vendorlib}/HTML/*.pm