[js-web-socket-js] Initial check in of package
Jonathan G. Underwood
jgu at fedoraproject.org
Tue Mar 24 13:33:10 UTC 2015
commit 2fa05e9c7f6cbe609c6d3016e50f3fb0810aa6de
Author: Jonathan Underwood <jonathan.underwood at gmail.com>
Date: Tue Mar 24 13:32:59 2015 +0000
Initial check in of package
.gitignore | 1 +
js-web-socket-js.spec | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 66 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..074fd74 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/v1.0.2.tar.gz
diff --git a/js-web-socket-js.spec b/js-web-socket-js.spec
new file mode 100644
index 0000000..2a0b55d
--- /dev/null
+++ b/js-web-socket-js.spec
@@ -0,0 +1,64 @@
+%global usname web-socket-js
+
+Name: js-%{usname}
+Version: 1.0.2
+Release: 3%{?dist}
+Summary: HTML5 Web Socket implementation powered by Flash
+BuildArch: noarch
+License: BSD
+URL: https://github.com/gimite/%{usname}
+Source0: https://github.com/gimite/%{usname}/archive/v%{version}.tar.gz
+
+BuildRequires: web-assets-devel
+BuildRequires: python-slimit
+# This next one is a missing dependency of python-slimit
+# https://bugzilla.redhat.com/show_bug.cgi?id=1199506
+# Until that bug is fixed we'll add the dependency here,
+# but this should be removed once the bug is fixed.
+BuildRequires: python-setuptools
+
+Requires: web-assets-filesystem
+
+
+%description
+%{summary}.
+
+Note: this package ships only the java script components. The SWF
+assets are not shipped as shipping binary components in Fedora without
+building from source is forbidden, and currently Fedora does not have
+the Apache Flex SDK packaged.
+
+%prep
+%setup -q -n %{usname}-%{version}
+
+
+%build
+# Presently the apache-flex-sdk is not included in Fedora, so we can't
+# build the SWF assets
+
+# Re-minify the swfobject.js file from the src directory as required
+# by the packaging guidelines. It's unclear what minifier upstream
+# uses for this, but we'll use slimit
+rm -f swfobject.js
+slimit -m src/swfobject.js > swfobject.js
+
+%install
+mkdir -p %{buildroot}%{_jsdir}/%{usname}
+cp -a swfobject.js web_socket.js %{buildroot}%{_jsdir}/%{usname}
+
+%files
+%doc LICENSE.txt NEWS.md README.md sample.html
+%{_jsdir}/%{usname}
+
+
+%changelog
+* Fri Mar 6 2015 Jonathan Underwood <jonathan.underwood at gmail.com> - 1.0.2-3
+- Own {_jsdir}/web-socket-js directory
+- Introduce macro for web-socket-js string
+
+* Fri Mar 6 2015 Jonathan Underwood <jonathan.underwood at gmail.com> - 1.0.2-2
+- Minify swfobject.js from the source js file during build using slimit
+- Specify noarch for package
+
+* Thu Mar 5 2015 Jonathan Underwood <jonathan.underwood at gmail.com> - 1.0.2-1
+- Initial package
diff --git a/sources b/sources
index e69de29..da3e33f 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+32fbe54901c6c6352812f435970543cc v1.0.2.tar.gz
More information about the scm-commits
mailing list