From 5aa4e70709a2a876a3c34a665d2883ad29562568 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Dec 16 2015 15:43:21 +0000 Subject: import nodejs010-nodejs-os-tmpdir-1.0.1-3.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ff6f2e6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/os-tmpdir-1.0.1.tar.gz diff --git a/.nodejs010-nodejs-os-tmpdir.metadata b/.nodejs010-nodejs-os-tmpdir.metadata new file mode 100644 index 0000000..5c32d00 --- /dev/null +++ b/.nodejs010-nodejs-os-tmpdir.metadata @@ -0,0 +1 @@ +e32da7a0b4aa7c656eb44c6d2aa1b3ed149f27ae SOURCES/os-tmpdir-1.0.1.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-os-tmpdir.spec b/SPECS/nodejs-os-tmpdir.spec new file mode 100644 index 0000000..20fe4e6 --- /dev/null +++ b/SPECS/nodejs-os-tmpdir.spec @@ -0,0 +1,59 @@ +%{?scl:%scl_package nodejs-%{module_name}} +%{!?scl:%global pkg_name %{name}} + +# ava is not in fedora yet +%global enable_tests 0 +%global module_name os-tmpdir +%global gittag0 1.0.1 + +%{?nodejs_find_provides_and_requires} + +Name: %{?scl_prefix}nodejs-%{module_name} +Version: %{gittag0} +Release: 3%{?dist} +Summary: Node.js os.tmpdir() ponyfill + +License: MIT +URL: https://github.com/sindresorhus/os-tmpdir +Source0: https://github.com/sindresorhus/%{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}npm(ava) +%endif + +%description +%{summary}. + +%prep +%setup -q -n %{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 +node test.js +%endif + +%files +%doc readme.md license +%{nodejs_sitelib}/%{module_name} + +%changelog +* Mon Nov 30 2015 Tomas Hrcka - 1.0.1-3 +- Enable scl macros + +* Sat Sep 12 2015 Parag Nemade - 1.0.1-1 +- Initial packaging