]> git.pld-linux.org Git - packages/perl-Text-Trac.git/blob - perl-Text-Trac.spec
486627c0f6f1fe72b9b948e0d92738f32acdf7f0
[packages/perl-Text-Trac.git] / perl-Text-Trac.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define         pdir    Text
7 %define         pnam    Trac
8 Summary:        Text::Trac - extension for formatting text with Trac Wiki Style
9 Name:           perl-Text-Trac
10 Version:        0.15
11 Release:        1
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  57757c5e9c742232b811af33b224357a
17 BuildRequires:  rpm-perlprov >= 4.1-13
18 %if %{with tests}
19 BuildRequires:  perl-Test-Base
20 %endif
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 Text::Trac parses text with Trac WikiFormatting and convert it to html
26 format.
27
28 %prep
29 %setup -q -n %{pdir}-%{pnam}-%{version}
30
31 %build
32 %{__perl} Makefile.PL \
33         INSTALLDIRS=vendor
34 %{__make}
35
36 %{?with_tests:%{__make} test}
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40
41 %{__make} install \
42         DESTDIR=$RPM_BUILD_ROOT
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %files
48 %defattr(644,root,root,755)
49 %doc README
50 %{perl_vendorlib}/Text/Trac.pm
51 %{perl_vendorlib}/Text/Trac
52 %{_mandir}/man3/*
This page took 0.0992 seconds and 2 git commands to generate.