Group :: Development/Other
RPM: perl-String-Similarity
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-build-perl
BuildRequires: perl(DynaLoader.pm) perl(Encode.pm) perl(Exporter.pm) perl(utf8.pm) perl-podlators
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: perl-String-Similarity
Version: 1.04
Release: alt4_23
Summary: Calculates the similarity of two strings
License: GPLv2+
Group: Development/Other
URL: https://metacpan.org/release/String-Similarity
Source0: https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/String-Similarity-%{version}.tar.gz
BuildRequires: perl-devel
BuildRequires: rpm-build-perl
BuildRequires: perl(ExtUtils/MakeMaker.pm)
Source44: import.info
%description
The similarity function calculates the similarity index of its two arguments.
A value of 0 means that the strings are entirely different. A value of 1
means that the strings are identical. Everything else lies between 0 and 1
and describes the amount of similarity between the strings.
%prep
%setup -q -n String-Similarity-%{version}
%build
/usr/bin/perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
%make_build
%install
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
# %{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%doc Changes COPYING README
%{perl_vendor_archlib}/auto/*
%{perl_vendor_archlib}/String*
%changelog
…
Full changelog you can see here
BuildRequires(pre): rpm-build-perl
BuildRequires: perl(DynaLoader.pm) perl(Encode.pm) perl(Exporter.pm) perl(utf8.pm) perl-podlators
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: perl-String-Similarity
Version: 1.04
Release: alt4_23
Summary: Calculates the similarity of two strings
License: GPLv2+
Group: Development/Other
URL: https://metacpan.org/release/String-Similarity
Source0: https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/String-Similarity-%{version}.tar.gz
BuildRequires: perl-devel
BuildRequires: rpm-build-perl
BuildRequires: perl(ExtUtils/MakeMaker.pm)
Source44: import.info
%description
The similarity function calculates the similarity index of its two arguments.
A value of 0 means that the strings are entirely different. A value of 1
means that the strings are identical. Everything else lies between 0 and 1
and describes the amount of similarity between the strings.
%prep
%setup -q -n String-Similarity-%{version}
%build
/usr/bin/perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
%make_build
%install
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
# %{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%doc Changes COPYING README
%{perl_vendor_archlib}/auto/*
%{perl_vendor_archlib}/String*
%changelog
…
Full changelog you can see here