packages: perl-Plack/perl-Plack.spec (NEW) - added
aredridel
aredridel at pld-linux.org
Sat May 28 18:58:07 CEST 2011
Author: aredridel Date: Sat May 28 16:58:07 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- added
---- Files affected:
packages/perl-Plack:
perl-Plack.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/perl-Plack/perl-Plack.spec
diff -u /dev/null packages/perl-Plack/perl-Plack.spec:1.1
--- /dev/null Sat May 28 18:58:07 2011
+++ packages/perl-Plack/perl-Plack.spec Sat May 28 18:58:02 2011
@@ -0,0 +1,98 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%define pdir Plack
+%include /usr/lib/rpm/macros.perl
+Summary: Plack - Perl Superglue for Web frameworks and Web Servers (PSGI toolkit)
+#Summary(pl.UTF-8):
+Name: perl-Plack
+Version: 0.9978
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/Plack/%{pdir}-%{version}.tar.gz
+# Source0-md5: 0501c22d0f9cfd496c050dfcbe7a03d3
+Patch0: %{name}-tests.patch
+URL: http://search.cpan.org/dist/Plack/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl(Devel::StackTrace::AsHTML) >= 0.11
+BuildRequires: perl(Filesys::Notify::Simple)
+BuildRequires: perl(HTTP::Body) >= 1.06
+BuildRequires: perl(Hash::MultiValue) >= 0.05
+BuildRequires: perl(Test::Requires)
+BuildRequires: perl(Test::TCP) >= 0.11
+BuildRequires: perl-Devel-StackTrace >= 1.23
+BuildRequires: perl-File-ShareDir >= 1.00
+BuildRequires: perl-HTTP-Request-AsCGI
+BuildRequires: perl-Try-Tiny
+BuildRequires: perl-URI >= 1.36
+BuildRequires: perl-libwww >= 5.814
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _noautoreq 'perl(Apache::Constants)' 'perl(Apache::Request)'
+
+%description
+Plack is a set of tools for using the PSGI stack. It contains
+middleware components, a reference server and utilities for Web
+application frameworks. Plack is like Ruby's Rack or Python's Paste
+for WSGI.
+
+See PSGI for the PSGI specification and PSGI::FAQ to know what PSGI
+and Plack are and why we need them.
+
+
+
+# %description -l pl.UTF-8 # TODO
+
+%prep
+%setup -q -n %{pdir}-%{version}
+%patch0 -p1
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make}
+
+%{?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 eg $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/*.pm
+%{perl_vendorlib}/Plack/
+%{_mandir}/man1/*
+%{_mandir}/man3/*
+%{_examplesdir}/%{name}-%{version}
+%attr(755,root,root) %{_bindir}/plackup
+%{perl_vendorlib}/HTTP/Message/PSGI.pm
+%{perl_vendorlib}/HTTP/Server/PSGI.pm
+%{perl_vendorlib}/auto/share/dist/Plack
+
+%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 2011/05/28 16:58:02 aredridel
+- added
+
================================================================
More information about the pld-cvs-commit
mailing list