3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Text::Diff - perform diffs on files and record sets
9 Summary(pl.UTF-8): Text::Diff - wyszukiwanie różnic między plikami i zbiorami rekordów
13 License: GPL v2+ 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: 30d56e6dd5551ca16b8e16cc7299dc21
17 URL: http://search.cpan.org/dist/Text-Diff/
19 BuildRequires: perl-Algorithm-Diff >= 1.19
21 BuildRequires: perl-devel >= 1:5.8.0
22 BuildRequires: rpm-perlprov >= 4.1-13
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 diff() provides a basic set of services akin to the GNU diff utility.
28 It is not anywhere near as feature complete as GNU diff, but it is
29 better integrated with Perl and available on all platforms. It is
30 often faster than shelling out to a system's diff executable for small
31 files, and generally slower on larger files.
33 %description -l pl.UTF-8
34 Funkcja diff() udostępnia podstawowy zbiór usług podobnych do
35 narzędzia GNU diff. Daleko jej do pełnej funkcjonalności GNU diffa,
36 ale jest lepiej zintegrowana z Perlem i dostępna na wszystkich
37 platformach. Jest przeważnie szybsza niż uruchamianie polecenia
38 systemowego w przypadku małych plików, a wolniejsza dla dużych plików.
41 %setup -q -n %{pdir}-%{pnam}-%{version}
44 %{__perl} Makefile.PL \
48 %{?with_tests:%{__make} test}
51 rm -rf $RPM_BUILD_ROOT
54 DESTDIR=$RPM_BUILD_ROOT
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
61 %{perl_vendorlib}/Text/Diff.pm
62 %{perl_vendorlib}/Text/Diff
63 %{_mandir}/man3/Text::Diff*.3pm*