This commit is contained in:
Xavier Bachelot 2017-04-14 16:24:19 +02:00
parent 0affbf0b14
commit 8d022dc0f6
3 changed files with 9 additions and 24 deletions

1
.gitignore vendored
View File

@ -5,3 +5,4 @@
/Unicode-LineBreak-2015.07.16.tar.gz
/Unicode-LineBreak-2015.12.tar.gz
/Unicode-LineBreak-2016.003.tar.gz
/Unicode-LineBreak-2017.004.tar.gz

View File

@ -1,15 +1,13 @@
Name: perl-Unicode-LineBreak
Version: 2016.003
Release: 3%{?dist}
Version: 2017.004
Release: 1%{?dist}
Summary: UAX #14 Unicode Line Breaking Algorithm
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Unicode-LineBreak/
Source0: http://search.cpan.org/CPAN/authors/id/N/NE/NEZUMI/Unicode-LineBreak-%{version}.tar.gz
# libthai is not available (yet) on EL5 and earlier.
%if 0%{?rhel} > 5 || 0%{?fedora}
BuildRequires: libthai-devel
%endif
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
@ -76,24 +74,6 @@ rm -rf sombok
sed -i -e '/^sombok/d' MANIFEST
%if 0%{?rhel} == 5
cat << \EOF > %{name}-prov
#!/bin/sh
%{__perl_provides} $* |\
sed -e '/^perl(Unicode::LineBreak)$/d'
EOF
%define __perl_provides %{_builddir}/Unicode-LineBreak-%{version}/%{name}-prov
chmod +x %{__perl_provides}
cat << \EOF > %{name}-req
#!/bin/sh
%{__perl_requires} $* |\
sed -e '/^perl(Unicode::LineBreak::Constants)$/d'
EOF
%define __perl_requires %{_builddir}/Unicode-LineBreak-%{version}/%{name}-req
chmod +x %{__perl_requires}
%endif
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags}
@ -131,6 +111,10 @@ make test
%changelog
* Fri Apr 14 2017 Xavier Bachelot <xavier@bachelot.org> 2017.004-1
- Update to 2017.004.
- Drop EL5 support.
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2016.003-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

View File

@ -1 +1 @@
57dc12ff0511f9db95a2dbb6304342ca Unicode-LineBreak-2016.003.tar.gz
SHA512 (Unicode-LineBreak-2017.004.tar.gz) = f372174a761f87663761dc8b0f9bf387ffe289ba267fc0fb58353ac06dfa9418d4b0ac6e4e0d7833d842feacae4f8e90e521cd677ab22db1bf32e75f10f2e727