[nodejs-relateurl] Initial import (#1170802).
piotrp
piotrp at fedoraproject.org
Mon Dec 22 08:14:32 UTC 2014
commit 93e84246ae2792014d5921f70366a5ce2d597603
Author: Piotr Popieluch <piotr1212 at gmail.com>
Date: Mon Dec 22 09:13:59 2014 +0100
Initial import (#1170802).
.gitignore | 1 +
LICENSE | 21 +++++++++++++++
nodejs-relateurl.spec | 68 +++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 91 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..0eb1f92 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/relateurl-0.2.5.tgz
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..579f071
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Steven Vachon
+
+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.
diff --git a/nodejs-relateurl.spec b/nodejs-relateurl.spec
new file mode 100644
index 0000000..c8061c4
--- /dev/null
+++ b/nodejs-relateurl.spec
@@ -0,0 +1,68 @@
+%global enable_tests 1
+%global srcname relateurl
+
+Name: nodejs-%{srcname}
+Version: 0.2.5
+Release: 3%{?dist}
+Summary: Minify URLs by converting them from absolute to relative
+License: MIT
+URL: https://github.com/stevenvachon/%{srcname}
+Source0: http://registry.npmjs.org/%{srcname}/-/%{srcname}-%{version}.tgz
+# License in upstream but not yet in latest release
+Source1: https://raw.githubusercontent.com/stevenvachon/%{srcname}/master/LICENSE
+
+BuildArch: noarch
+ExclusiveArch: %{nodejs_arches} noarch
+
+BuildRequires: nodejs-packaging
+
+%if 0%{?enable_tests}
+BuildRequires: mocha
+BuildRequires: npm(chai)
+%endif
+
+
+%description
+%{summary}.
+
+
+%prep
+%setup -q -n package
+rm -rf node_modules/
+cp -p %{SOURCE1} .
+
+
+%build
+#nothing to do
+
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname}
+cp -pr package.json lib %{buildroot}%{nodejs_sitelib}/%{srcname}
+
+%nodejs_symlink_deps
+
+
+%if 0%{?enable_tests}
+%check
+%nodejs_symlink_deps --check
+mocha test/ --bail --reporter spec --check-leaks
+%endif
+
+
+%files
+%doc README.md LICENSE
+%{nodejs_sitelib}/%{srcname}
+
+
+%changelog
+* Tue Dec 16 2014 Piotr Popieluch <piotr1212 at gmail.com> - 0.2.5-3
+- Added license from upstream
+
+* Sat Dec 6 2014 Piotr Popieluch <piotr1212 at gmail.com> - 0.2.5-2
+- Removed Group tag
+- Added rm -rf node_modules/
+- Replaced nodejs-chai with npm(chai)
+
+* Sun Nov 16 2014 Piotr Popieluch <piotr1212 at gmail.com> - 0.2.5-1
+- Initial package
diff --git a/sources b/sources
index e69de29..4034cee 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+f8d0964c2a09917e438dd82d8efd7607 relateurl-0.2.5.tgz
More information about the scm-commits
mailing list