Blame SPECS/nodejs-normalize-package-data.spec

88c5b9
%{?scl:%scl_package nodejs-normalize-package-data}
88c5b9
%{!?scl:%global pkg_name %{name}}
88c5b9
88c5b9
%{?nodejs_find_provides_and_requires}
88c5b9
88c5b9
Name:           %{?scl_prefix}nodejs-normalize-package-data
88c5b9
Version:        2.3.5
88c5b9
Release:        2%{?dist}
88c5b9
Summary:        Normalizes npm/package.json metadata
88c5b9
BuildArch:      noarch
88c5b9
ExclusiveArch: %{nodejs_arches} noarch
88c5b9
88c5b9
Group:          Development/Libraries
88c5b9
License:        BSD
88c5b9
URL:            https://github.com/meryn/normalize-package-data
88c5b9
Source0:        http://registry.npmjs.org/normalize-package-data/-/normalize-package-data-%{version}.tgz
88c5b9
BuildRoot:      %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n)
88c5b9
88c5b9
BuildRequires:  %{?scl_prefix}nodejs-devel
88c5b9
88c5b9
#for tests
88c5b9
#BuildRequires:  %%{?scl_prefix}npm(tap)
88c5b9
#BuildRequires:  %%{?scl_prefix}npm(underscore)
88c5b9
#BuildRequires:  %%{?scl_prefix}npm(async)
88c5b9
#BuildRequires:  %%{?scl_prefix}npm(semver)
88c5b9
#BuildRequires:  %%{?scl_prefix}npm(github-url-from-git)
88c5b9
88c5b9
%description
88c5b9
normalize-package-data exports a function that normalizes package metadata. This
88c5b9
data is typically found in a package.json file, but in principle could come from
88c5b9
any source - for example the npm registry.
88c5b9
88c5b9
normalize-package-data is used by read-package-json to normalize the data it
88c5b9
reads from a package.json file. In turn, read-package-json is used by npm and
88c5b9
various npm-related tools.
88c5b9
88c5b9
%prep
88c5b9
%setup -q -n package
88c5b9
88c5b9
%build
88c5b9
#nothing to do
88c5b9
88c5b9
%install
88c5b9
rm -rf %buildroot
88c5b9
88c5b9
mkdir -p %{buildroot}%{nodejs_sitelib}/normalize-package-data
88c5b9
cp -pr lib package.json %{buildroot}%{nodejs_sitelib}/normalize-package-data
88c5b9
88c5b9
%nodejs_symlink_deps
88c5b9
88c5b9
%check
88c5b9
#%nodejs_symlink_deps --check
88c5b9
#%tap test/*.js || :
88c5b9
88c5b9
%clean
88c5b9
rm -rf %buildroot
88c5b9
88c5b9
%files
88c5b9
%defattr(-,root,root,-)
88c5b9
%{nodejs_sitelib}/normalize-package-data
88c5b9
%doc README.md LICENSE AUTHORS
88c5b9
88c5b9
%changelog
88c5b9
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.3.5-2
88c5b9
- rebuilt
88c5b9
88c5b9
* Mon Nov 30 2015 Tomas Hrcka <thrcka@redhat.com> - 2.3.5-1
88c5b9
- New upstream release
88c5b9
88c5b9
* Fri Jan 09 2015 Tomas Hrcka <thrcka@redhat.com> - 1.0.3-1
88c5b9
- New upstream release 1.0.3
88c5b9
88c5b9
* Thu Jan 16 2014 Tomas Hrcka <thrcka@redhat.com> - 0.2.8-1
88c5b9
- New upstream release 0.2.8
88c5b9
88c5b9
* Fri Nov 08 2013 Tomas Hrcka <thrcka@redhat.com> - 0.2.1-1.1
88c5b9
- Software collections support
88c5b9
88c5b9
* Tue Jul 30 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.2.1-1
88c5b9
- new upstream release 0.2.1
88c5b9
88c5b9
* Sun Jun 23 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.2.0-1
88c5b9
- new upstream release 0.2.0
88c5b9
- temporarily ignore test results to make semver update easier
88c5b9
88c5b9
* Sat Jun 22 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.1.6-2
88c5b9
- restrict to compatible arches
88c5b9
88c5b9
* Sun Jun 02 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.1.6-1
88c5b9
- initial package