4 %bcond_without tests # do not perform "make test"
8 Summary: CSS::Minifier - Perl extension for minifying CSS
9 Name: perl-CSS-Minifier
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/CSS/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: 04f64c08c9268fd0fc619ef8110d2cf4
16 URL: http://search.cpan.org/dist/CSS-Minifier/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 This module removes unnecessary whitespace from CSS. The primary
26 requirement developing this module is to not break working
27 stylesheets: if working CSS is in input then working CSS is output.
28 The Mac/Internet Explorer comment hack will be minimized but not
29 stripped and so will continue to function.
31 This module understands space, horizontal tab, new line, carriage
32 return, and form feed characters to be whitespace. Any other
33 characters that may be considered whitespace are not minimized. These
34 other characters include paragraph separator and vertical tab.
36 For static CSS files, it is recommended that you minify during the
37 build stage of web deployment. If you minify on-the-fly then it might
38 be a good idea to cache the minified file. Minifying static files
39 on-the-fly repeatedly is wasteful.
42 %setup -q -n %{pdir}-%{pnam}-%{version}
45 %{__perl} Makefile.PL \
49 %{?with_tests:%{__make} test}
52 rm -rf $RPM_BUILD_ROOT
54 %{__make} pure_install \
55 DESTDIR=$RPM_BUILD_ROOT
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
63 %{perl_vendorlib}/CSS/Minifier.pm