Blame SPECS/perl-Unicode-LineBreak.spec

006478
# Run optional test
006478
%if ! (0%{?rhel})
006478
%bcond_without perl_Unicode_LineBreak_enables_optional_test
006478
%else
006478
%bcond_with perl_Unicode_LineBreak_enables_optional_test
006478
%endif
006478
006478
Name:           perl-Unicode-LineBreak
006478
Version:        2019.001
006478
Release:        11%{?dist}
006478
Summary:        UAX #14 Unicode Line Breaking Algorithm
006478
License:        GPL+ or Artistic
006478
URL:            https://metacpan.org/release/Unicode-LineBreak
006478
Source0:        https://cpan.metacpan.org/authors/id/N/NE/NEZUMI/Unicode-LineBreak-%{version}.tar.gz
006478
006478
BuildRequires:  gcc
006478
BuildRequires:  libthai-devel
006478
BuildRequires:  coreutils
006478
BuildRequires:  findutils
006478
BuildRequires:  make
006478
BuildRequires:  perl-devel
006478
BuildRequires:  perl-generators
006478
BuildRequires:  perl-interpreter
006478
BuildRequires:  perl(:VERSION) >= 5.8
006478
BuildRequires:  perl(Config)
006478
BuildRequires:  perl(ExtUtils::MakeMaker)
006478
BuildRequires:  perl(strict)
006478
BuildRequires:  pkgconfig
006478
BuildRequires:  sed
006478
BuildRequires:  sombok-devel
006478
# Run-time
006478
BuildRequires:  perl(Carp)
006478
BuildRequires:  perl(constant)
006478
BuildRequires:  perl(Encode) >= 1.98
006478
BuildRequires:  perl(Exporter)
006478
BuildRequires:  perl(MIME::Charset) >= 1.006.2
006478
BuildRequires:  perl(overload)
006478
BuildRequires:  perl(vars)
006478
BuildRequires:  perl(warnings)
006478
BuildRequires:  perl(XSLoader)
006478
# Tests
006478
BuildRequires:  perl(FindBin)
006478
BuildRequires:  perl(lib)
006478
BuildRequires:  perl(Test::More) >= 0.45
006478
%if %{with perl_Unicode_LineBreak_enables_optional_test}
006478
# Optional tests
006478
BuildRequires:  perl(Test::Pod) >= 1.00
006478
%endif
006478
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
006478
Requires:       perl(Encode) >= 1.98
006478
Requires:       perl(MIME::Charset) >= 1.006.2
006478
006478
006478
%if 0%{?rhel} == 6
006478
%filter_from_provides /^perl(Unicode::LineBreak)$/d
006478
%filter_from_requires /^perl(Unicode::LineBreak::Constants)$/d
006478
%{?perl_default_filter}
006478
%endif
006478
006478
%if 0%{?fedora} || 0%{?rhel} > 6
006478
%{?filter_setup:
006478
%filter_from_requires /perl(Unicode::LineBreak::Constants)/d
006478
%filter_from_provides /^perl(Unicode::LineBreak)$/d
006478
}
006478
%{?perl_default_filter}
006478
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(Unicode::LineBreak::Constants\\)
006478
%global __requires_exclude %__requires_exclude|^perl\\(constant\\)\s*$
006478
%global __requires_exclude %__requires_exclude|^perl\\(Encode\\)\s*$
006478
%global __requires_exclude %__requires_exclude|^perl\\(MIME::Charset\\)\s*$
006478
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(Unicode::LineBreak\\)$
006478
%endif
006478
006478
006478
%description
006478
Unicode::LineBreak performs Line Breaking Algorithm described in Unicode
006478
Standards Annex #14 [UAX #14]. East_Asian_Width informative properties
006478
defined by Annex #11 [UAX #11] will be concerned to determine breaking
006478
positions.
006478
006478
006478
%prep
006478
%setup -q -n Unicode-LineBreak-%{version}
006478
# Remove bundled library
006478
rm -rf sombok
006478
sed -i -e '/^sombok/d' MANIFEST
006478
006478
006478
%build
006478
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
006478
%make_build
006478
006478
006478
%install
006478
make pure_install DESTDIR=$RPM_BUILD_ROOT
006478
006478
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
006478
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
006478
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
006478
006478
mkdir -p $RPM_BUILD_ROOT%{_mandir}/ja/man3
006478
for mod in Text::LineFold Unicode::GCString Unicode::LineBreak; do
006478
  mv $RPM_BUILD_ROOT%{_mandir}/man3/POD2::JA::$mod.3pm \
006478
     $RPM_BUILD_ROOT%{_mandir}/ja/man3/$mod.3pm
006478
done
006478
006478
%{_fixperms} $RPM_BUILD_ROOT/*
006478
006478
006478
%check
006478
make test
006478
006478
006478
%files
006478
%doc Changes Changes.REL1 README Todo.REL1
006478
%license ARTISTIC GPL
006478
%{perl_vendorarch}/auto/*
006478
%{perl_vendorarch}/Unicode*
006478
%{perl_vendorarch}/Text
006478
%{perl_vendorarch}/POD2
006478
%{_mandir}/man3/*
006478
%{_mandir}/ja/man3/*
006478
006478
006478
%changelog
006478
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2019.001-11
006478
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
006478
  Related: rhbz#1991688
006478
006478
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2019.001-10
006478
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
006478
006478
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2019.001-9
006478
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
006478
006478
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2019.001-8
006478
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
006478
006478
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2019.001-7
006478
- Perl 5.32 rebuild
006478
006478
* Fri Mar 13 2020 Petr Pisar <ppisar@redhat.com> - 2019.001-6
006478
- Specify all dependencies
006478
006478
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2019.001-5
006478
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
006478
006478
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2019.001-4
006478
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
006478
006478
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2019.001-3
006478
- Perl 5.30 rebuild
006478
006478
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2019.001-2
006478
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
006478
006478
* Fri Jan 04 2019 Xavier Bachelot <xavier@bachelot.org> - 2019.001-1
006478
- Update to 2019.001.
006478
006478
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2018.003-3
006478
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
006478
006478
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2018.003-2
006478
- Perl 5.28 rebuild
006478
006478
* Tue Apr 17 2018 Xavier Bachelot <xavier@bachelot.org> - 2018.003-1
006478
- Update to 2018.003.
006478
006478
* Thu Mar  1 2018 Florian Weimer <fweimer@redhat.com> - 2017.004-8
006478
- Rebuild with new redhat-rpm-config/perl build flags
006478
006478
* Mon Feb 26 2018 Xavier Bachelot <xavier@bachelot.org> - 2017.004-7
006478
- Add BR: gcc.
006478
- Clean up spec.
006478
006478
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2017.004-6
006478
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
006478
006478
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2017.004-5
006478
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
006478
006478
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2017.004-4
006478
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
006478
006478
* Fri Jul 07 2017 Igor Gnatenko <ignatenko@redhat.com> - 2017.004-3
006478
- Rebuild due to bug in RPM (RHBZ #1468476)
006478
006478
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2017.004-2
006478
- Perl 5.26 rebuild
006478
006478
* Fri Apr 14 2017 Xavier Bachelot <xavier@bachelot.org> 2017.004-1
006478
- Update to 2017.004.
006478
- Drop EL5 support.
006478
006478
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2016.003-3
006478
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
006478
006478
* Thu May 19 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2016.003-2
006478
- Perl 5.24 re-rebuild of bootstrapped packages
006478
006478
* Mon May 16 2016 Xavier Bachelot <xavier@bachelot.org> 2016.003-1
006478
- Update to 2016.003.
006478
- Clean up specfile.
006478
006478
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2015.12-3
006478
- Perl 5.24 rebuild
006478
006478
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2015.12-2
006478
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
006478
006478
* Tue Jan 19 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2015.12-1
006478
- 2015.12 bump
006478
006478
* Fri Sep 11 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2015.07.16-1
006478
- 2015.07.16 bump
006478
006478
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2013.11-7
006478
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
006478
006478
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2013.11-6
006478
- Perl 5.22 rebuild
006478
006478
* Thu Aug 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2013.11-5
006478
- Perl 5.20 rebuild
006478
006478
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2013.11-4
006478
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
006478
006478
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2013.11-3
006478
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
006478
006478
* Tue Feb 18 2014 Xavier Bachelot <xavier@bachelot.org> 2013.11-2
006478
- Fix filtering for EL7.
006478
006478
* Mon Dec 02 2013 Xavier Bachelot <xavier@bachelot.org> 2013.11-1
006478
- Update to 2013.11.
006478
006478
* Mon Oct 21 2013 Xavier Bachelot <xavier@bachelot.org> 2013.10-1
006478
- Update to 2013.10.
006478
006478
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2012.06-6
006478
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
006478
006478
* Sun Jul 21 2013 Petr Pisar <ppisar@redhat.com> - 2012.06-5
006478
- Perl 5.18 rebuild
006478
006478
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2012.06-4
006478
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
006478
006478
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2012.06-3
006478
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
006478
006478
* Thu Jun 14 2012 Petr Pisar <ppisar@redhat.com> - 2012.06-2
006478
- Perl 5.16 rebuild
006478
006478
* Wed Jun 13 2012 Petr Pisar <ppisar@redhat.com> - 2012.06-1
006478
- 2012.06 bump (to fix building)
006478
006478
* Wed Jun 13 2012 Petr Pisar <ppisar@redhat.com> - 2011.11-4
006478
- Perl 5.16 rebuild
006478
006478
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2011.11-3
006478
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
006478
006478
* Tue Nov 22 2011 Xavier Bachelot <xavier@bachelot.org> 2011.11-2
006478
- Filter out bad requires perl(Unicode::LineBreak::Constants).
006478
- Adapt provides and requires filtering to handle all 3 variants
006478
  (EL5; F14/EL6; F15+).
006478
006478
* Fri Nov 18 2011 Xavier Bachelot <xavier@bachelot.org> 2011.11-1
006478
- Update to 2011.11.
006478
006478
* Mon Oct 17 2011 Xavier Bachelot <xavier@bachelot.org> 2011.05-4
006478
- Drop patch and revert to stricter provides filtering.
006478
006478
* Mon Oct 10 2011 Xavier Bachelot <xavier@bachelot.org> 2011.05-3
006478
- Add patch to fix provides.
006478
- Fix provides filtering.
006478
006478
* Mon Aug 01 2011 Xavier Bachelot <xavier@bachelot.org> 2011.05-2
006478
- Filter provides.
006478
006478
* Tue May 17 2011 Xavier Bachelot <xavier@bachelot.org> 2011.05-1
006478
- Spec clean up.
006478
- Add a BR: on sombok-devel.
006478
006478
* Mon May 02 2011 Xavier Bachelot <xavier@bachelot.org> 2011.04.26-1
006478
- Specfile autogenerated by cpanspec 1.78.