]> git.pld-linux.org Git - SPECS.git/blob - perl-Text-Merge.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / perl-Text-Merge.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4
5 %define         pdir    Text
6 %define         pnam    Merge
7 Summary:        Text::Merge - general purpose text/data merging methods in Perl
8 Summary(pl.UTF-8):      Text::Merge - metody ogólnego przeznaczenia łączące tekst lub dane w Perlu
9 Name:           perl-Text-Merge
10 Version:        0.36
11 Release:        2
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:  e95edd979ef207b42a2d1bcb1de9666d
17 URL:            http://search.cpan.org/dist/Text-Merge/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 The Text::Merge package is designed to provide a quick, versatile, and
25 extensible way to combine presentation templates and data structures.
26 The Text::Merge package attempts to do this by assuming that templates
27 are constructed with text and that objects consist of data and
28 functions that operate on that data. Text::Merge is very simple, in
29 that it works on one file and one object at a time, although an
30 extension exists to display lists (Text::Merge::Lists) and Text::Merge
31 itself could easily be extended further.
32
33 %description -l pl.UTF-8
34 Pakiet Text::Merge został zaprojektowany, aby dostarczyć szybką,
35 wszechstronną i rozszerzalną metodę do łączenia szablonów prezentacji
36 ze strukturami danych. Text::Merge próbuje zrobić to przy założeniu,
37 że szablony są skonstruowane z tekstu, a obiekty zawierają dane i
38 funkcje operujące na tych danych. Moduł jest bardzo prosty pod tym
39 względem, że działa na jednym pliku i jednym obiekcie jednocześnie,
40 ale istnieje rozszerzenie do wyświetlania list (Text::Merge::Lists), a
41 sam Text::Merge może łatwo być dalej rozszerzany.
42
43 %prep
44 %setup -q -n %{pdir}-%{pnam}-%{version}
45
46 %build
47 %{__perl} Makefile.PL \
48         INSTALLDIRS=vendor
49 %{__make}
50
51 %{?with_tests:%{__make} test}
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55
56 %{__make} install \
57         DESTDIR=$RPM_BUILD_ROOT
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %files
63 %defattr(644,root,root,755)
64 %doc CHANGES README
65 %{perl_vendorlib}/Text/Merge.pm
66 %{perl_vendorlib}/Text/Merge
67 %{perl_vendorlib}/auto/Text/Merge
68 %{_mandir}/man3/*
This page took 0.129109 seconds and 3 git commands to generate.