]> git.pld-linux.org Git - SPECS.git/blob - perl-HTML-BBCode.spec
SPECS updated Mon 29 Apr 22:05:02 CEST 2024
[SPECS.git] / perl-HTML-BBCode.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4
5 %define pdir    HTML
6 %define pnam    BBCode
7 Summary:        HTML::BBCode - Perl extension for converting BBcode to HTML
8 Summary(pl.UTF-8):      HTML::BBcode - rozszerzenie Perla do konwersji kodu BBcode na HTML
9 Name:           perl-HTML-BBCode
10 Version:        2.06
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:  03a3d80848402bb82bdd8fb443a718e8
17 URL:            http://search.cpan.org/dist/HTML-BBCode/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl(HTML::StripScripts) >= 1.04
22 BuildRequires:  perl(HTML::StripScripts::Parser)
23 BuildRequires:  perl-URI
24 %endif
25 BuildArch:      noarch
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 HTML::BBCode converts BBCode - as used on the phpBB bulletin boards -
30 to it's HTML equivalent.
31
32 %description -l pl.UTF-8
33 HTML::BBCode konwertuje BBCode - używany w forach phpBB - na
34 odpowiedniki HTML.
35
36 %prep
37 %setup -q -n %{pdir}-%{pnam}-%{version}
38
39 %build
40 %{__perl} Makefile.PL \
41         INSTALLDIRS=vendor
42 %{__make}
43
44 %{?with_tests:%{__make} test}
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48
49 %{__make} install \
50         DESTDIR=$RPM_BUILD_ROOT
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc Changes README
58 %dir %{perl_vendorlib}/HTML
59 %dir %{perl_vendorlib}/HTML/BBCode
60 %{perl_vendorlib}/HTML/BBCode.pm
61 %{perl_vendorlib}/HTML/BBCode/StripScripts.pm
62 %{_mandir}/man3/*
This page took 1.023411 seconds and 3 git commands to generate.