From 6d3bd55d0b5aa62531da5b27934bb39d153be0e1 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Nov 30 2015 16:59:49 +0000 Subject: Initial import (#1286406) --- diff --git a/.gitignore b/.gitignore index e69de29..f1ce3d5 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/1.0.0.tar.gz diff --git a/nodejs-url-parse-lax.spec b/nodejs-url-parse-lax.spec new file mode 100644 index 0000000..1c25f0e --- /dev/null +++ b/nodejs-url-parse-lax.spec @@ -0,0 +1,52 @@ +# xo and ava not in fedora yet +%global enable_tests 0 +%global module_name url-parse-lax + +Name: nodejs-%{module_name} +Version: 1.0.0 +Release: 1%{?dist} +Summary: The url.parse() with support for protocol-less URLs & IPs + +License: MIT +URL: https://github.com/sindresorhus/url-parse-lax +Source0: https://github.com/sindresorhus/%{module_name}/archive/%{version}.tar.gz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +BuildRequires: nodejs-packaging + +%if 0%{?enable_tests} +BuildRequires: npm(ava) +BuildRequires: npm(xo) +%endif + +%description +The url.parse() with support for protocol-less URLs & IPs. + +%prep +%setup -q -n %{module_name}-%{version} +rm -rf node_modules + +%build +# nothing to build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name} +cp -pr package.json *.js %{buildroot}%{nodejs_sitelib}/%{module_name} +%nodejs_symlink_deps + +%if 0%{?enable_tests} +%check +%nodejs_symlink_deps --check +xo && ava +%endif + +%files +%doc readme.md +%license license +%{nodejs_sitelib}/%{module_name} + +%changelog +* Sun Nov 29 2015 Parag Nemade - 1.0.0-1 +- Initial packaging + diff --git a/sources b/sources index e69de29..f120387 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +4c9c3ef017f833dda61def6b251604f0 1.0.0.tar.gz