]> git.pld-linux.org Git - packages/perl-threads.git/blame - perl-threads.spec
- update to 2.21
[packages/perl-threads.git] / perl-threads.spec
CommitLineData
7a1f11c5
AM
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
920665c5 4
7a1f11c5
AM
5%define pdir threads
6%include /usr/lib/rpm/macros.perl
7Summary: threads - Perl interpreter-based threads
8Name: perl-threads
96745278
AG
9Version: 2.21
10Release: 1
7a1f11c5
AM
11# same as perl
12License: GPL v1+ or Artistic
13Group: Development/Languages/Perl
14Source0: http://www.cpan.org/modules/by-authors/id/J/JD/JDHEDDEN/threads-%{version}.tar.gz
96745278 15# Source0-md5: 45fa009703074f0b0b0d036cb23706e3
7a1f11c5
AM
16URL: http://search.cpan.org/dist/threads/
17BuildRequires: perl-devel >= 1:5.8.0
18BuildRequires: rpm-perlprov >= 4.1-13
7a1f11c5
AM
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
22Since Perl 5.8, thread programming has been available using a model
23called interpreter threads which provides a new Perl interpreter for
24each thread, and, by default, results in no data or state information
25being shared between threads.
26
27%prep
28%setup -q -n %{pdir}-%{version}
29
30%build
31%{__perl} Makefile.PL \
32 INSTALLDIRS=vendor
33%{__make} \
34 CC="%{__cc}" \
35 OPTIMIZE="%{rpmcflags}"
36
37%{?with_tests:%{__make} test}
38
39%install
40rm -rf $RPM_BUILD_ROOT
41
42%{__make} pure_install \
43 DESTDIR=$RPM_BUILD_ROOT
44
45install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
920665c5 46cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
7a1f11c5
AM
47
48%clean
49rm -rf $RPM_BUILD_ROOT
50
51%files
52%defattr(644,root,root,755)
53%doc Changes README
54%{perl_vendorarch}/threads.pm
55%dir %{perl_vendorarch}/auto/threads
920665c5
ER
56%attr(755,root,root) %{perl_vendorarch}/auto/threads/threads.so
57%{_mandir}/man3/threads.3pm*
7a1f11c5 58%{_examplesdir}/%{name}-%{version}
This page took 0.125278 seconds and 4 git commands to generate.