]> git.pld-linux.org Git - packages/perl-Text-Diff-HTML.git/blob - perl-Text-Diff-HTML.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Text-Diff-HTML.git] / perl-Text-Diff-HTML.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define         pdir    Text
6 %define         pnam    Diff-HTML
7 Summary:        XHTML format for Text::Diff::Unified
8 Summary(pl.UTF-8):      Format XHTML dla Text::Diff::Unified
9 Name:           perl-Text-Diff-HTML
10 Version:        0.07
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/Text/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  bea80ec02d4f6d7e8eb8cfbcb35f3b2c
17 URL:            http://search.cpan.org/~dwheeler/Text-Diff-HTML-0.04/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl-Test-Pod >= 1.20
22 %endif
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 XHTML format for Text::Diff::Unified.
28
29 %description -l pl.UTF-8
30 Format XHTML dla Text::Diff::Unified.
31
32 %prep
33 %setup -q -n %{pdir}-%{pnam}-%{version}
34
35 %build
36 %{__perl} Makefile.PL \
37         INSTALLDIRS=vendor
38
39 %{__make}
40
41 %{?with_tests:%{__make} test}
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45
46 %{__make} install \
47         DESTDIR=$RPM_BUILD_ROOT
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %doc Changes README.md
55 %{perl_vendorlib}/Text/Diff/HTML.pm
56 %{_mandir}/man3/*
This page took 0.0775709999999999 seconds and 4 git commands to generate.