[nodejs-xmlbuilder] Initial import of nodejs-xmlbuilder

Tom Hughes tomh at fedoraproject.org
Thu Dec 5 15:25:14 UTC 2013


commit ef5055bcf6fc5b4440d0d8877ce610803890da44
Author: Tom Hughes <tom at compton.nu>
Date:   Thu Dec 5 14:13:48 2013 +0000

    Initial import of nodejs-xmlbuilder

 .gitignore             |    1 +
 nodejs-xmlbuilder.spec |   60 ++++++++++++++++++++++++++++++++++++++++++++++++
 sources                |    1 +
 xmlbuilder-license     |   21 ++++++++++++++++
 4 files changed, 83 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..338c2c4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/nodejs-xmlbuilder-1.0.2-6827fad.tar.gz
diff --git a/nodejs-xmlbuilder.spec b/nodejs-xmlbuilder.spec
new file mode 100644
index 0000000..e982a17
--- /dev/null
+++ b/nodejs-xmlbuilder.spec
@@ -0,0 +1,60 @@
+%global commit 6827fad7a8293bc3ad4da956d8983dd4aa96871a
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+Name:           nodejs-xmlbuilder
+Version:        1.0.2
+Release:        2%{?dist}
+Summary:        An XML builder for Node.js
+
+License:        MIT
+URL:            https://github.com/oozcitak/xmlbuilder-js
+Source0:        https://github.com/oozcitak/xmlbuilder-js/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
+# Offered upstream - https://github.com/oozcitak/xmlbuilder-js/pull/37
+Source1:        xmlbuilder-license
+
+BuildArch:      noarch
+ExclusiveArch:  %{nodejs_arches} noarch
+
+BuildRequires:  nodejs-packaging
+
+BuildRequires:  npm(coffee-script)
+BuildRequires:  npm(vows)
+BuildRequires:  npm(underscore)
+
+%description
+An XMLBuilder for Node.js similar to java-xmlbuilder.
+
+
+%prep
+%setup -q -n xmlbuilder-js-%{commit}
+cp -pr %{SOURCE1} LICENSE
+%nodejs_fixdep underscore "~1.4.4"
+rm -rf node_modules
+
+
+%build
+%{nodejs_sitelib}/coffee-script/bin/coffee -co lib/ src/*.coffee
+
+
+%install
+mkdir -p %{buildroot}/%{nodejs_sitelib}/xmlbuilder
+cp -pr package.json lib %{buildroot}/%{nodejs_sitelib}/xmlbuilder
+%nodejs_symlink_deps
+
+
+%check
+%nodejs_symlink_deps --check
+%{nodejs_sitelib}/vows/bin/vows test/*
+
+
+%files
+%doc README.md LICENSE
+%{nodejs_sitelib}/xmlbuilder
+
+
+%changelog
+* Mon Dec  2 2013 Tom Hughes <tom at compton.nu> - 1.0.2-2
+- Remove last traces of enable_tests macro
+
+* Thu Nov 28 2013 Tom Hughes <tom at compton.nu> - 1.0.2-1
+- Initial build of 1.0.2
diff --git a/sources b/sources
index e69de29..7314d6b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+7956b79b9a96a6625c3fd080cdf8633d  nodejs-xmlbuilder-1.0.2-6827fad.tar.gz
diff --git a/xmlbuilder-license b/xmlbuilder-license
new file mode 100644
index 0000000..e7cbac9
--- /dev/null
+++ b/xmlbuilder-license
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2013 Ozgur Ozcitak
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.


More information about the scm-commits mailing list