]> git.pld-linux.org Git - SPECS.git/blob - perl-TextStructured.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / perl-TextStructured.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4
5 %define         pdir    Text
6 %define         pnam    TextStructured
7 Summary:        TextStructured perl module
8 Summary(pl.UTF-8):      Moduł Perla TextStructured
9 Name:           perl-TextStructured
10 Version:        0.02
11 Release:        10
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/TextStructured-%{version}.tar.gz
16 # Source0-md5:  dd7937a44d09b0206f942e6dc4b57e20
17 Patch0:         %{name}-paths.patch
18 URL:            http://search.cpan.org/dist/TextStructured/
19 BuildRequires:  perl-devel >= 1:5.8.0
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 TextStructured perl module.
26
27 %description -l pl.UTF-8
28 Moduł Perla TextStructured.
29
30 %prep
31 %setup -q -n TextStructured-%{version}
32 %patch0 -p0
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 README template
53 %{perl_vendorlib}/Text/Structured.pm
54 %{perl_vendorlib}/Text/StructuredBase.pm
55 %{_mandir}/man3/*
This page took 0.858902 seconds and 3 git commands to generate.