]> git.pld-linux.org Git - packages/txt2html.git/blob - txt2html.spec
- updated to 2.34
[packages/txt2html.git] / txt2html.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # perform "make test"
4 #
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
8 Name:           txt2html
9 Version:        2.34
10 Release:        1
11 # same as perl
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
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
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.
27
28 %description -l pl
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.
32
33 %prep
34 %setup -q
35
36 %build
37 %{__perl} Build.PL \
38         installdirs=vendor
39
40 ./Build
41 %{?with_tests:./Build test}
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT%{_datadir}/misc
46
47 ./Build install \
48         destdir=$RPM_BUILD_ROOT
49
50 install txt2html.dict $RPM_BUILD_ROOT%{_datadir}/misc/txt2html-linkdict
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
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
60 %{_mandir}/man*/*
61 %{perl_vendorlib}/HTML/*.pm
This page took 0.062547 seconds and 3 git commands to generate.