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