]>
Commit | Line | Data |
---|---|---|
b8d578ba AM |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
e9e517a1 ER |
4 | |
5 | %define pdir Text | |
6 | %define pnam WikiFormat | |
b8d578ba AM |
7 | %include /usr/lib/rpm/macros.perl |
8 | Summary: Text::WikiFormat perl module for translating Wiki formatted text into other formats | |
9 | Name: perl-Text-WikiFormat | |
10 | Version: 0.79 | |
7f57dc41 | 11 | Release: 2 |
b8d578ba | 12 | # same as perl |
b8d578ba AM |
13 | License: GPL v1+ or Artistic |
14 | Group: Development/Languages/Perl | |
b8d578ba | 15 | Source0: http://search.cpan.org/CPAN/authors/id/C/CH/CHROMATIC/Text-WikiFormat-%{version}.tar.gz |
7f57dc41 | 16 | # Source0-md5: 7f3e888ff898f67332216c4a25523f30 |
e9e517a1 ER |
17 | URL: http://search.cpan.org/dist/Text-WikiFormat/ |
18 | BuildRequires: perl-devel >= 1:5.8.0 | |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
b8d578ba AM |
20 | BuildArch: noarch |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | Text::WikiFormat - the original Wiki web site had a very simple | |
25 | interface to edit and to add pages. Its formatting rules are simple | |
26 | and easy to use. They are also easy to translate into other, more | |
27 | complicated markup languages with this module. It creates HTML by | |
28 | default, but can produce valid POD, DocBook, XML, or any other format | |
29 | imaginable. | |
30 | ||
31 | %prep | |
32 | %setup -q -n Text-WikiFormat-%{version} | |
33 | ||
34 | %build | |
35 | %{__perl} Makefile.PL \ | |
36 | INSTALLDIRS=vendor | |
37 | %{__make} | |
38 | ||
39 | %{?with_tests:%{__make} test} | |
40 | ||
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %{__make} install \ | |
45 | DESTDIR=$RPM_BUILD_ROOT | |
46 | ||
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %files | |
51 | %defattr(644,root,root,755) | |
52 | %doc Changes README | |
53 | %{perl_vendorlib}/Text/WikiFormat.pm | |
54 | %{perl_vendorlib}/Text/WikiFormat | |
55 | %{_mandir}/man3/* |