[js-yui2] Initial import

Michal Srb msrb at fedoraproject.org
Wed Mar 26 14:54:59 UTC 2014


commit 73f9cd9ad27b739866845b7cdd31f76f99b2ff1a
Author: Michal Srb <msrb at redhat.com>
Date:   Wed Mar 26 15:54:54 2014 +0100

    Initial import

 .gitignore       |    1 +
 LICENSE-BSD      |   11 +++++++++++
 clean-tarball.sh |   32 ++++++++++++++++++++++++++++++++
 js-yui2.spec     |   54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources          |    1 +
 5 files changed, 99 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..75e08ef 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/js-yui-2.9.0-clean.tar.gz
diff --git a/LICENSE-BSD b/LICENSE-BSD
new file mode 100644
index 0000000..3b78b5f
--- /dev/null
+++ b/LICENSE-BSD
@@ -0,0 +1,11 @@
+Copyright © 2013 Yahoo! Inc. All rights reserved.
+
+Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+    Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+
+    Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+
+    Neither the name of Yahoo! Inc. nor the names of YUI's contributors may be used to endorse or promote products derived from this software without specific prior written permission of Yahoo! Inc.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
diff --git a/clean-tarball.sh b/clean-tarball.sh
new file mode 100644
index 0000000..5d2b318
--- /dev/null
+++ b/clean-tarball.sh
@@ -0,0 +1,32 @@
+#!/bin/bash
+
+version=`grep Version: *spec | sed -e 's/Version:\s*\(.*\)/\1/'`
+filename="yui_${version}.zip"
+tempdir="js-yui-${version}"
+url="http://yui.github.io/yui2/archives/${filename}"
+
+echo $version
+
+rm -Rf ${tempdir}
+
+wget ${url}
+unzip ${filename}
+rm ${filename}
+mv yui ${tempdir}
+
+pushd ${tempdir}
+  # tests contain Java files licensed under MIT with "Evil" clause:
+  # http://www.json.org/license.html
+  rm -Rf tests
+  # not needed
+  rm -Rf as-docs assets docs examples releasenotes *.html build/uploader
+  # remove mimified sources
+  find . -name "*-min.js" -delete
+  # remove flash
+  find . -name "*.swf" -delete
+popd
+
+tar czvf js-yui-${version}-clean.tar.gz ${tempdir}
+
+rm -Rf ${tempdir}
+
diff --git a/js-yui2.spec b/js-yui2.spec
new file mode 100644
index 0000000..2f176fd
--- /dev/null
+++ b/js-yui2.spec
@@ -0,0 +1,54 @@
+Name:           js-yui2
+Version:        2.9.0
+Release:        2%{?dist}
+Summary:        Yahoo User Interface JavaScript library
+
+# Public Domain (partially):
+# contains code from Douglas Crockford's json2.js
+#   build/yuitest/yuitest.js
+#   build/yuitest/yuitest-debug.js
+# rest is BSD
+License:        BSD and Public Domain
+URL:            http://yuilibrary.com/projects/yui2/
+# sh clean-tarball.sh
+Source0:        js-yui-%{version}-clean.tar.gz
+# text of BSD license taken from http://yuilibrary.com/license/
+Source1:        LICENSE-BSD
+Source2:        clean-tarball.sh
+
+BuildRequires:  web-assets-devel
+Requires:       web-assets-filesystem
+
+BuildArch:      noarch
+
+%description
+YUI Library is a set of utilities and controls written in JavaScript,
+for building richly interactive web applications. YUI 2 is a mature
+version of the library that has been in production since 2006. The
+code line is comprised of a comprehensive collection of over 30
+utilities and widgets.
+
+%prep
+%setup -q -n js-yui-%{version}
+
+cp %{SOURCE1} .
+
+%build
+# nothing to do
+
+%install
+mkdir -p %{buildroot}%{_jsdir}/%{name}
+cp -pr build/* %{buildroot}%{_jsdir}/%{name}
+
+%files
+%{_jsdir}/%{name}
+%doc LICENSE-BSD
+
+%changelog
+* Wed Mar 26 2014 Michal Srb <msrb at redhat.com> - 2.9.0-2
+- Remove more unneeded stuff (uploader)
+- Clarify licensing a bit
+
+* Tue Jan 28 2014 Michal Srb <msrb at redhat.com> - 2.9-1
+- Initial packaging
+
diff --git a/sources b/sources
index e69de29..f3124da 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+84da9ba230a267917fe2af7d807fd9e5  js-yui-2.9.0-clean.tar.gz


More information about the scm-commits mailing list