[packages/perl-JavaScript-Minifier-XS] - initial
arekm
arekm at pld-linux.org
Tue Mar 22 10:32:15 CET 2016
commit 9df5ec7dccd1ce8a5dd1d03746d5fec5401bfccf
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Tue Mar 22 10:31:58 2016 +0100
- initial
perl-JavaScript-Minifier-XS.spec | 58 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
---
diff --git a/perl-JavaScript-Minifier-XS.spec b/perl-JavaScript-Minifier-XS.spec
new file mode 100644
index 0000000..83219ab
--- /dev/null
+++ b/perl-JavaScript-Minifier-XS.spec
@@ -0,0 +1,58 @@
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%define pdir JavaScript
+%define pnam Minifier-XS
+%include /usr/lib/rpm/macros.perl
+Summary: JavaScript::Minifier::XS - XS based JavaScript minifier
+Name: perl-JavaScript-Minifier-XS
+Version: 0.11
+Release: 1
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/JavaScript/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: bd8544287ecd1b651367295485f4a5b0
+URL: http://search.cpan.org/dist/JavaScript-Minifier-XS/
+BuildRequires: perl-Module-Build
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+JavaScript::Minifier::XS is a JavaScript "minifier"; its designed to
+remove un-necessary whitespace and comments from JavaScript files,
+which also not breaking the JavaScript.
+
+JavaScript::Minifier::XS is similar in function to
+JavaScript::Minifier, but is substantially faster as its written in XS
+and not just pure Perl.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Build.PL \
+ config=optimize='%{rpmcflags}' \
+ destdir=$RPM_BUILD_ROOT \
+ installdirs=vendor
+./Build
+
+%{?with_tests:./Build test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+./Build install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorarch}/JavaScript/Minifier/*.pm
+%dir %{perl_vendorarch}/auto/JavaScript/Minifier/XS
+%{perl_vendorarch}/auto/JavaScript/Minifier/XS/*.bs
+%attr(755,root,root) %{perl_vendorarch}/auto/JavaScript/Minifier/XS/*.so
+%{_mandir}/man3/*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-JavaScript-Minifier-XS.git/commitdiff/9df5ec7dccd1ce8a5dd1d03746d5fec5401bfccf
More information about the pld-cvs-commit
mailing list