File perl-Mojolicious-Plugin-AssetPack.spec of Package perl-Mojolicious-Plugin-AssetPack

#
# spec file for package perl-Mojolicious-Plugin-AssetPack
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           perl-Mojolicious-Plugin-AssetPack
Version:        0.68
Release:        0
%define cpan_name Mojolicious-Plugin-AssetPack
Summary:        Compress and convert css, less, sass, javascript and coffeescript files
License:        Artistic-2.0
Group:          Development/Libraries/Perl
Url:            http://search.cpan.org/dist/Mojolicious-Plugin-AssetPack/
Source0:        http://www.cpan.org/authors/id/J/JH/JHTHORSEN/%{cpan_name}-%{version}.tar.gz
Source1:        cpanspec.yml
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(CSS::Minifier::XS) >= 0.01
BuildRequires:  perl(File::Which) >= 1.00
BuildRequires:  perl(IPC::Run3) >= 0.04
BuildRequires:  perl(JavaScript::Minifier::XS) >= 0.11
BuildRequires:  perl(Mojolicious) >= 5.41
BuildRequires:  perl(Test::More) >= 0.88
Requires:       perl(CSS::Minifier::XS) >= 0.01
Requires:       perl(File::Which) >= 1.00
Requires:       perl(IPC::Run3) >= 0.04
Requires:       perl(JavaScript::Minifier::XS) >= 0.11
Requires:       perl(Mojolicious) >= 5.41
%{perl_requires}

%description
the Mojolicious::Plugin::AssetPack manpage is a the Mojolicious manpage
plugin which can be used to cram multiple assets of the same type into one
file. This means that if you have a lot of CSS files (.css, .less, .sass,
...) as input, the AssetPack can make one big CSS file as output. This is
good, since it will often speed up the rendering of your page. The output
file can even be minified, meaning you can save bandwidth and browser
parsing time.

The core preprocessors that are bundled with this module can handle CSS and
JavaScript files, written in many languages.

%prep
%setup -q -n %{cpan_name}-%{version}
find . -type f -print0 | xargs -0 chmod 644

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

%check
%{__make} test

%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist

%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes examples README

%changelog
openSUSE Build Service is sponsored by