From 54ac663f6da5f62cc1bbe3a377575a8d35af4695 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Apr 26 2017 10:43:36 +0000 Subject: import rh-nodejs6-nodejs-generate-function-2.0.0-3.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..70e901c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/generate-function-3d5fc8d.tar.gz diff --git a/.rh-nodejs6-nodejs-generate-function.metadata b/.rh-nodejs6-nodejs-generate-function.metadata new file mode 100644 index 0000000..b1485d2 --- /dev/null +++ b/.rh-nodejs6-nodejs-generate-function.metadata @@ -0,0 +1 @@ +7bd2cdea103b454358aa535fc0c1e76c25bb5753 SOURCES/generate-function-3d5fc8d.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/SOURCES/LICENSE b/SOURCES/LICENSE new file mode 100644 index 0000000..757562e --- /dev/null +++ b/SOURCES/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2014 Mathias Buus + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. \ No newline at end of file diff --git a/SPECS/nodejs-generate-function.spec b/SPECS/nodejs-generate-function.spec new file mode 100644 index 0000000..64a6019 --- /dev/null +++ b/SPECS/nodejs-generate-function.spec @@ -0,0 +1,70 @@ +%{?scl:%scl_package nodejs-%{srcname}} +%{!?scl:%global pkg_name %{name}} + +%{?nodejs_find_provides_and_requires} + +%global enable_tests 0 +%global srcname generate-function + +%global commit0 3d5fc8de5859be95f58e3af9bfb5f663edd95149 +%global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) + +Name: %{?scl_prefix}nodejs-%{srcname} +Version: 2.0.0 +Release: 3%{?dist} +Summary: Module that helps you write generated functions in Node + +License: MIT +URL: https://github.com/mafintosh/generate-function +# license is included in next not released version +Source0: https://github.com/mafintosh/%{srcname}/archive/%{commit0}.tar.gz#/%{srcname}-%{shortcommit0}.tar.gz +Source1: https://raw.githubusercontent.com/mafintosh/generate-function/master/LICENSE + +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +BuildRequires: %{?scl_prefix}nodejs-devel + +%if 0%{?enable_tests} +BuildRequires: %{?scl_prefix}npm(tape) +%endif + +%description +%{summary}. + +%prep +%setup -n %{pkg_name}-%{version} -qn %{srcname}-%{commit0} +cp -p %{SOURCE1} . +rm -rf node_modules + +%build +# nothing to build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname} +cp -pr package.json index.js \ + %{buildroot}%{nodejs_sitelib}/%{srcname} + +%nodejs_symlink_deps + +%if 0%{?enable_tests} + +%check +%nodejs_symlink_deps --check +tape test.js +%endif + +%files +%doc README.md example.js +%license LICENSE +%{nodejs_sitelib}/%{srcname} + +%changelog +* Mon Jan 16 2017 Zuzana Svetlikova - 2.0.0-3 +- Rebuild for rhscl + +* Thu Feb 04 2016 Fedora Release Engineering - 2.0.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Oct 28 2015 Piotr Popieluch - 2.0.0-1 +- Initial packaging