diff --git a/.gitignore b/.gitignore index e69de29..4d7c9c5 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/langdetect-0.2.0.tgz diff --git a/nodejs-langdetect.spec b/nodejs-langdetect.spec new file mode 100644 index 0000000..d5220d5 --- /dev/null +++ b/nodejs-langdetect.spec @@ -0,0 +1,43 @@ +%global module_name langdetect + +Name: nodejs-%{module_name} +Version: 0.2.0 +Release: 1%{?dist} +Summary: Language detection library for Node.js + +License: ASL 2.0 +URL: https://github.com/newmsz/node-language-detection +Source0: http://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +BuildRequires: nodejs-packaging + +Requires: npm(unicode-7.0.0) + +%description +%{summary}. + +%prep +%setup -q -n package +rm -rf node_modules + +%build +# nothing to build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name} +cp -pr package.json index.js profiles res %{buildroot}%{nodejs_sitelib}/%{module_name} +%nodejs_symlink_deps + +%check +%nodejs_symlink_deps --check + +%files +%doc README.md LICENSE +%{nodejs_sitelib}/%{module_name} + +%changelog +* Wed Dec 03 2014 Parag Nemade - 0.2.0-1 +- Initial packaging + diff --git a/sources b/sources index e69de29..9e670f0 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +f062a50c6893223b7efe207853b03cad langdetect-0.2.0.tgz