diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0726d88 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/error-ex-1.2.0.tar.gz diff --git a/.rh-nodejs4-nodejs-error-ex.metadata b/.rh-nodejs4-nodejs-error-ex.metadata new file mode 100644 index 0000000..968765f --- /dev/null +++ b/.rh-nodejs4-nodejs-error-ex.metadata @@ -0,0 +1 @@ +90284bc1ed93056c9f4d6a43629dfa234aadb98c SOURCES/error-ex-1.2.0.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-error-ex.spec b/SPECS/nodejs-error-ex.spec new file mode 100644 index 0000000..278e74f --- /dev/null +++ b/SPECS/nodejs-error-ex.spec @@ -0,0 +1,68 @@ +%{?scl:%scl_package nodejs-%{module_name}} +%{!?scl:%global pkg_name %{name}} +%{?nodejs_find_provides_and_requires} + +# we have older version of coffee-script in fedora +%global enable_tests 0 +%global module_name error-ex +%global gittag0 1.2.0 + +Name: %{?scl_prefix}nodejs-%{module_name} +Version: %{gittag0} +Release: 5%{?dist} +Summary: Easy error subclassing and stack customization + +License: MIT +URL: https://github.com/Qix-/node-error-ex +Source0: https://github.com/Qix-/node-%{module_name}/archive/%{gittag0}.tar.gz#/%{module_name}-%{gittag0}.tar.gz + +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +BuildRequires: nodejs010-runtime + +%if 0%{?enable_tests} +BuildRequires: %{?scl_prefix}coffee-script +BuildRequires: %{?scl_prefix}coveralls +BuildRequires: %{?scl_prefix}nodejs-istanbul +BuildRequires: %{?scl_prefix}mocha +BuildRequires: %{?scl_prefix}npm(should) +%endif + +%description +%{summary}. + +%prep +%setup -q -n node-%{module_name}-%{gittag0} +rm -rf node_modules + +%build +# nothing to build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name} +cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/%{module_name} +%nodejs_symlink_deps + +%if 0%{?enable_tests} + +%check +%nodejs_symlink_deps --check +mocha --compilers coffee:coffee-script/register +%endif + +%files +%{!?_licensedir:%global license %doc} +%doc README.md +%license LICENSE +%{nodejs_sitelib}/%{module_name} + +%changelog +* Sun Feb 14 2016 Zuzana Svetlikova - 1.2.0-5 +- rebuilt + +* Fri Jan 15 2016 Tomas Hrcka - 1.2.0-4 +- Enable scl macros + +* Fri Sep 25 2015 Parag Nemade - 1.1.1-1 +- Initial packaging