From 3f6df1cb2b8052f7432fb072eae221c5da1186a5 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Feb 22 2016 13:50:05 +0000 Subject: import nodejs010-nodejs-create-error-class-2.0.1-4.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5213367 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/create-error-class-bec0186.tar.gz diff --git a/.nodejs010-nodejs-create-error-class.metadata b/.nodejs010-nodejs-create-error-class.metadata new file mode 100644 index 0000000..914c5d9 --- /dev/null +++ b/.nodejs010-nodejs-create-error-class.metadata @@ -0,0 +1 @@ +78bef682d4446412c0b95a67ceca1a98c3d34795 SOURCES/create-error-class-bec0186.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/nodejs-create-error-class.spec b/SPECS/nodejs-create-error-class.spec new file mode 100644 index 0000000..95a80f0 --- /dev/null +++ b/SPECS/nodejs-create-error-class.spec @@ -0,0 +1,73 @@ +%{?scl:%scl_package nodejs-%{module_name}} +%{!?scl:%global pkg_name %{name}} +%{?nodejs_find_provides_and_requires} + +%global enable_tests 0 +%global module_name create-error-class +%global commit0 bec0186ac350c5b89b1707d395c23a5a080b4f45 +%global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) + +Name: %{?scl_prefix}nodejs-%{module_name} +Version: 2.0.1 +Release: 4%{?dist} +Summary: Create Error classes + +License: MIT +URL: https://github.com/floatdrop/create-error-class +Source0: https://github.com/floatdrop/%{module_name}/archive/%{commit0}.tar.gz#/%{module_name}-%{shortcommit0}.tar.gz + +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +BuildRequires: nodejs010-runtime + +%if 0%{?enable_tests} +BuildRequires: %{?scl_prefix}npm(inherits) +BuildRequires: %{?scl_prefix}npm(capture-stack-trace) +BuildRequires: %{?scl_prefix}npm(mocha) +%endif + +%description +%{summary}. + +%prep +%setup -q -n %{module_name}-%{commit0} +rm -rf node_modules + +%nodejs_fixdep inherits + +%build +# nothing to build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name} +cp -p package.json index.js %{buildroot}%{nodejs_sitelib}/%{module_name} +%nodejs_symlink_deps + +%if 0%{?enable_tests} + +%check +%nodejs_symlink_deps --check +mocha +%endif + +%files +%{!?_licensedir:%global license %doc} +%doc readme.md +%license license +%{nodejs_sitelib}/%{module_name} + +%changelog +* Tue Jan 12 2016 Tomas Hrcka - 2.0.1-4 +- Use macro to find provides and requires + +* Tue Jan 12 2016 Tomas Hrcka - 2.0.1-3 +- Enable scl macros, fix license macro for el6 + +* Thu Aug 06 2015 Parag Nemade - 2.0.1-2 +- Add missing BuildRequires +- fix summary macro +- correct check section + +* Thu Jul 30 2015 Parag Nemade - 2.0.1-1 +- Initial packaging \ No newline at end of file