3 %bcond_without tests # do not perform "make test"
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
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
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
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.
44 %setup -q -n %{pdir}-%{pnam}-%{version}
47 %{__perl} Makefile.PL \
51 %{?with_tests:%{__make} test}
54 rm -rf $RPM_BUILD_ROOT
57 DESTDIR=$RPM_BUILD_ROOT
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
65 %{perl_vendorlib}/Text/Merge.pm
66 %{perl_vendorlib}/Text/Merge
67 %{perl_vendorlib}/auto/Text/Merge