commit 7a1f11c568d1ba1147ca6cd361a7279a55d144af
Author: Arkadiusz Miƛkiewicz <[email protected]>
Date:   Wed Jun 10 21:58:00 2015 +0200

    - initial

 perl-threads.spec | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)
---
diff --git a/perl-threads.spec b/perl-threads.spec
new file mode 100644
index 0000000..462804c
--- /dev/null
+++ b/perl-threads.spec
@@ -0,0 +1,60 @@
+#
+# Conditional build:
+%bcond_without tests           # do not perform "make test"
+#
+%define                pdir    threads
+%include       /usr/lib/rpm/macros.perl
+Summary:       threads - Perl interpreter-based threads
+Name:          perl-threads
+Version:       2.01
+Release:       1
+# same as perl
+License:       GPL v1+ or Artistic
+Group:         Development/Languages/Perl
+Source0:       
http://www.cpan.org/modules/by-authors/id/J/JD/JDHEDDEN/threads-%{version}.tar.gz
+# Source0-md5: aec3a036c31ffa868adda1170ef26240
+URL:           http://search.cpan.org/dist/threads/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+%endif
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Since Perl 5.8, thread programming has been available using a model
+called interpreter threads which provides a new Perl interpreter for
+each thread, and, by default, results in no data or state information
+being shared between threads.
+
+%prep
+%setup -q -n %{pdir}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+%{__make} \
+       CC="%{__cc}" \
+       OPTIMIZE="%{rpmcflags}"
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorarch}/threads.pm
+%dir %{perl_vendorarch}/auto/threads
+%attr(755,root,root) %{perl_vendorarch}/auto/threads/*.so
+%{_mandir}/man3/*
+%{_examplesdir}/%{name}-%{version}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-threads.git/commitdiff/7a1f11c568d1ba1147ca6cd361a7279a55d144af

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to