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