|
Jared K. Smith |
5d627c7 |
%{?nodejs_find_provides_and_requires}
|
|
Jared K. Smith |
5d627c7 |
|
|
Jared K. Smith |
5d627c7 |
%global packagename camelcase
|
|
Jared K. Smith |
5d627c7 |
%global enable_tests 0
|
|
Jared K. Smith |
5d627c7 |
# tests disabled until we get 'ava' packaged into Fedora
|
|
Jared K. Smith |
5d627c7 |
|
|
Jared K. Smith |
5d627c7 |
Name: nodejs-camelcase
|
|
Jared K. Smith |
f8fd711 |
Version: 4.1.0
|
|
|
c415ed9 |
Release: 3%{?dist}
|
|
Jared K. Smith |
5d627c7 |
Summary: Convert a dash/dot/underscore/space separated string to camelCase
|
|
Jared K. Smith |
5d627c7 |
|
|
Jared K. Smith |
5d627c7 |
License: MIT
|
|
Jared K. Smith |
5d627c7 |
URL: https://github.com/sindresorhus/camelcase
|
|
Jared K. Smith |
5d627c7 |
Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
|
|
Jared K. Smith |
5d627c7 |
Source1: https://raw.githubusercontent.com/sindresorhus/camelcase/v%{version}/test.js
|
|
Jared K. Smith |
5d627c7 |
|
|
Jared K. Smith |
5d627c7 |
|
|
Jared K. Smith |
5d627c7 |
ExclusiveArch: %{nodejs_arches} noarch
|
|
Jared K. Smith |
5d627c7 |
BuildArch: noarch
|
|
Jared K. Smith |
5d627c7 |
|
|
Jared K. Smith |
5d627c7 |
BuildRequires: nodejs-packaging
|
|
Jared K. Smith |
5d627c7 |
%if 0%{?enable_tests}
|
|
Jared K. Smith |
5d627c7 |
BuildRequires: mocha
|
|
Jared K. Smith |
5d627c7 |
BuildRequires: npm(ava)
|
|
Jared K. Smith |
5d627c7 |
%endif
|
|
Jared K. Smith |
5d627c7 |
|
|
Jared K. Smith |
5d627c7 |
Requires: nodejs
|
|
Jared K. Smith |
5d627c7 |
|
|
Jared K. Smith |
5d627c7 |
%description
|
|
Jared K. Smith |
5d627c7 |
Convert a dash/dot/underscore/space separated string to camelCase:
|
|
Jared K. Smith |
5d627c7 |
foo-bar → fooBar
|
|
Jared K. Smith |
5d627c7 |
|
|
Jared K. Smith |
5d627c7 |
|
|
Jared K. Smith |
5d627c7 |
%prep
|
|
Jared K. Smith |
5d627c7 |
%setup -q -n package
|
|
Jared K. Smith |
5d627c7 |
# setup the tests
|
|
Jared K. Smith |
5d627c7 |
cp -r %{SOURCE1} .
|
|
Jared K. Smith |
5d627c7 |
|
|
Jared K. Smith |
5d627c7 |
|
|
Jared K. Smith |
5d627c7 |
%build
|
|
Jared K. Smith |
5d627c7 |
# nothing to do!
|
|
Jared K. Smith |
5d627c7 |
|
|
Jared K. Smith |
5d627c7 |
%install
|
|
Jared K. Smith |
5d627c7 |
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
|
|
Jared K. Smith |
5d627c7 |
cp -pr package.json index.js \
|
|
Jared K. Smith |
5d627c7 |
%{buildroot}%{nodejs_sitelib}/%{packagename}
|
|
Jared K. Smith |
5d627c7 |
|
|
Jared K. Smith |
5d627c7 |
%nodejs_symlink_deps
|
|
Jared K. Smith |
5d627c7 |
|
|
Jared K. Smith |
5d627c7 |
%check
|
|
Jared K. Smith |
5d627c7 |
%nodejs_symlink_deps --check
|
|
Jared K. Smith |
5d627c7 |
%{__nodejs} -e 'require("./")'
|
|
Jared K. Smith |
5d627c7 |
%if 0%{?enable_tests}
|
|
Jared K. Smith |
5d627c7 |
%{_bindir}/mocha -R spec
|
|
Jared K. Smith |
5d627c7 |
/usr/bin/mocha -R spec
|
|
Jared K. Smith |
5d627c7 |
%else
|
|
Jared K. Smith |
5d627c7 |
%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
|
|
Jared K. Smith |
5d627c7 |
%endif
|
|
Jared K. Smith |
5d627c7 |
|
|
Jared K. Smith |
5d627c7 |
|
|
Jared K. Smith |
5d627c7 |
%files
|
|
Jared K. Smith |
5d627c7 |
%{!?_licensedir:%global license %doc}
|
|
Jared K. Smith |
5d627c7 |
%doc *.md
|
|
Jared K. Smith |
5d627c7 |
%license license
|
|
Jared K. Smith |
5d627c7 |
%{nodejs_sitelib}/%{packagename}
|
|
Jared K. Smith |
5d627c7 |
|
|
Jared K. Smith |
5d627c7 |
|
|
Jared K. Smith |
5d627c7 |
|
|
Jared K. Smith |
5d627c7 |
%changelog
|
|
|
c415ed9 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-3
|
|
|
c415ed9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
c415ed9 |
|
|
|
74f315a |
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-2
|
|
|
74f315a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
74f315a |
|
|
Jared K. Smith |
f8fd711 |
* Mon Sep 25 2017 Jared Smith <jsmith@fedoraproject.org> - 4.1.0-1
|
|
Jared K. Smith |
f8fd711 |
- Update to upstream 4.1.0 release
|
|
Jared K. Smith |
f8fd711 |
|
|
|
b473800 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-5
|
|
|
b473800 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
b473800 |
|
|
|
4ff61d0 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-4
|
|
|
4ff61d0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
4ff61d0 |
|
|
Jared K. Smith |
5d627c7 |
* Thu Aug 04 2016 Jared Smith <jsmith@fedoraproject.org> - 3.0.0-3
|
|
Jared K. Smith |
5d627c7 |
- Update test.js to latest version
|
|
Jared K. Smith |
5d627c7 |
|
|
Jared K. Smith |
5d627c7 |
* Thu Aug 04 2016 Jared Smith <jsmith@fedoraproject.org> - 3.0.0-2
|
|
Jared K. Smith |
5d627c7 |
- Fix test.js
|
|
Jared K. Smith |
5d627c7 |
|
|
Jared K. Smith |
5d627c7 |
* Wed Jul 13 2016 Jared Smith <jsmith@fedoraproject.org> - 3.0.0-1
|
|
Jared K. Smith |
5d627c7 |
- Update to upstream 3.0.0 release
|
|
Jared K. Smith |
5d627c7 |
|
|
Jared K. Smith |
5d627c7 |
* Fri Oct 23 2015 Jared Smith <jsmith@fedoraproject.org> - 1.2.1-1
|
|
Jared K. Smith |
5d627c7 |
- Initial packaging
|