Blame SPECS/nodejs-parse-json.spec

1ea553
%{?scl:%scl_package nodejs-%{module_name}}
1ea553
%{!?scl:%global pkg_name %{name}}
1ea553
%{?nodejs_find_provides_and_requires}
1ea553
1ea553
# ava is not in fedora yet
1ea553
%global enable_tests 0
1ea553
%global module_name parse-json
1ea553
%global gittag0 v2.2.0
1ea553
1ea553
Name:           %{?scl_prefix}nodejs-%{module_name}
1ea553
Version:        2.2.0
dc890b
Release:        7%{?dist}
1ea553
Summary:        Parse JSON with more helpful errors
1ea553
1ea553
# vendor/parse.js is under WTFPL and rest code under MIT
1ea553
License:        MIT and WTFPL
1ea553
URL:            https://github.com/sindresorhus/parse-json
1ea553
Source0:        https://github.com/sindresorhus/%{module_name}/archive/%{gittag0}.tar.gz#/%{module_name}-%{gittag0}.tar.gz
1ea553
1ea553
BuildArch:      noarch
1ea553
ExclusiveArch:  %{nodejs_arches} noarch
1ea553
1ea553
BuildRequires:  %{?scl_prefix}nodejs-devel
1ea553
1ea553
%if 0%{?enable_tests}
1ea553
%endif
1ea553
1ea553
%description
1ea553
%{summary}.
1ea553
1ea553
%prep
1ea553
%setup -q -n %{module_name}-%{version}
1ea553
rm -rf node_modules
1ea553
1ea553
%build
1ea553
# nothing to build
1ea553
1ea553
%install
1ea553
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
1ea553
cp -pr package.json index.js vendor %{buildroot}%{nodejs_sitelib}/%{module_name}
1ea553
%nodejs_symlink_deps
1ea553
1ea553
%if 0%{?enable_tests}
1ea553
1ea553
%check
1ea553
%nodejs_symlink_deps --check
1ea553
node test.js
1ea553
%endif
1ea553
1ea553
%files
1ea553
%{!?_licensedir:%global license %doc}
1ea553
%doc readme.md
1ea553
%license license
1ea553
%{nodejs_sitelib}/%{module_name}
1ea553
1ea553
%changelog
dc890b
* Mon May 28 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.2.0-7
dc890b
- Resolves: RHBZ#1543198, rebuild for multiarch
dc890b
1ea553
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.2.0-6
1ea553
- Use macro in -runtime dependency
1ea553
1ea553
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.2.0-5
1ea553
- Rebuilt with updated metapackage
1ea553
1ea553
* Tue Jan 12 2016 Tomas Hrcka <thrcka@redhat.com> - 2.2.0-4
1ea553
- Use macro to find provides and requires
1ea553
1ea553
* Tue Jan 12 2016 Tomas Hrcka <thrcka@redhat.com> - 2.2.0-3
1ea553
- Enable scl macros, fix license macro for el6
1ea553
1ea553
* Thu Oct 29 2015 Parag Nemade <pnemade AT redhat DOT com> - 2.2.0-2
1ea553
- Fix license tag
1ea553
1ea553
* Fri Sep 11 2015 Parag Nemade <pnemade AT redhat DOT com> - 2.2.0-1
1ea553
- Initial packaging