packages: perl-forks/perl-forks.spec (NEW) - initial
arekm
arekm at pld-linux.org
Sat Jan 9 20:19:05 CET 2010
Author: arekm Date: Sat Jan 9 19:19:05 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- initial
---- Files affected:
packages/perl-forks:
perl-forks.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/perl-forks/perl-forks.spec
diff -u /dev/null packages/perl-forks/perl-forks.spec:1.1
--- /dev/null Sat Jan 9 20:19:05 2010
+++ packages/perl-forks/perl-forks.spec Sat Jan 9 20:19:00 2010
@@ -0,0 +1,64 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_with tests # perform "make test"
+#
+%include /usr/lib/rpm/macros.perl
+%define pdir forks
+%define pnam forks
+Summary(pl.UTF-8): drop-in replacement for Perl threads using fork()
+Name: perl-forks
+Version: 0.33
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://search.cpan.org/CPAN/authors/id/R/RY/RYBSKEJ/%{pnam}-%{version}.tar.gz
+# Source0-md5: 1f7a23987abd6df7ed5735badacffe99
+URL: http://search.cpan.org/dist/forks/
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The "forks" pragma allows a developer to use threads without having to have a threaded perl.
+
+%prep
+%setup -q -n %{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{perl_vendorlib}/forks
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%dir %{perl_vendorarch}/auto/forks
+%attr(755,root,root) %{perl_vendorarch}/auto/forks/*.so
+%{perl_vendorarch}/forks
+%{perl_vendorarch}/threads
+%{_mandir}/man3/*
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2010/01/09 19:19:00 arekm
+- initial
+
+
================================================================
More information about the pld-cvs-commit
mailing list