60 lines
1.8 KiB
RPMSpec
60 lines
1.8 KiB
RPMSpec
Name: perl-Mojolicious
|
|
Version: 9.39
|
|
Release: 1%{?dist}
|
|
Summary: Real-time web framework
|
|
License: Artistic 2.0
|
|
Group: Development/Libraries
|
|
URL: http://search.cpan.org/dist/Mojolicious/
|
|
Source0: http://www.cpan.org/authors/id/S/SR/SRI/Mojolicious-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildArch: noarch
|
|
BuildRequires: perl >= 0:5.016
|
|
BuildRequires: perl(ExtUtils::Manifest)
|
|
BuildRequires: perl(inc::Module::Install)
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
BuildRequires: perl(IO::Socket::IP) >= 0.37
|
|
BuildRequires: perl(Sub::Util) >= 1.41
|
|
Requires: perl(IO::Socket::IP) >= 0.37
|
|
Requires: perl(Sub::Util) >= 1.41
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
%description
|
|
An amazing real-time web framework built on top of the powerful Mojo web
|
|
development toolkit. With support for RESTful routes, plugins, commands,
|
|
Perl-ish templates, content negotiation, session management, form
|
|
validation, testing framework, static file server, CGI/PSGI detection,
|
|
first class Unicode support and much more for you to discover.
|
|
|
|
%prep
|
|
%setup -q -n Mojolicious-%{version}
|
|
|
|
%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
|
|
make test
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc Changes LICENSE MANIFEST.bak META.json README.md
|
|
%{perl_vendorlib}/*
|
|
%{_mandir}/man3/*
|
|
|
|
%changelog
|
|
* Tue Jan 21 2025 Koozali 9.39-1
|
|
- Specfile autogenerated by cpanspec 1.78.
|