commit bdd33ed465f660b6607c7f6e8436224674692e2d Author: Xavier Bachelot <xavier@xxxxxxxxxxxx> Date: Fri Nov 25 09:23:28 2011 +0100 Initial import .gitignore | 1 + perl-Unicode-LineBreak.spec | 128 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 130 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..6f85dbf 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Unicode-LineBreak-2011.11.tar.gz diff --git a/perl-Unicode-LineBreak.spec b/perl-Unicode-LineBreak.spec new file mode 100644 index 0000000..40a9f39 --- /dev/null +++ b/perl-Unicode-LineBreak.spec @@ -0,0 +1,128 @@ +Name: perl-Unicode-LineBreak +Version: 2011.11 +Release: 2%{?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://www.cpan.org/modules/by-module/Unicode/Unicode-LineBreak-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(MIME::Charset) >= 1.006.2 +BuildRequires: perl(Test::More) >= 0.45 +BuildRequires: perl(Test::Pod) +# libthai is not available (yet) on EL5 and earlier. +%if 0%{?rhel} > 5 || 0%{?fedora} +BuildRequires: libthai-devel +%endif +BuildRequires: sombok-devel +BuildRequires: pkgconfig +Requires: perl(MIME::Charset) >= 1.006.2 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + + +%if 0%{?rhel} > 5 +%filter_from_provides /^perl(Unicode::LineBreak)$/d +%filter_from_requires /^perl(Unicode::LineBreak::Constants)$/d +%{?perl_default_filter} +%endif + +%if 0%{?fedora} > 14 +%{?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\\) +%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} + + +%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 \; + +%{_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 +%{_mandir}/man3/* + + +%changelog +* Tue Nov 22 2011 Xavier Bachelot <xavier@xxxxxxxxxxxx> 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@xxxxxxxxxxxx> 2011.11-1 +- Update to 2011.11. + +* Mon Oct 17 2011 Xavier Bachelot <xavier@xxxxxxxxxxxx> 2011.05-4 +- Drop patch and revert to stricter provides filtering. + +* Mon Oct 10 2011 Xavier Bachelot <xavier@xxxxxxxxxxxx> 2011.05-3 +- Add patch to fix provides. +- Fix provides filtering. + +* Mon Aug 01 2011 Xavier Bachelot <xavier@xxxxxxxxxxxx> 2011.05-2 +- Filter provides. + +* Tue May 17 2011 Xavier Bachelot <xavier@xxxxxxxxxxxx> 2011.05-1 +- Spec clean up. +- Add a BR: on sombok-devel. + +* Mon May 02 2011 Xavier Bachelot <xavier@xxxxxxxxxxxx> 2011.04.26-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..d0c6bf2 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +817d44a2ac08a13bd68af53e95e88ed2 Unicode-LineBreak-2011.11.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel