diff --git a/.cvsignore b/.cvsignore index e69de29..08a58dd 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Mojolicious-0.999925.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..b107f9d --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +perl-Mojolicious-0_999925-2_fc14:HEAD:perl-Mojolicious-0.999925-2.fc14.src.rpm:1276234544 diff --git a/perl-Mojolicious.spec b/perl-Mojolicious.spec new file mode 100644 index 0000000..eccba94 --- /dev/null +++ b/perl-Mojolicious.spec @@ -0,0 +1,66 @@ +Name: perl-Mojolicious +Version: 0.999925 +Release: 2%{?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 +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(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} +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 +* Fri Jun 11 2010 Yanko Kaneti 0.999925-2 +- Initial import. Include examples as doc. + +* Tue Jun 08 2010 Yanko Kaneti 0.999925-1 +- Specfile mostly autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..785a881 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +ee6d1120331e0e0762cce773e7d816a4 Mojolicious-0.999925.tar.gz