parent
085cf2769f
commit
03710cd0b4
@ -0,0 +1 @@
|
||||
CSS-Minifier-XS-0.03.tar.gz
|
@ -0,0 +1 @@
|
||||
perl-CSS-Minifier-XS-0_03-1_fc10:HEAD:perl-CSS-Minifier-XS-0.03-1.fc10.src.rpm:1239570058
|
@ -0,0 +1,70 @@
|
||||
Name: perl-CSS-Minifier-XS
|
||||
Version: 0.03
|
||||
Release: 1%{?dist}
|
||||
# lib/CSS/Minifier/XS.pm -> GPL+ or Artistic
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries
|
||||
Summary: XS based CSS minifier
|
||||
Source: http://search.cpan.org/CPAN/authors/id/G/GT/GTERMARS/CSS-Minifier-XS-%{version}.tar.gz
|
||||
Url: http://search.cpan.org/dist/CSS-Minifier-XS
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(Module::Build::Compat)
|
||||
BuildRequires: perl(Test::More)
|
||||
BuildRequires: perl(Test::Pod)
|
||||
BuildRequires: perl(Test::Pod::Coverage)
|
||||
|
||||
# don't "provide" private Perl libs
|
||||
%global _use_internal_dependency_generator 0
|
||||
%global __deploop() while read FILE; do /usr/lib/rpm/rpmdeps -%{1} ${FILE}; done | /bin/sort -u
|
||||
%global __find_provides /bin/sh -c "%{__grep} -v '%{perl_vendorarch}/.*\\.so$' | %{__deploop P}"
|
||||
%global __find_requires /bin/sh -c "%{__deploop R}"
|
||||
|
||||
%description
|
||||
'CSS::Minifier::XS' is a CSS "minifier"; it's designed to remove un-
|
||||
necessary whitespace and comments from CSS files, while also *not*
|
||||
breaking the CSS. 'CSS::Minifier::XS' is similar in function to
|
||||
'CSS::Minifier', but is substantially faster as it's written in XS and
|
||||
not just pure Perl.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n CSS-Minifier-XS-%{version}
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||
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} -type f -name '*.bs' -a -size 0 -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 Changes README
|
||||
%{perl_vendorarch}/*
|
||||
%exclude %dir %{perl_vendorarch}/auto
|
||||
%{_mandir}/man3/*.3*
|
||||
|
||||
%changelog
|
||||
* Fri Apr 10 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.03-1
|
||||
- update for submission
|
||||
|
||||
* Fri Apr 10 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.03-0
|
||||
- initial RPM packaging
|
||||
- generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8)
|
||||
|
Loading…
Reference in new issue