diff --git a/.cvsignore b/.cvsignore index e69de29..01b354a 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +CSS-Minifier-0.01.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..5ac34d6 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +perl-CSS-Minifier-0_01-1_fc10:HEAD:perl-CSS-Minifier-0.01-1.fc10.src.rpm:1239675680 diff --git a/perl-CSS-Minifier.spec b/perl-CSS-Minifier.spec new file mode 100644 index 0000000..71c9458 --- /dev/null +++ b/perl-CSS-Minifier.spec @@ -0,0 +1,67 @@ +Name: perl-CSS-Minifier +Version: 0.01 +Release: 1%{?dist} +# lib/CSS/Minifier.pm -> GPL+ or Artistic +License: GPL+ or Artistic +Group: Development/Libraries +Summary: Remove unnecessary whitespace from CSS files +Source: http://search.cpan.org/CPAN/authors/id/P/PM/PMICHAUX/CSS-Minifier-%{version}.tar.gz +Url: http://search.cpan.org/dist/CSS-Minifier +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +BuildArch: noarch + +BuildRequires: perl(ExtUtils::MakeMaker) +# tests +BuildRequires: perl(Test::More) + +%description +This module removes unnecessary whitespace from CSS. The primary +requirement developing this module is to not break working stylesheets: +if working CSS is in input then working CSS is output. The Mac/Internet +Explorer comment hack will be minimized but not stripped and so will +continue to function.This module understands space, horizontal tab, new +line, carriage return, and form feed characters to be whitespace. Any +other characters that may be considered whitespace are not minimized. +These other characters include paragraph separator and vertical tab.For +static CSS files, it is recommended that you minify during the build +stage of web deployment. If you minify on-the-fly then it might be a +good idea to cache the minified file. Minifying static files on-the-fly +repeatedly is wasteful. + +%prep +%setup -q -n CSS-Minifier-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} + +make pure_install PERL_INSTALL_ROOT=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' + +%{_fixperms} %{buildroot}/* + +%check +make test + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc README Changes +%{perl_vendorlib}/* +%{_mandir}/man3/*.3* + +%changelog +* Sat Apr 11 2009 Chris Weyl 0.01-1 +- update for submission + +* Sat Apr 11 2009 Chris Weyl 0.01-0 +- initial RPM packaging +- generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8) + diff --git a/sources b/sources index e69de29..7a91835 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +04f64c08c9268fd0fc619ef8110d2cf4 CSS-Minifier-0.01.tar.gz