2011-11-25 08:23:28 +00:00
|
|
|
Name: perl-Unicode-LineBreak
|
2015-09-15 08:02:26 +00:00
|
|
|
Version: 2015.07.16
|
|
|
|
Release: 1%{?dist}
|
2011-11-25 08:23:28 +00:00
|
|
|
Summary: UAX #14 Unicode Line Breaking Algorithm
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
Group: Development/Libraries
|
|
|
|
URL: http://search.cpan.org/dist/Unicode-LineBreak/
|
2013-12-02 09:29:15 +00:00
|
|
|
Source0: http://search.cpan.org/CPAN/authors/id/N/NE/NEZUMI/Unicode-LineBreak-%{version}.tar.gz
|
2011-11-25 08:23:28 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
# libthai is not available (yet) on EL5 and earlier.
|
|
|
|
%if 0%{?rhel} > 5 || 0%{?fedora}
|
|
|
|
BuildRequires: libthai-devel
|
|
|
|
%endif
|
2015-09-15 08:02:26 +00:00
|
|
|
BuildRequires: coreutils
|
|
|
|
BuildRequires: findutils
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl(Config)
|
2012-06-13 14:06:41 +00:00
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
2015-09-15 08:02:26 +00:00
|
|
|
BuildRequires: perl(strict)
|
2011-11-25 08:23:28 +00:00
|
|
|
BuildRequires: pkgconfig
|
2015-09-15 08:02:26 +00:00
|
|
|
BuildRequires: sed
|
2012-06-13 14:06:41 +00:00
|
|
|
BuildRequires: sombok-devel
|
|
|
|
# Run-time
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
BuildRequires: perl(constant)
|
|
|
|
BuildRequires: perl(Encode) >= 1.98
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
BuildRequires: perl(MIME::Charset) >= 1.006.2
|
2015-09-15 08:02:26 +00:00
|
|
|
BuildRequires: perl(overload)
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
BuildRequires: perl(vars)
|
|
|
|
BuildRequires: perl(warnings)
|
2012-06-13 14:06:41 +00:00
|
|
|
BuildRequires: perl(XSLoader)
|
|
|
|
# Tests
|
|
|
|
BuildRequires: perl(Test::More) >= 0.45
|
|
|
|
# Optional tests
|
|
|
|
BuildRequires: perl(Test::Pod) >= 1.00
|
2011-11-25 08:23:28 +00:00
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
2012-06-13 14:06:41 +00:00
|
|
|
Requires: perl(Encode) >= 1.98
|
|
|
|
Requires: perl(MIME::Charset) >= 1.006.2
|
2011-11-25 08:23:28 +00:00
|
|
|
|
|
|
|
|
2014-02-19 21:28:45 +00:00
|
|
|
%if 0%{?rhel} == 6
|
2011-11-25 08:23:28 +00:00
|
|
|
%filter_from_provides /^perl(Unicode::LineBreak)$/d
|
|
|
|
%filter_from_requires /^perl(Unicode::LineBreak::Constants)$/d
|
|
|
|
%{?perl_default_filter}
|
|
|
|
%endif
|
|
|
|
|
2014-02-19 21:28:45 +00:00
|
|
|
%if 0%{?fedora} > 14 || 0%{?rhel} > 6
|
2011-11-25 08:23:28 +00:00
|
|
|
%{?filter_setup:
|
|
|
|
%filter_from_requires /perl(Unicode::LineBreak::Constants)/d
|
|
|
|
%filter_from_provides /^perl(Unicode::LineBreak)$/d
|
|
|
|
}
|
|
|
|
%{?perl_default_filter}
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(Unicode::LineBreak::Constants\\)
|
2015-09-15 08:02:26 +00:00
|
|
|
%global __requires_exclude %__requires_exclude|^perl\\(constant\\)\s*$
|
|
|
|
%global __requires_exclude %__requires_exclude|^perl\\(Encode\\)\s*$
|
|
|
|
%global __requires_exclude %__requires_exclude|^perl\\(MIME::Charset\\)\s*$
|
2011-11-25 08:23:28 +00:00
|
|
|
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(Unicode::LineBreak\\)$
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
Unicode::LineBreak performs Line Breaking Algorithm described in Unicode
|
|
|
|
Standards Annex #14 [UAX #14]. East_Asian_Width informative properties
|
|
|
|
defined by Annex #11 [UAX #11] will be concerned to determine breaking
|
|
|
|
positions.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Unicode-LineBreak-%{version}
|
2012-06-13 14:06:41 +00:00
|
|
|
# Remove bundled library
|
|
|
|
rm -rf sombok
|
|
|
|
sed -i -e '/^sombok/d' MANIFEST
|
2011-11-25 08:23:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
%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}
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
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 \;
|
|
|
|
|
2013-12-02 09:29:15 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_mandir}/ja/man3
|
|
|
|
for mod in Text::LineFold Unicode::GCString Unicode::LineBreak; do
|
|
|
|
mv $RPM_BUILD_ROOT%{_mandir}/man3/POD2::JA::$mod.3pm \
|
|
|
|
$RPM_BUILD_ROOT%{_mandir}/ja/man3/$mod.3pm
|
|
|
|
done
|
|
|
|
|
2011-11-25 08:23:28 +00:00
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc ARTISTIC Changes Changes.REL1 GPL README Todo.REL1
|
|
|
|
%{perl_vendorarch}/auto/*
|
|
|
|
%{perl_vendorarch}/Unicode*
|
|
|
|
%{perl_vendorarch}/Text
|
2013-12-02 09:29:15 +00:00
|
|
|
%{perl_vendorarch}/POD2
|
2011-11-25 08:23:28 +00:00
|
|
|
%{_mandir}/man3/*
|
2013-12-02 09:29:15 +00:00
|
|
|
%{_mandir}/ja/man3/*
|
2011-11-25 08:23:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2015-09-15 08:02:26 +00:00
|
|
|
* Fri Sep 11 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2015.07.16-1
|
|
|
|
- 2015.07.16 bump
|
|
|
|
|
2015-06-18 13:21:17 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2013.11-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-06-06 17:25:46 +00:00
|
|
|
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2013.11-6
|
|
|
|
- Perl 5.22 rebuild
|
|
|
|
|
2014-08-28 22:19:48 +00:00
|
|
|
* Thu Aug 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2013.11-5
|
|
|
|
- Perl 5.20 rebuild
|
|
|
|
|
2014-08-17 17:50:02 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2013.11-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-07 12:04:42 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2013.11-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-02-19 21:28:45 +00:00
|
|
|
* Tue Feb 18 2014 Xavier Bachelot <xavier@bachelot.org> 2013.11-2
|
|
|
|
- Fix filtering for EL7.
|
|
|
|
|
2013-12-02 09:41:10 +00:00
|
|
|
* Mon Dec 02 2013 Xavier Bachelot <xavier@bachelot.org> 2013.11-1
|
|
|
|
- Update to 2013.11.
|
|
|
|
|
2013-12-02 09:29:15 +00:00
|
|
|
* Mon Oct 21 2013 Xavier Bachelot <xavier@bachelot.org> 2013.10-1
|
|
|
|
- Update to 2013.10.
|
|
|
|
|
2013-08-04 01:52:50 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2012.06-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-07-21 11:19:40 +00:00
|
|
|
* Sun Jul 21 2013 Petr Pisar <ppisar@redhat.com> - 2012.06-5
|
|
|
|
- Perl 5.18 rebuild
|
|
|
|
|
2013-02-14 16:08:49 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2012.06-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-07-20 22:17:44 +00:00
|
|
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2012.06-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-06-14 09:22:20 +00:00
|
|
|
* Thu Jun 14 2012 Petr Pisar <ppisar@redhat.com> - 2012.06-2
|
|
|
|
- Perl 5.16 rebuild
|
|
|
|
|
2012-06-13 14:06:41 +00:00
|
|
|
* Wed Jun 13 2012 Petr Pisar <ppisar@redhat.com> - 2012.06-1
|
|
|
|
- 2012.06 bump (to fix building)
|
|
|
|
|
2012-06-13 13:01:33 +00:00
|
|
|
* Wed Jun 13 2012 Petr Pisar <ppisar@redhat.com> - 2011.11-4
|
|
|
|
- Perl 5.16 rebuild
|
|
|
|
|
2012-01-13 20:22:27 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2011.11-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-11-25 08:23:28 +00:00
|
|
|
* Tue Nov 22 2011 Xavier Bachelot <xavier@bachelot.org> 2011.11-2
|
|
|
|
- Filter out bad requires perl(Unicode::LineBreak::Constants).
|
|
|
|
- Adapt provides and requires filtering to handle all 3 variants
|
|
|
|
(EL5; F14/EL6; F15+).
|
|
|
|
|
|
|
|
* Fri Nov 18 2011 Xavier Bachelot <xavier@bachelot.org> 2011.11-1
|
|
|
|
- Update to 2011.11.
|
|
|
|
|
|
|
|
* Mon Oct 17 2011 Xavier Bachelot <xavier@bachelot.org> 2011.05-4
|
|
|
|
- Drop patch and revert to stricter provides filtering.
|
|
|
|
|
|
|
|
* Mon Oct 10 2011 Xavier Bachelot <xavier@bachelot.org> 2011.05-3
|
|
|
|
- Add patch to fix provides.
|
|
|
|
- Fix provides filtering.
|
|
|
|
|
|
|
|
* Mon Aug 01 2011 Xavier Bachelot <xavier@bachelot.org> 2011.05-2
|
|
|
|
- Filter provides.
|
|
|
|
|
|
|
|
* Tue May 17 2011 Xavier Bachelot <xavier@bachelot.org> 2011.05-1
|
|
|
|
- Spec clean up.
|
|
|
|
- Add a BR: on sombok-devel.
|
|
|
|
|
|
|
|
* Mon May 02 2011 Xavier Bachelot <xavier@bachelot.org> 2011.04.26-1
|
|
|
|
- Specfile autogenerated by cpanspec 1.78.
|