]> git.pld-linux.org Git - packages/perl-Unicode-LineBreak.git/blame - perl-Unicode-LineBreak.spec
- updated to 2019.001
[packages/perl-Unicode-LineBreak.git] / perl-Unicode-LineBreak.spec
CommitLineData
b6b12085
JR
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%define pdir Unicode
6%define pnam LineBreak
b6b12085 7Summary: Unicode::LineBreak - UAX #14 Unicode Line Breaking Algorithm
d8116a7f 8Summary(pl.UTF-8): Unicode::LineBreak - algorytm łamiania linii w Unikodzie UAX #14
b6b12085 9Name: perl-Unicode-LineBreak
c885f720
JB
10Version: 2019.001
11Release: 1
b6b12085
JR
12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-module/Unicode/%{pdir}-%{pnam}-%{version}.tar.gz
c885f720
JB
16# Source0-md5: 003d6da7a13700e069afed9238c864b9
17URL: https://metacpan.org/dist/Unicode-LineBreak
d8116a7f 18BuildRequires: libthai-devel >= 0.1.9
c885f720 19BuildRequires: perl-ExtUtils-MakeMaker >= 6.26
b6b12085 20BuildRequires: perl-devel >= 1:5.8.0
d8116a7f 21BuildRequires: pkgconfig
b6b12085 22BuildRequires: rpm-perlprov >= 4.1-13
c885f720 23BuildRequires: rpmbuild(macros) >= 1.745
d8116a7f
JB
24BuildRequires: sombok-devel >= 2.4.0
25BuildRequires: sombok-devel < 3
b6b12085 26%if %{with tests}
d8116a7f
JB
27BuildRequires: perl-Encode >= 1:1.98
28BuildRequires: perl-MIME-Charset >= 1.006.2
c885f720 29BuildRequires: perl-Test-Simple >= 0.45
b6b12085 30%endif
d8116a7f 31Requires: sombok >= 2.4.0
b6b12085
JR
32BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34%description
35Unicode::LineBreak performs Line Breaking Algorithm described in
36Unicode Standard Annex #14 [UAX #14]. East_Asian_Width informative
37property defined by Annex #11 [UAX #11] will be concerned to determine
38breaking positions.
39
d8116a7f
JB
40%description -l pl.UTF-8
41Unicode::LineBreak wykonuje algorytm łamania linii opisany w
42dokumencie Unicode Standard Annex #14 (UAX #14). Przy określaniu
43miejsc łamania brana jest pod uwagę własność informacyjna
44East_Asian_Width zdefiniowana w dokumencie Annex #11 (UAX #11).
45
b6b12085
JR
46%prep
47%setup -q -n %{pdir}-%{pnam}-%{version}
48
49%build
50%{__perl} Makefile.PL \
51 INSTALLDIRS=vendor
52%{__make} \
53 CC="%{__cc}" \
54 OPTIMIZE="%{rpmcflags}"
55
56%{?with_tests:%{__make} test}
57
58%install
59rm -rf $RPM_BUILD_ROOT
60
61%{__make} pure_install \
62 DESTDIR=$RPM_BUILD_ROOT
63
d8116a7f
JB
64%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Unicode/*.pod
65%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/POD2/JA/Text/*.pod
66%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/POD2/JA/Unicode/*.pod
67
68install -d $RPM_BUILD_ROOT%{_mandir}/ja/man3
69%{__mv} $RPM_BUILD_ROOT%{_mandir}/man3/POD2::JA::Text::LineFold.3pm $RPM_BUILD_ROOT%{_mandir}/ja/man3/Text::LineFold.3pm
70%{__mv} $RPM_BUILD_ROOT%{_mandir}/man3/POD2::JA::Unicode::GCString.3pm $RPM_BUILD_ROOT%{_mandir}/ja/man3/Unicode::GCString.3pm
71%{__mv} $RPM_BUILD_ROOT%{_mandir}/man3/POD2::JA::Unicode::LineBreak.3pm $RPM_BUILD_ROOT%{_mandir}/ja/man3/Unicode::LineBreak.3pm
72
b6b12085
JR
73%clean
74rm -rf $RPM_BUILD_ROOT
75
76%files
77%defattr(644,root,root,755)
78%doc Changes README
79%dir %{perl_vendorarch}/auto/Unicode/LineBreak
d8116a7f 80%attr(755,root,root) %{perl_vendorarch}/auto/Unicode/LineBreak/LineBreak.so
b6b12085 81%{perl_vendorarch}/Text/LineFold.pm
d8116a7f
JB
82%{perl_vendorarch}/Unicode/GCString.pm
83%{perl_vendorarch}/Unicode/LineBreak.pm
b6b12085
JR
84%dir %{perl_vendorarch}/Unicode/LineBreak
85%{perl_vendorarch}/Unicode/LineBreak/Constants.pm
d8116a7f
JB
86%{_mandir}/man3/Text::LineFold.3pm*
87%{_mandir}/man3/Unicode::GCString.3pm*
88%{_mandir}/man3/Unicode::LineBreak.3pm*
89%lang(ja) %{_mandir}/ja/man3/Text::LineFold.3pm*
90%lang(ja) %{_mandir}/ja/man3/Unicode::GCString.3pm*
91%lang(ja) %{_mandir}/ja/man3/Unicode::LineBreak.3pm*
This page took 0.083923 seconds and 4 git commands to generate.