]> git.pld-linux.org Git - packages/perl-CSS-Minifier-XS.git/blob - perl-CSS-Minifier-XS.spec
perl 5.38.0 rebuild
[packages/perl-CSS-Minifier-XS.git] / perl-CSS-Minifier-XS.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define         pdir    CSS
6 %define         pnam    Minifier-XS
7 Summary:        CSS::Minifier::XS - XS based CSS minifier
8 Name:           perl-CSS-Minifier-XS
9 Version:        0.13
10 Release:        2
11 License:        GPL v1+ or Artistic
12 Group:          Development/Languages/Perl
13 Source0:        http://www.cpan.org/modules/by-module/CSS/%{pdir}-%{pnam}-%{version}.tar.gz
14 # Source0-md5:  310e620a4dd264a55696b5e4f8224428
15 URL:            http://search.cpan.org/dist/CSS-Minifier-XS/
16 BuildRequires:  perl-Module-Build
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 %if %{with tests}
20 %endif
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 CSS::Minifier::XS is a CSS "minifier"; its designed to remove un-necessary
25 whitespace and comments from CSS files, while also not breaking the CSS.
26
27 CSS::Minifier::XS is similar in function to CSS::Minifier, but is
28 substantially faster as its written in XS and not just pure Perl.
29
30 %prep
31 %setup -q -n %{pdir}-%{pnam}-%{version}
32
33 %build
34 %{__perl} Makefile.PL \
35         INSTALLDIRS=vendor
36 %{__make}
37
38 %{?with_tests:%{__make} test}
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42
43 %{__make} install \
44     DESTDIR=$RPM_BUILD_ROOT
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %files
50 %defattr(644,root,root,755)
51 %doc Changes README
52 %dir %{perl_vendorarch}/CSS/Minifier
53 %{perl_vendorarch}/CSS/Minifier/*.pm
54 %dir %{perl_vendorarch}/auto/CSS/Minifier
55 %dir %{perl_vendorarch}/auto/CSS/Minifier/XS
56 %attr(755,root,root) %{perl_vendorarch}/auto/CSS/Minifier/XS/*.so
57 %{_mandir}/man3/*
This page took 0.102843 seconds and 4 git commands to generate.