]> git.pld-linux.org Git - packages/perl-IPC-Shareable.git/blame - perl-IPC-Shareable.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-IPC-Shareable.git] / perl-IPC-Shareable.spec
CommitLineData
2d726c46 1#
2# Conditional build:
d724e8b8 3%bcond_with tests # perform "make test"
c695ed8e 4
4c625c00 5%define pdir IPC
6%define pnam Shareable
2d726c46 7Summary: IPC::Shareable - share Perl variables between processes
02e76a18 8Summary(pl.UTF-8): IPC::Shareable - współdzielenie zmiennych Perla między procesami
2d726c46 9Name: perl-IPC-Shareable
10Version: 0.60
e202a411 11Release: 6
2d726c46 12License: GPL v2+
13Group: Development/Languages/Perl
ef7695ad 14Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
680ad760 15# Source0-md5: 51462dabfb4eec81e0b3417a9f9add4e
c695ed8e 16URL: http://search.cpan.org/dist/IPC-Shareable/
4facccce 17BuildRequires: perl-devel >= 1:5.8.0
ff0ffcc8 18BuildRequires: rpm-perlprov >= 4.1-13
2d726c46 19BuildArch: noarch
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
23IPC::Shareable allows you to tie a variable to shared memory making it
24easy to share the contents of that variable with other Perl processes.
c695ed8e 25Scalars, arrays, and hashes can be tied. The variable being tied may
2d726c46 26contain arbitrarily complex data structures - including references to
27arrays, hashes of hashes, etc.
28
50f7bfad
JR
29%description -l pl.UTF-8
30Moduł IPC::Shareable pozwala związać zmienną z pamięcią dzieloną, co
31ułatwia współdzielenie zawartości tej zmiennej z innymi procesami
32Perla. Wiązane mogą być skalary, tablice i hasze. Powiązana zmienna
33może zawierać dowolnie skomplikowane struktury danych - włączenie z
a868eb10 34referencjami do tablic, haszy haszy itd.
2d726c46 35
36%prep
37%setup -q -n %{pdir}-%{pnam}-%{version}
3c19ad33 38%{__perl} -pi -e 's/^(require 5.005)(03;)$/$1_$2/' ./lib/IPC/Shareable.pm
2d726c46 39
40%build
ff0ffcc8 41%{__perl} Makefile.PL \
879d857e 42 INSTALLDIRS=vendor
2d726c46 43%{__make}
44
d724e8b8 45%{?with_tests:%{__make} test}
2d726c46 46
47%install
48rm -rf $RPM_BUILD_ROOT
49
163c3745 50%{__make} install \
51 DESTDIR=$RPM_BUILD_ROOT
2d726c46 52
53install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
54cp -a eg $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
55
56%clean
57rm -rf $RPM_BUILD_ROOT
58
59%files
60%defattr(644,root,root,755)
61%doc CHANGES CREDITS DISCLAIMER README TO_DO
ff0ffcc8 62%{perl_vendorlib}/%{pdir}/*.pm
63%{perl_vendorlib}/%{pdir}/%{pnam}
2d726c46 64%{_examplesdir}/%{name}-%{version}
65%{_mandir}/man3/*
This page took 0.067483 seconds and 4 git commands to generate.