Blame nodejs-call-signature.spec

Jared K. Smith 98a7f69
%{?nodejs_find_provides_and_requires}
Jared K. Smith 98a7f69
Jared K. Smith 98a7f69
%global packagename call-signature
Jared K. Smith 98a7f69
Jared K. Smith 98a7f69
# tests disabled due to missing npm(ava) test suite
Jared K. Smith 98a7f69
%global enable_tests 0
Jared K. Smith 98a7f69
Jared K. Smith 98a7f69
Name:		nodejs-call-signature
Jared K. Smith 98a7f69
Version:	0.0.2
5eef37c
Release:	4%{?dist}
Jared K. Smith 98a7f69
Summary:	Parse / Generate Method Signatures
Jared K. Smith 98a7f69
Jared K. Smith 98a7f69
License:	MIT
Jared K. Smith 98a7f69
URL:		https://github.com/jamestalmage/call-signature.git
Jared K. Smith 98a7f69
Source0:	https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
Jared K. Smith 98a7f69
# The test files are not included in the npm tarball.
Jared K. Smith 98a7f69
Source1:	https://raw.githubusercontent.com/jamestalmage/call-signature/v%{version}/test.js
Jared K. Smith 98a7f69
Jared K. Smith 98a7f69
Jared K. Smith 98a7f69
BuildArch:	noarch
Jared K. Smith 98a7f69
%if 0%{?fedora} >= 19
Jared K. Smith 98a7f69
ExclusiveArch: %{nodejs_arches} noarch
Jared K. Smith 98a7f69
%else
Jared K. Smith 98a7f69
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
Jared K. Smith 98a7f69
%endif
Jared K. Smith 98a7f69
Jared K. Smith 98a7f69
BuildRequires:	nodejs-packaging
Jared K. Smith 98a7f69
%if 0%{?enable_tests}
Jared K. Smith 98a7f69
BuildRequires:	npm(ava)
Jared K. Smith 98a7f69
%endif
Jared K. Smith 98a7f69
Jared K. Smith 98a7f69
%description
Jared K. Smith 98a7f69
Parse / Generate Method Signatures
Jared K. Smith 98a7f69
Jared K. Smith 98a7f69
Jared K. Smith 98a7f69
%prep
Jared K. Smith 98a7f69
%setup -q -n package
Jared K. Smith 98a7f69
# setup the tests
Jared K. Smith 98a7f69
cp -p %{SOURCE1} .
Jared K. Smith 98a7f69
Jared K. Smith 98a7f69
%build
Jared K. Smith 98a7f69
# nothing to do!
Jared K. Smith 98a7f69
Jared K. Smith 98a7f69
%install
Jared K. Smith 98a7f69
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
Jared K. Smith 98a7f69
cp -pr package.json index.js \
Jared K. Smith 98a7f69
	%{buildroot}%{nodejs_sitelib}/%{packagename}
Jared K. Smith 98a7f69
Jared K. Smith 98a7f69
%nodejs_symlink_deps
Jared K. Smith 98a7f69
Jared K. Smith 98a7f69
%check
Jared K. Smith 98a7f69
%nodejs_symlink_deps --check
Jared K. Smith 98a7f69
%{__nodejs} -e 'require("./")'
Jared K. Smith 98a7f69
%if 0%{?enable_tests}
Jared K. Smith 98a7f69
%{_bindir}/ava
Jared K. Smith 98a7f69
%else
Jared K. Smith 98a7f69
%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
Jared K. Smith 98a7f69
%endif
Jared K. Smith 98a7f69
Jared K. Smith 98a7f69
Jared K. Smith 98a7f69
%files
Jared K. Smith 98a7f69
%{!?_licensedir:%global license %doc}
Jared K. Smith 98a7f69
%doc *.md
Jared K. Smith 98a7f69
%license license
Jared K. Smith 98a7f69
%{nodejs_sitelib}/%{packagename}
Jared K. Smith 98a7f69
Jared K. Smith 98a7f69
Jared K. Smith 98a7f69
%changelog
5eef37c
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.2-4
5eef37c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5eef37c
f1684f9
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.2-3
f1684f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f1684f9
9e39bf4
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.2-2
9e39bf4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
9e39bf4
Jared K. Smith 98a7f69
* Tue Feb 16 2016 Jared Smith <jsmith@fedoraproject.org> - 0.0.2-1
Jared K. Smith 98a7f69
- Initial packaging