From cc07ba4f4a90816930d9b9694d4a506422e6b2aa Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Apr 26 2017 10:52:30 +0000 Subject: import rh-nodejs6-nodejs-sorted-object-2.0.0-1.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f6436c4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/sorted-object-2.0.0.tgz diff --git a/.rh-nodejs6-nodejs-sorted-object.metadata b/.rh-nodejs6-nodejs-sorted-object.metadata new file mode 100644 index 0000000..f58fcef --- /dev/null +++ b/.rh-nodejs6-nodejs-sorted-object.metadata @@ -0,0 +1 @@ +1cfea981609047d8043807a490a9d99b317faf7f SOURCES/sorted-object-2.0.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-sorted-object.spec b/SPECS/nodejs-sorted-object.spec new file mode 100644 index 0000000..028e085 --- /dev/null +++ b/SPECS/nodejs-sorted-object.spec @@ -0,0 +1,56 @@ +%{?scl:%scl_package nodejs-sorted-object} +%{!?scl:%global pkg_name %{name}} + +%{?nodejs_find_provides_and_requires} + +Name: %{?scl_prefix}nodejs-sorted-object +Version: 2.0.0 +Release: 1%{?dist} +Summary: Returns a copy of an object with its keys sorted +License: WTFPL +Url: https://github.com/domenic/sorted-object +Source: http://registry.npmjs.org/sorted-object/-/sorted-object-%{version}.tgz +#BuildRequires: nodejs010 +BuildRequires: %{?scl_prefix}runtime +BuildArch: noarch +ExclusiveArch: %{ix86} x86_64 %{arm} noarch + +%description +Although objects in JavaScript are theoretically unsorted, in practice most engines use insertion order—at least, ignoring numeric keys. This manifests itself most prominently when dealing with an object's JSON serialization. + +So, for example, you might be trying to serialize some object to a JSON file. But every time you write it, it ends up being output in a different order, depending on how you created it in the first place! This makes for some ugly diffs. + +sorted-object gives you the answer. Just use this package to create a version of your object with its keys sorted before serializing, and you'll get a consistent order every time. + +%prep +%setup -q -n package + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/sorted-object +cp -pr package.json lib \ + %{buildroot}%{nodejs_sitelib}/sorted-object/ + +%files +%doc README.md LICENSE.txt +%{nodejs_sitelib}/sorted-object + +%changelog +* Tue Sep 13 2016 Zuzana Svetlikova - 2.0.0-1 +- Updated with script + +* Tue Feb 16 2016 Zuzana Svetlikova - 1.0.0-5 +- Use macro in -runtime dependency + +* Sun Feb 14 2016 Zuzana Svetlikova - 1.0.0-4 +- Rebuilt with updated metapackage + +* Tue Jan 13 2015 Tomas Hrcka - 1.0.0-3 +- Remove undefined macro + +* Mon Jan 12 2015 Tomas Hrcka - 1.0.0-2 +- Enable software collection support + +* Mon Jan 12 2015 Tomas Hrcka - 1.0.0-1 +- Initial build