diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3cc5a40 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/aproba-1.0.4.tgz diff --git a/.rh-nodejs6-nodejs-aproba.metadata b/.rh-nodejs6-nodejs-aproba.metadata new file mode 100644 index 0000000..9ee749c --- /dev/null +++ b/.rh-nodejs6-nodejs-aproba.metadata @@ -0,0 +1 @@ +2713680775e7614c8ba186c065d4e2e52d1072c0 SOURCES/aproba-1.0.4.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-aproba.spec b/SPECS/nodejs-aproba.spec new file mode 100644 index 0000000..ef07bcd --- /dev/null +++ b/SPECS/nodejs-aproba.spec @@ -0,0 +1,74 @@ +%{?scl:%scl_package nodejs-aproba} +%{!?scl:%global pkg_name %{name}} + +%{?nodejs_find_provides_and_requires} + +%global packagename aproba + +# Tests are disabled until nodejs-tap is updated +%global enable_tests 0 + +Name: %{?scl_prefix}nodejs-aproba +Version: 1.0.4 +Release: 3%{?dist} +Summary: Function argument validator + +License: ISC +URL: https://github.com/iarna/aproba +Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz + +ExclusiveArch: %{nodejs_arches} noarch +BuildArch: noarch + +BuildRequires: %{?scl_prefix}nodejs-devel + +%if 0%{?enable_tests} +# BuildRequres for tests go here +%endif + +%description +A ridiculously light-weight function argument validator + +%prep +%setup -q -n package + +%build +# Nothing to do + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename} +cp -pr package.json *.js \ + %{buildroot}%{nodejs_sitelib}/%{packagename} + +%nodejs_symlink_deps + +%check +%nodejs_symlink_deps --check +#%{__nodejs} -e 'require("./")' + +%if 0%{?enable_tests} +# test suite goes here +/usr/bin/tap test/*.js +%endif + +%files +%{!?_licensedir:%global license %doc} +%doc *.md +%license LICENSE +%{nodejs_sitelib}/%{packagename} + +%changelog +* Fri Mar 10 2017 Zuzana Svetlikova - 1.0.4-3 +- Correct license + +* Fri Sep 16 2016 Zuzana Svetlikova - 1.0.4-2 +- Built for RHSCL + +* Wed Jul 20 2016 Stephen Gallagher - 1.0.4-1 +- Update to latest upstream release 1.0.4 + +* Thu Feb 04 2016 Fedora Release Engineering - 1.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Fri Jan 15 2016 Stephen Gallagher - 1.0.1-1 +- Initial packaging