diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..01a983e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/arrify-4576e94.tar.gz diff --git a/.rh-nodejs4-nodejs-arrify.metadata b/.rh-nodejs4-nodejs-arrify.metadata new file mode 100644 index 0000000..878d4d4 --- /dev/null +++ b/.rh-nodejs4-nodejs-arrify.metadata @@ -0,0 +1 @@ +699f37786b8a57e950c447753b8102ba51792fc9 SOURCES/arrify-4576e94.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-arrify.spec b/SPECS/nodejs-arrify.spec new file mode 100644 index 0000000..df2e44a --- /dev/null +++ b/SPECS/nodejs-arrify.spec @@ -0,0 +1,81 @@ +%{?scl:%scl_package nodejs-%{srcname}} +%{!?scl:%global pkg_name %{name}} +%{?nodejs_find_provides_and_requires} + +# Circular dependency on ava +%global enable_tests 0 +%global srcname arrify + +%global commit0 4576e944677c722c356480b17a6d709d34d0733c +%global gittag0 v1.0.0 +%global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) + +Name: %{?scl_prefix}nodejs-%{srcname} +Version: 1.0.0 +Release: 8%{?dist} +Summary: Convert a value to an array +License: MIT +URL: https://www.npmjs.com/package/%{srcname} +Source0: https://github.com/sindresorhus/%{srcname}/archive/%{commit0}.tar.gz#/%{srcname}-%{shortcommit0}.tar.gz + +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +BuildRequires: %{?scl_prefix}runtime + +%if 0%{?enable_tests} +BuildRequires: %{?scl_prefix}npm(ava) +%endif + +%description +%{summary}. + +%prep +%setup -n %{pkg_name}-%{version} -qn %{srcname}-%{commit0} +rm -rf node_modules/ + +%build +#nothing to do + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname} +cp -pr index.js package.json \ + %{buildroot}%{nodejs_sitelib}/%{srcname} + +%nodejs_symlink_deps + + +%if 0%{?enable_tests} + +%check +%nodejs_symlink_deps --check +node test.js +%endif + +%files +%{!?_licensedir:%global license %doc} +%doc readme.md +%license license +%{nodejs_sitelib}/%{srcname} + +%changelog +* Tue Feb 16 2016 Zuzana Svetlikova - 1.0.0-8 +- Use macro in -runtime dependency + +* Sun Feb 14 2016 Zuzana Svetlikova - 1.0.0-7 +- Rebuilt with updated metapackage + +* Thu Jan 14 2016 Tomas Hrcka - 1.0.0-6 +- Invoke find_provides_and_requires macro + +* Thu Jan 14 2016 Tomas Hrcka - 1.0.0-5 +- Enable find provides and requires macro + +* Thu Jan 14 2016 Tomas Hrcka - 1.0.0-4 +- Enable find provides and requires macro + +* Mon Jan 11 2016 Tomas Hrcka - 1.0.0-3 +- Enable scl macros + +* Sat Oct 17 2015 Piotr Popieluch - 1.0.0-1 +- Initial package