diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..472e36f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/clone-0.2.0.tgz diff --git a/.nodejs010-nodejs-clone.metadata b/.nodejs010-nodejs-clone.metadata new file mode 100644 index 0000000..7d5fe6b --- /dev/null +++ b/.nodejs010-nodejs-clone.metadata @@ -0,0 +1 @@ +c6126a90ad4f72dbf5acdb243cc37724fe93fc1f SOURCES/clone-0.2.0.tgz 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-clone.spec b/SPECS/nodejs-clone.spec new file mode 100644 index 0000000..0de1740 --- /dev/null +++ b/SPECS/nodejs-clone.spec @@ -0,0 +1,71 @@ +%{?scl:%scl_package nodejs-%{srcname}} +%{!?scl:%global pkg_name %{name}} +%{?nodejs_find_provides_and_requires} + +%global enable_tests 0 +%global srcname clone + +Name: %{?scl_prefix}nodejs-%{srcname} +Version: 0.2.0 +Release: 3%{?dist} +Summary: Deep cloning of objects and arrays +License: MIT +URL: https://github.com/pvorb/node-clone +Source0: http://registry.npmjs.org/%{srcname}/-/%{srcname}-%{version}.tgz + +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +BuildRequires: nodejs010 + +%if 0%{?enable_tests} +BuildRequires: %{?scl_prefix}nodeunit +BuildRequires: %{?scl_prefix}npm(underscore) +%endif + +%description +Offers foolproof deep cloning of variables in JavaScript. + +%prep +%setup -q -n package +rm -rf node_modules/ + +%build +#nothing to do + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname} +cp -pr package.json clone.js %{buildroot}%{nodejs_sitelib}/%{srcname} + +%nodejs_symlink_deps + + +%if 0%{?enable_tests} + +%check +%nodejs_symlink_deps --check +nodeunit test.js +%endif + +%files +%doc README.md LICENSE +%{nodejs_sitelib}/%{srcname} + +%changelog +* Tue Jan 13 2015 Tomas Hrcka - 0.2.0-3 +- Add provides_requires macro + +* Mon Jan 12 2015 Tomas Hrcka - 0.2.0-2 +- Enable software collection support + +* Fri Dec 19 2014 Piotr Popieluch - 0.2.0-1 +- updated to latest upstream + +* Sat Dec 6 2014 Piotr Popieluch - 0.1.18-2 +- Added LICENSE to %%files +- Added rm -rf node_modules to %%prep +- Capitalized summary +- Removed Group tag + +* Fri Nov 21 2014 Piotr Popieluch - 0.1.18-1 +- Initial package