]> git.pld-linux.org Git - packages/perl-Text-CharWidth.git/blame - perl-Text-CharWidth.spec
rebuild with perl 5.32
[packages/perl-Text-CharWidth.git] / perl-Text-CharWidth.spec
CommitLineData
67551d8e
JB
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
8150b989 5%define pdir Text
6%define pnam CharWidth
7Summary: Text::CharWidth - Get number of occupied columns of a string on terminal
c56d0b47 8Summary(pl.UTF-8): Text::CharWidth - obliczanie liczby kolumn zajmowanych przez łańcuch na terminalu
8150b989 9Name: perl-Text-CharWidth
10Version: 0.04
bcf75d93 11Release: 18
8150b989 12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
67551d8e 15Source0: http://www.cpan.org/modules/by-module/Text/%{pdir}-%{pnam}-%{version}.tar.gz
8150b989 16# Source0-md5: 37a723df0580c0758c0ee67b37336c15
3852c051 17URL: http://search.cpan.org/dist/Text-CharWidth/
8150b989 18BuildRequires: perl-devel >= 1:5.8.0
19BuildRequires: rpm-perlprov >= 4.1-13
afb4c755 20BuildRequires: rpmbuild(macros) >= 1.745
8150b989 21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24This is a module to provide equivalent feature as wcwidth(3) and
25wcswidth(3). This also provides mblen(3) equivalent subroutine.
26
a6516cbe
JR
27%description -l pl.UTF-8
28Ten moduł udostępnia funkcjonalność odpowiadającą wcwidth(3) i
29wcswidth(3). Udostępnia także funkcję odpowiadającą mblen(3).
c849c64a 30
8150b989 31%prep
32%setup -q -n %{pdir}-%{pnam}-%{version}
33
34%build
35%{__perl} Makefile.PL \
36 INSTALLDIRS=vendor
08f427f8 37%{__make} \
60584fba 38 CC="%{__cc}" \
08f427f8 39 OPTIMIZE="%{rpmcflags}"
8150b989 40
67551d8e
JB
41%{?with_tests:%{__make} test}
42
8150b989 43%install
44rm -rf $RPM_BUILD_ROOT
45
46%{__make} install \
47 DESTDIR=$RPM_BUILD_ROOT
48
49%clean
50rm -rf $RPM_BUILD_ROOT
51
52%files
53%defattr(644,root,root,755)
54%doc Changes README
55%{perl_vendorarch}/Text/CharWidth.pm
08f427f8 56%dir %{perl_vendorarch}/auto/Text/CharWidth
08f427f8 57%attr(755,root,root) %{perl_vendorarch}/auto/Text/CharWidth/CharWidth.so
afb4c755 58%{_mandir}/man3/Text::CharWidth.3pm*
This page took 0.113484 seconds and 4 git commands to generate.