]>
Commit | Line | Data |
---|---|---|
efc8da29 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
efc8da29 | 5 | %define pdir Devel |
6 | %define pnam PPPort | |
7 | Summary: Devel::PPPort - Perl/Pollution/Portability | |
64a401ce | 8 | Summary(pl.UTF-8): Devel:::PPPort - Perl/Zanieczyszczenie/Przenośność |
efc8da29 | 9 | Name: perl-Devel-PPPort |
14d004cf | 10 | Version: 3.36 |
ffa96563 | 11 | Release: 3 |
efc8da29 | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
5c0125a7 | 15 | Source0: http://www.cpan.org/modules/by-module/Devel/%{pdir}-%{pnam}-%{version}.tar.gz |
14d004cf | 16 | # Source0-md5: e713c0b047949d1e1db5499af9f10b63 |
efc8da29 | 17 | URL: http://search.cpan.org/dist/Devel-PPPort/ |
18 | BuildRequires: perl-devel >= 1:5.8.0 | |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
efc8da29 | 20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
23 | Perl's API has changed over time, gaining new features, new functions, | |
24 | increasing its flexibility, and reducing the impact on the C namespace | |
3060b86a JB |
25 | environment (reduced pollution). The header file written by this |
26 | module, typically ppport.h, attempts to bring some of the newer Perl | |
27 | API features to older versions of Perl, so that you can worry less | |
28 | about keeping track of old releases, but users can still reap the | |
29 | benefit. | |
efc8da29 | 30 | |
31 | Devel::PPPort contains a single function, called WriteFile. Its | |
32 | only purpose is to write the ppport.h C header file. This file | |
3060b86a JB |
33 | contains a series of macros and, if explicitly requested, functions |
34 | that allow XS modules to be built using older versions of Perl. | |
35 | Currently, Perl versions from 5.003 to 5.10.0 are supported. | |
efc8da29 | 36 | |
37 | This module is used by h2xs to write the file ppport.h. | |
38 | ||
64a401ce JB |
39 | %description -l pl.UTF-8 |
40 | Perlowe API zmieniało się w czasie, zyskując nowe możliwości, nowe | |
41 | funkcje, zwiększając elastyczność i zmniejszając wpływ na środowisko | |
42 | przestrzeni nazw C (mniejsze zanieczyszczenie). Plik nagłówkowy | |
43 | zapisywany przez ten moduł, zwykle ppport.h, próbuje udostępnić | |
44 | niektóre z nowych możliwości API Perla w starszych wersjach Perla, aby | |
45 | mniej trzeba było martwić się o śledzenie starszych wersji. | |
46 | ||
47 | Devel::PPPort zawiera jedną funkcję - WriteFile. Jej jedynym celem | |
48 | jest zapis pliku nagłówkowego C ppport.h. Plik ten zawiera ciąg makr | |
49 | i, jeśli tego zażądano, funkcje pozwalające na budowanie modułów XS | |
50 | przy użyciu starszych wersji Perla. Aktualnie obsługiwane są wersje | |
5c0125a7 | 51 | Perla od 5.003 do 5.10.0. |
64a401ce JB |
52 | |
53 | Ten moduł jest używany przez h2xs do zapisu pliku ppport.h. | |
efc8da29 | 54 | |
55 | %prep | |
56 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
57 | ||
58 | %build | |
59 | %{__perl} Makefile.PL \ | |
60 | INSTALLDIRS=vendor | |
61 | %{__make} \ | |
c94e5635 | 62 | CC="%{__cc}" \ |
efc8da29 | 63 | OPTIMIZE="%{rpmcflags}" |
64 | ||
65 | %{?with_tests:%{__make} test} | |
66 | ||
67 | %install | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %{__make} install \ | |
71 | DESTDIR=$RPM_BUILD_ROOT | |
72 | ||
73 | %clean | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %files | |
77 | %defattr(644,root,root,755) | |
78 | %doc Changes README TODO | |
3060b86a | 79 | %{perl_vendorarch}/Devel/PPPort.pm |
efc8da29 | 80 | %dir %{perl_vendorarch}/auto/Devel/PPPort |
3060b86a JB |
81 | %attr(755,root,root) %{perl_vendorarch}/auto/Devel/PPPort/PPPort.so |
82 | %{_mandir}/man3/Devel::PPPort.3pm* |