|
|
a688187 |
%global _hardened_build 1
|
|
|
a688187 |
|
|
|
a688187 |
Name: perl-Text-Fuzzy
|
|
|
041b358 |
Version: 0.27
|
|
|
041b358 |
Release: 1%{?dist}
|
|
|
a688187 |
Summary: Partial string matching using edit distances
|
|
|
a688187 |
License: GPL+ or Artistic
|
|
|
a688187 |
Group: Development/Libraries
|
|
|
a688187 |
URL: http://search.cpan.org/dist/Text-Fuzzy/
|
|
|
a688187 |
|
|
|
a688187 |
Source0: http://search.cpan.org/CPAN/authors/id/B/BK/BKB/Text-Fuzzy-%{version}.tar.gz
|
|
|
a688187 |
|
|
|
a688187 |
BuildRequires: coreutils
|
|
|
a688187 |
BuildRequires: findutils
|
|
|
a688187 |
BuildRequires: gcc
|
|
|
9c255bc |
BuildRequires: perl-interpreter
|
|
|
a688187 |
BuildRequires: perl-devel
|
|
|
94f7147 |
BuildRequires: perl-generators
|
|
|
a688187 |
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
a688187 |
BuildRequires: perl(strict)
|
|
|
a688187 |
BuildRequires: perl(warnings)
|
|
|
a688187 |
|
|
|
a688187 |
# Run-time
|
|
|
a688187 |
BuildRequires: perl(DynaLoader)
|
|
|
a688187 |
BuildRequires: perl(Exporter)
|
|
|
a688187 |
|
|
|
a688187 |
# Testing
|
|
|
a688187 |
BuildRequires: perl(Test::More) >= 0.88
|
|
|
a688187 |
BuildRequires: perl(Text::Levenshtein::Damerau::XS)
|
|
|
a688187 |
BuildRequires: perl(utf8)
|
|
|
a688187 |
|
|
|
a688187 |
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
a688187 |
|
|
|
a688187 |
%description
|
|
|
a688187 |
This module calculates edit distances between words, and searches arrays
|
|
|
a688187 |
and files to find the nearest entry by edit distance. It handles both byte
|
|
|
a688187 |
strings and character strings (strings containing Unicode), treating each
|
|
|
a688187 |
Unicode character as a single entity.
|
|
|
a688187 |
|
|
|
a688187 |
%prep
|
|
|
a688187 |
%setup -q -n Text-Fuzzy-%{version}
|
|
|
a688187 |
|
|
|
a688187 |
%build
|
|
|
a688187 |
# partially fixing hardening if not fully supported
|
|
|
a688187 |
export CFLAGS="%{optflags} -Wl,-z,relro -Wl,-z,now"
|
|
|
a688187 |
export LDFLAGS="%{?__global_ldflags} -Wl,-z,now -Wl,--as-needed"
|
|
|
a688187 |
|
|
|
090d2f2 |
# fixing interpreter used
|
|
|
041b358 |
perl -pi -e 's|#!.*$|#!/usr/bin/perl|' examples/{*.cgi,*.pl}
|
|
|
041b358 |
|
|
|
041b358 |
# removing non-needed files
|
|
|
041b358 |
rm -f make-pod.pl
|
|
|
090d2f2 |
|
|
|
a688187 |
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$CFLAGS"
|
|
|
a688187 |
make %{?_smp_mflags}
|
|
|
a688187 |
|
|
|
a688187 |
%install
|
|
|
a688187 |
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
|
a688187 |
|
|
|
a688187 |
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
|
|
a688187 |
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
|
|
a688187 |
|
|
|
a688187 |
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
a688187 |
|
|
|
a688187 |
# fixing scripts provided in docs
|
|
|
41a6f85 |
chmod a-x -c examples/{*.cgi,*.pl}
|
|
|
a688187 |
|
|
|
a688187 |
%check
|
|
|
a688187 |
make test
|
|
|
a688187 |
|
|
|
a688187 |
%files
|
|
|
a688187 |
%doc examples/ Changes README
|
|
|
a688187 |
%{perl_vendorarch}/auto/*
|
|
|
a688187 |
%{perl_vendorarch}/Text*
|
|
|
a688187 |
%{_mandir}/man3/*
|
|
|
a688187 |
|
|
|
a688187 |
|
|
|
a688187 |
%changelog
|
|
|
041b358 |
* Sat Aug 19 2017 Denis Fateyev <denis@fateyev.com> - 0.27-1
|
|
|
041b358 |
- Update to 0.27 release
|
|
|
041b358 |
|
|
|
090d2f2 |
* Sun Aug 06 2017 Denis Fateyev <denis@fateyev.com> - 0.26-4
|
|
|
090d2f2 |
- Fixing Perl interpreter path
|
|
|
090d2f2 |
|
|
|
a561522 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.26-3
|
|
|
a561522 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
a561522 |
|
|
|
34bd0a0 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.26-2
|
|
|
34bd0a0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
34bd0a0 |
|
|
|
967e422 |
* Sat Jul 22 2017 Denis Fateyev <denis@fateyev.com> - 0.26-1
|
|
|
967e422 |
- Update to 0.26 release
|
|
|
967e422 |
|
|
|
9e56654 |
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.25-3
|
|
|
9e56654 |
- Perl 5.26 rebuild
|
|
|
9e56654 |
|
|
|
7c883ca |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.25-2
|
|
|
7c883ca |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
7c883ca |
|
|
|
6edd2af |
* Sat Dec 24 2016 Denis Fateyev <denis@fateyev.com> - 0.25-1
|
|
|
6edd2af |
- Update to 0.25 release
|
|
|
6edd2af |
|
|
|
e02c820 |
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.24-4
|
|
|
e02c820 |
- Perl 5.24 rebuild
|
|
|
e02c820 |
|
|
|
41a6f85 |
* Fri Feb 12 2016 Denis Fateyev <denis@fateyev.com> - 0.24-3
|
|
|
41a6f85 |
- Docs permission fixes
|
|
|
41a6f85 |
|
|
|
a688187 |
* Mon Feb 08 2016 Denis Fateyev <denis@fateyev.com> - 0.24-2
|
|
|
a688187 |
- Package spec cleanup
|
|
|
a688187 |
|
|
|
a688187 |
* Fri Feb 05 2016 Denis Fateyev <denis@fateyev.com> - 0.24-1
|
|
|
a688187 |
- Initial release
|