]>
Commit | Line | Data |
---|---|---|
fac2adb5 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
ba002a10 | 5 | %include /usr/lib/rpm/macros.perl |
e4237699 | 6 | %define pdir Locale |
7 | %define pnam Msgcat | |
61335e00 | 8 | Summary: Locale::Msgcat - access the XPG4 message catalog functions |
4910f9b1 | 9 | Summary(pl.UTF-8): Locale::Msgcat - dostęp do funkcji katalogów komunikatów XPG4 |
ba002a10 | 10 | Name: perl-Locale-Msgcat |
11 | Version: 1.03 | |
135efd9f | 12 | Release: 17 |
b715f75f | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
ba002a10 | 15 | Group: Development/Languages/Perl |
16523a67 | 16 | Source0: http://www.cpan.org/modules/by-module/Locale/%{pnam}-%{version}.tar.gz |
ae99c2bd | 17 | # Source0-md5: 8dbfee7b81e94cf946c9f28ab0bc5291 |
16523a67 | 18 | URL: http://search.cpan.org/dist/Locale-Msgcat/ |
ea600723 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
b4d4e6fb | 20 | BuildRequires: rpm-perlprov |
cbf29165 | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ba002a10 | 22 | |
23 | %description | |
150e9c59 | 24 | The Locale::Msgcat module allows access to the XPG4 message catalog |
6ca96b10 | 25 | functions (catopen(3), catgets(3) and catclose(3)), which are |
69b5fa2c | 26 | available on some systems. |
ba002a10 | 27 | |
74b66156 JR |
28 | %description -l pl.UTF-8 |
29 | Moduł Locale::Msgcat oferuje dostęp do katalogu komunikatów XPG4 | |
30 | poprzez funkcje catopen(3), catgets(3) and catclose(3), dostępne na | |
31 | niektórych systemach. | |
6d80457d | 32 | |
ba002a10 | 33 | %prep |
32eb1300 | 34 | %setup -q -n %{pnam}-%{version} |
ba002a10 | 35 | |
36 | %build | |
69b5fa2c | 37 | %{__perl} Makefile.PL \ |
b837831f | 38 | INSTALLDIRS=vendor |
fac2adb5 | 39 | %{__make} \ |
031a9c33 | 40 | CC="%{__cc}" \ |
fac2adb5 | 41 | OPTIMIZE="%{rpmcflags}" |
42 | ||
43 | %{?with_tests:%{__make} test} | |
ba002a10 | 44 | |
ba002a10 | 45 | %install |
46 | rm -rf $RPM_BUILD_ROOT | |
ba002a10 | 47 | |
fac2adb5 | 48 | %{__make} install \ |
49 | DESTDIR=$RPM_BUILD_ROOT | |
ba002a10 | 50 | |
32eb1300 | 51 | %clean |
553f22f7 | 52 | rm -rf $RPM_BUILD_ROOT |
53 | ||
32eb1300 | 54 | %files |
ba002a10 | 55 | %defattr(644,root,root,755) |
1ae5a69d | 56 | %{perl_vendorarch}/Locale/*.pm |
57 | %dir %{perl_vendorarch}/auto/Locale/Msgcat | |
1ae5a69d | 58 | %attr(755,root,root) %{perl_vendorarch}/auto/Locale/Msgcat/*.so |