]>
Commit | Line | Data |
---|---|---|
ccf666a0 | 1 | # |
2 | # Conditional build: | |
d559cf9d | 3 | %bcond_without tests # do not perform "make test" |
769c1ccf | 4 | |
b32fc5bc | 5 | %define pdir Unicode |
6 | %define pnam Lite | |
769c1ccf | 7 | %include /usr/lib/rpm/macros.perl |
2926d000 | 8 | Summary: Unicode::Lite - easy conversion between encodings |
f641ceb9 | 9 | Summary(pl.UTF-8): Unicode::Lite - łatwa konwersja pomiędzy kodowaniami |
ccf666a0 | 10 | Name: perl-Unicode-Lite |
11 | Version: 0.12 | |
a4cfff22 | 12 | Release: 5 |
5a569eba | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
ccf666a0 | 15 | Group: Development/Languages/Perl |
c62049a8 | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
80f6d2fb | 17 | # Source0-md5: f8fa78a8c113bf8b42cba6e3cb9b8797 |
769c1ccf | 18 | URL: http://search.cpan.org/dist/Unicode-Lite/ |
ab966381 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
5d9dd18b | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
d559cf9d | 21 | %if %{with tests} |
ccf666a0 | 22 | BuildRequires: perl-Unicode-Map |
23 | BuildRequires: perl-enum | |
24 | %endif | |
25 | BuildArch: noarch | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
888a4fb0 | 29 | Unicode::Lite includes string converting function from one and to |
30 | another charset. | |
ccf666a0 | 31 | |
96ffa9f0 JR |
32 | %description -l pl.UTF-8 |
33 | Unicode::Lite zawiera funkcje do konwersji ciągów na różne kodowania. | |
ccf666a0 | 34 | |
35 | %prep | |
36 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
37 | ||
38 | %build | |
5d9dd18b | 39 | %{__perl} Makefile.PL \ |
896b1ecf | 40 | INSTALLDIRS=vendor |
ccf666a0 | 41 | %{__make} |
42 | ||
d559cf9d | 43 | %{?with_tests:%{__make} test} |
ccf666a0 | 44 | |
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
d559cf9d | 48 | %{__make} install \ |
49 | DESTDIR=$RPM_BUILD_ROOT | |
ccf666a0 | 50 | |
51 | %clean | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
5d9dd18b | 56 | %{perl_vendorlib}/%{pdir}/*.pm |
ccf666a0 | 57 | %{_mandir}/man3/* |