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