Files
perl-threads-shared/perl-threads-shared.spec

74 lines
2.2 KiB
RPMSpec
Raw Normal View History

# vim: set sw=4 ts=4 et nu:
Name: perl-threads-shared
Version: 1.37
Release: 0
Summary: Perl extension for sharing data structures between threads
Source: http://search.cpan.org/CPAN/authors/id/J/JD/JDHEDDEN/threads-shared-%{version}.tar.gz
URL: http://search.cpan.org/dist/threads-shared
Group: Development/Libraries/Perl
License: Perl License
BuildRoot: %{_tmppath}/build-%{name}-%{version}
Requires: perl = %{perl_version}
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: make
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(warnings)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(XSLoader)
BuildRequires: perl(threads) >= 1.73
BuildRequires: perl(Config)
BuildRequires: perl(ExtUtils::testlib)
BuildRequires: perl(Carp)
BuildRequires: perl(strict)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test)
Requires: perl(warnings)
Requires: perl(Scalar::Util)
Requires: perl(XSLoader)
Requires: perl(threads) >= 1.73
Requires: perl(Config)
Requires: perl(ExtUtils::testlib)
Requires: perl(Carp)
Requires: perl(strict)
Requires: perl(Test::More)
Requires: perl(Test)
%description
By default, variables are private to each thread, and each newly created
thread gets a private copy of each existing variable. This module allows
you to share variables across different threads (and pseudo-forks on
Win32). It is used together with the threads module.
This module supports the sharing of the following data types only: scalars
and scalar refs, arrays and array refs, and hashes and hash refs.
%prep
%setup -q -n "threads-shared-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL
%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?jobs:-j%{jobs}}
%install
%perl_make_install
%perl_process_packlist
%check
%__make test
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc Changes README
%dir %{perl_vendorarch}/threads
%{perl_vendorarch}/threads/shared.pm
%dir %{perl_vendorarch}/auto/threads
%{perl_vendorarch}/auto/threads/shared
%doc %{perl_man3dir}/threads::shared.%{perl_man3ext}%{ext_man}