]> git.pld-linux.org Git - packages/perl-Text-CharWidth.git/blob - perl-Text-CharWidth.spec
- release 12 (by relup.sh)
[packages/perl-Text-CharWidth.git] / perl-Text-CharWidth.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define         pdir    Text
7 %define         pnam    CharWidth
8 Summary:        Text::CharWidth - Get number of occupied columns of a string on terminal
9 Summary(pl.UTF-8):      Text::CharWidth - obliczanie liczby kolumn zajmowanych przez łańcuch na terminalu
10 Name:           perl-Text-CharWidth
11 Version:        0.04
12 Release:        12
13 # same as perl
14 License:        GPL v1+ or Artistic
15 Group:          Development/Languages/Perl
16 Source0:        http://www.cpan.org/modules/by-module/Text/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5:  37a723df0580c0758c0ee67b37336c15
18 URL:            http://search.cpan.org/dist/Text-CharWidth/
19 BuildRequires:  perl-devel >= 1:5.8.0
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 This is a module to provide equivalent feature as wcwidth(3) and
25 wcswidth(3). This also provides mblen(3) equivalent subroutine.
26
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).
30
31 %prep
32 %setup -q -n %{pdir}-%{pnam}-%{version}
33
34 %build
35 %{__perl} Makefile.PL \
36         INSTALLDIRS=vendor
37 %{__make} \
38         CC="%{__cc}" \
39         OPTIMIZE="%{rpmcflags}"
40
41 %{?with_tests:%{__make} test}
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45
46 %{__make} install \
47         DESTDIR=$RPM_BUILD_ROOT
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %doc Changes README
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/*
This page took 0.0600889999999999 seconds and 3 git commands to generate.