[js-yui2] Build mimified version
Michal Srb
msrb at fedoraproject.org
Tue Apr 8 06:29:56 UTC 2014
commit 9fa84190858732b96d43931f3274e015a0f5d2ac
Author: Michal Srb <msrb at redhat.com>
Date: Tue Apr 8 08:29:34 2014 +0200
Build mimified version
js-yui2.spec | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/js-yui2.spec b/js-yui2.spec
index a91e11f..341dc12 100644
--- a/js-yui2.spec
+++ b/js-yui2.spec
@@ -1,6 +1,6 @@
Name: js-yui2
Version: 2.9.0
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Yahoo User Interface JavaScript library
# Public Domain (partially):
@@ -17,6 +17,7 @@ Source1: LICENSE-BSD
Source2: clean-tarball.sh
BuildRequires: web-assets-devel
+BuildRequires: python-slimit
Requires: web-assets-filesystem
BuildArch: noarch
@@ -31,11 +32,11 @@ utilities and widgets.
%prep
%setup -q -n js-yui-%{version}
-# "mimified" versions are just copies of regular versions (for now)
+# build mimified versions
for f in `find -name "*.js"`; do
bn="${f%.js}"
bn="${bn}-min.js"
- cp ${f} ${bn}
+ slimit --mangle < ${f} > ${bn}
done
cp %{SOURCE1} .
@@ -52,6 +53,9 @@ cp -pr build/* %{buildroot}%{_jsdir}/%{name}
%doc LICENSE-BSD
%changelog
+* Tue Apr 08 2014 Michal Srb <msrb at redhat.com> - 2.9.0-4
+- Build mimified version
+
* Wed Apr 02 2014 Michal Srb <msrb at redhat.com> - 2.9.0-3
- Install also "mimified" versions
More information about the scm-commits
mailing list