Blame SPECS/nodejs-lowercase-keys.spec

85ab98
%{?scl:%scl_package nodejs-%{module_name}}
85ab98
%{!?scl:%global pkg_name %{name}}
85ab98
%{?nodejs_find_provides_and_requires}
85ab98
85ab98
# ava module not in fedora yet
85ab98
%global enable_tests 0
85ab98
%global module_name lowercase-keys
85ab98
85ab98
Name:           %{?scl_prefix}nodejs-%{module_name}
85ab98
Version:        1.0.0
85ab98
Release:        4%{?dist}
85ab98
Summary:        Lowercase the keys of an object
85ab98
85ab98
License:        MIT
85ab98
URL:            https://github.com/sindresorhus/lowercase-keys
85ab98
Source0:        https://github.com/sindresorhus/lowercase-keys/archive/v%{version}.tar.gz
85ab98
BuildArch:      noarch
85ab98
ExclusiveArch:  %{nodejs_arches} noarch
85ab98
85ab98
BuildRequires:  nodejs010-runtime
85ab98
85ab98
%if 0%{?enable_tests}
85ab98
BuildRequires:  %{?scl_prefix}npm(ava)
85ab98
%endif
85ab98
85ab98
%description
85ab98
%{summary}.
85ab98
85ab98
%prep
85ab98
%setup -q -n %{module_name}-%{version}
85ab98
rm -rf node_modules
85ab98
85ab98
%build
85ab98
# nothing to build
85ab98
85ab98
%install
85ab98
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
85ab98
cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/%{module_name}
85ab98
85ab98
%nodejs_symlink_deps
85ab98
85ab98
%if 0%{?enable_tests}
85ab98
85ab98
%check
85ab98
%nodejs_symlink_deps --check
85ab98
node test.js
85ab98
%endif
85ab98
85ab98
%files
85ab98
%{!?_licensedir:%global license %doc}
85ab98
%doc readme.md
85ab98
%license license
85ab98
%{nodejs_sitelib}/%{module_name}
85ab98
85ab98
%changelog
85ab98
* Tue Jan 12 2016 Tomas Hrcka <thrcka@redhat.com> - 1.0.0-4
85ab98
- Use macro to find provides and requires
85ab98
85ab98
* Tue Jan 12 2016 Tomas Hrcka <thrcka@redhat.com> - 1.0.0-3
85ab98
- Enable scl macros, fix license macro for el6
85ab98
85ab98
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
85ab98
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
85ab98
85ab98
* Sat Jan 31 2015 Parag Nemade <pnemade AT redhat DOT com> - 1.0.0-1
85ab98
- Initial packaging