Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > 4b2538884b3c80d3fd2306d2a4cc85eb > files > 5

perl-Mojolicious-0.999925-4.fc13.src.rpm

Name:           perl-Mojolicious
Version:        0.999925
Release:        4%{?dist}
Summary:        A next generation web framework for Perl
License:        Artistic 2.0
Group:          Development/Libraries
URL:            http://mojolicious.org/
Source0:        http://www.cpan.org/authors/id/K/KR/KRAIH/Mojolicious-%{version}.tar.gz
Patch0:         perl-Mojolicious-security-bug697230.patch
Patch1:         perl-Mojolicious-security-CVE-2010-4802.patch
Patch2:         perl-Mojolicious-security-CVE-2011-1841.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch
BuildRequires:  perl >= 0:5.008007
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(Test::Builder)
BuildRequires:  perl(Test::Harness)
BuildRequires:  perl(Digest::SHA)
BuildRequires:  perl(Test::More)
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
Back in the early days of the web there was this wonderful Perl library
called CGI, many people only learned Perl because of it. It was simple
enough to get started without knowing much about the language and powerful
enough to keep you going, learning by doing was much fun. While most of the
techniques used are outdated now, the idea behind it is not. Mojolicious is
a new attempt at implementing this idea using state of the art technology.

%prep
%setup -q -n Mojolicious-%{version}
%patch0 -p1 -b .bug697230
%patch1 -p1 -b .CVE-2010-4802
%patch2 -p1 -b .CVE-2011-1841
chmod -x lib/Mojo/CookieJar.pm

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT

make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT

find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;

%{_fixperms} $RPM_BUILD_ROOT/*

%check
# this test requires newer IO::Socket::INET6 than what we have in Fedora atm
rm t/mojolicious/websocket_tls_proxy_lite_app.t
make test

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc Changes LICENSE README.md
%{_bindir}/mojo
%{_bindir}/mojolicious
%{perl_vendorlib}/*
%{_mandir}/man1/*
%{_mandir}/man3/*

%changelog
* Tue May  3 2011 Yanko Kaneti <yaneti@declera.com> 0.999925-4
- Blind attempt at CVE-2010-4803(#701718) and CVE-2011-1841.

* Sun Apr 17 2011 Yanko Kaneti <yaneti@declera.com> 0.999925-3
- Security bugfix attempt.

* Fri Jun 11 2010 Yanko Kaneti <yaneti@declera.com> 0.999925-2
- Initial import. Include examples as doc.

* Tue Jun 08 2010 Yanko Kaneti <yaneti@declera.com> 0.999925-1
- Specfile mostly autogenerated by cpanspec 1.78.