#
# Conditional build:
%bcond_without tests # do not perform "make test"
-#
-%include /usr/lib/rpm/macros.perl
+
%define pdir Text
%define pnam DeDuper
+%include /usr/lib/rpm/macros.perl
Summary: Text::DeDuper - near duplicates detection module
-#Summary(pl.UTF-8):
Name: perl-Text-DeDuper
Version: 1.01
Release: 1
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/Text/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5: bb1adbc25100db21acd2ccbc9c7c7328
-# generic URL, check or change before uncommenting
-#URL: http://search.cpan.org/dist/Text-DeDuper/
+URL: http://search.cpan.org/dist/Text-DeDuper/
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
%if %{with tests}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-This module uses the resemblance measure as proposed by Andrei Z. Broder at al
-(http://www.ra.ethz.ch/CDstore/www6/Technical/Paper205/Paper205.html) to detect
-similar (near-duplicate) documents based on their text.
-
-Note of caution: The module only works correctly with languages where texts can
-be tokenised to words by detecting alphabetical characters sequences. Therefore
-it might not provide very good results for e.g. Chinese.
-
-
-
-# %description -l pl.UTF-8
-# TODO
+This module uses the resemblance measure as proposed by Andrei Z.
+Broder at al
+(http://www.ra.ethz.ch/CDstore/www6/Technical/Paper205/Paper205.html)
+to detect similar (near-duplicate) documents based on their text.
+
+Note of caution: The module only works correctly with languages where
+texts can be tokenised to words by detecting alphabetical characters
+sequences. Therefore it might not provide very good results for e.g.
+Chinese.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}