Files
perl-CSS-Squish/perl-CSS-Squish.spec

71 lines
1.9 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-CSS-Squish
#
# norootforbuild
Name: perl-CSS-Squish
%define real_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
Summary: Compact many CSS files into one big file
Url: http://search.cpan.org/perldoc?CSS:Squish
Group: Development/Libraries/Perl
License: Artistic License
Version: 0.08
Release: 1
Vendor: openSUSE-Education
Source: %{real_name}-%{version}.tar.bz2
BuildRequires: perl-macros
BuildRequires: perl-Test-LongString
BuildRequires: perl-URI
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(Test::Pod)
%{perl_requires}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This module takes a list of CSS files and concatenates them, making sure to
honor any valid @import statements included in the files.
The benefit of this is that you get to keep your CSS as individual files, but
can serve it to users in one big file, saving the overhead of possibly dozens
of HTTP requests.
Following the CSS 2.1 spec, @import statements must be the first rules in a CSS
file. Media-specific @import statements will be honored by enclosing the
included file in an @media rule. This has the side effect of actually improving
compatibility in Internet Explorer, which ignores media-specific @import rules
but understands @media rules.
It is possible that future versions will include methods to compact whitespace
and other parts of the CSS itself, but this functionality is not supported at
the current time.
Authors:
--------
Thomas Sibley <trs@bestpractical.com>,
Ruslan Zakirov <ruz@bestpractical.com>
%prep
%setup -n %{real_name}-%{version}
%build
perl Makefile.PL
make %{?jobs:-j%jobs}
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
rm -rf %{buildroot}
%files -f %{name}.files
%defattr(-, root, root)
%doc CHANGES README MANIFEST
%changelog