From b5d6bb46aacfe023e23753e965cdc21e1806468c Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Feb 22 2016 13:53:47 +0000 Subject: import nodejs010-nodejs-strip-json-comments-1.0.2-3.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..882d68a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/v1.0.2.tar.gz diff --git a/.nodejs010-nodejs-strip-json-comments.metadata b/.nodejs010-nodejs-strip-json-comments.metadata new file mode 100644 index 0000000..1cabc39 --- /dev/null +++ b/.nodejs010-nodejs-strip-json-comments.metadata @@ -0,0 +1 @@ +98290fcc294bb604bbe3c728b84b574e90620613 SOURCES/v1.0.2.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-strip-json-comments.spec b/SPECS/nodejs-strip-json-comments.spec new file mode 100644 index 0000000..07361e5 --- /dev/null +++ b/SPECS/nodejs-strip-json-comments.spec @@ -0,0 +1,75 @@ +%{?scl:%scl_package nodejs-strip-json-comments} +%{!?scl:%global pkg_name %{name}} + +%{?nodejs_find_provides_and_requires} + +Name: %{?scl_prefix}nodejs-strip-json-comments +Version: 1.0.2 +Release: 3%{?dist} +Summary: Strip comments from JSON +License: MIT +Group: System Environment/Libraries +URL: https://github.com/sindresorhus/strip-json-comments +Source: https://github.com/sindresorhus/strip-json-comments/archive/v%{version}.tar.gz + + + +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +BuildRequires: nodejs010-runtime + +%description +Strip comments from JSON. Lets you use comments in your JSON files! + +%prep +%setup -q -n strip-json-comments-%{version} + +%build +#nothing to do + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/strip-json-comments +cp -pr package.json strip-json-comments.js \ + %{buildroot}%{nodejs_sitelib}/strip-json-comments +install -p -D -m0755 cli.js %{buildroot}%{nodejs_sitelib}/strip-json-comments/ + +mkdir -p %{buildroot}%{_bindir} +ln -s %{nodejs_sitelib}/strip-json-comments/cli.js \ + %{buildroot}%{_bindir}/strip-json-comments + +%nodejs_symlink_deps + +%files +%{!?_licensedir:%global license %doc} +%doc readme.md license +%{nodejs_sitelib}/strip-json-comments +%{_bindir}/strip-json-comments + +%changelog +* Tue Jan 12 2016 Tomas Hrcka - 1.0.2-3 +- Enable scl macros, fix license macro for el6 + +* Wed Jun 17 2015 Fedora Release Engineering - 1.0.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sun Oct 19 2014 Anish Patil - 1.0.2-1 +- Upstream has released new version + +* Tue Aug 19 2014 Anish Patil - 1.0.1-1 +- Upstream has released new version + +* Sat Jun 07 2014 Fedora Release Engineering - 0.1.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Wed Jun 4 2014 Anish Patil - 0.1.3-4 +- Incorporated package review comments + +* Wed May 28 2014 Anish Patil - 0.1.2-3 +- Incorporated package review comments + +* Wed May 07 2014 Anish Patil - 0.1.1-2 +- Incorporated package review comments + +* Thu Apr 10 2014 Anish Patil - 0.1.1-1 +- Initial package \ No newline at end of file