3 %bcond_without tests # do not perform "make test"
7 Summary: Text::CharWidth - Get number of occupied columns of a string on terminal
8 Summary(pl.UTF-8): Text::CharWidth - obliczanie liczby kolumn zajmowanych przez łańcuch na terminalu
9 Name: perl-Text-CharWidth
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Text/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 37a723df0580c0758c0ee67b37336c15
17 URL: https://metacpan.org/release/Text-CharWidth
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: rpmbuild(macros) >= 1.745
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 This is a module to provide equivalent feature as wcwidth(3) and
25 wcswidth(3). This also provides mblen(3) equivalent subroutine.
27 %description -l pl.UTF-8
28 Ten moduł udostępnia funkcjonalność odpowiadającą wcwidth(3) i
29 wcswidth(3). Udostępnia także funkcję odpowiadającą mblen(3).
32 %setup -q -n %{pdir}-%{pnam}-%{version}
35 %{__perl} Makefile.PL \
39 OPTIMIZE="%{rpmcflags}"
41 %{?with_tests:%{__make} test}
44 rm -rf $RPM_BUILD_ROOT
47 DESTDIR=$RPM_BUILD_ROOT
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)
55 %{perl_vendorarch}/Text/CharWidth.pm
56 %dir %{perl_vendorarch}/auto/Text/CharWidth
57 %attr(755,root,root) %{perl_vendorarch}/auto/Text/CharWidth/CharWidth.so
58 %{_mandir}/man3/Text::CharWidth.3pm*