Blame SPECS/nodejs-xdg-basedir.spec

419f3d
%{?scl:%scl_package nodejs-%{npm_name}}
419f3d
%{!?scl:%global pkg_name %{name}}
419f3d
419f3d
%{?nodejs_find_provides_and_requires}
419f3d
%global npm_name xdg-basedir
419f3d
419f3d
Summary:       Get XDG Base Directory paths
419f3d
Name:          %{?scl_prefix}nodejs-%{npm_name}
419f3d
Version:       2.0.0
419f3d
Release:       4%{?dist}
419f3d
License:       MIT
419f3d
URL:           https://github.com/sindresorhus/xdg-basedir
419f3d
Source0:       http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
419f3d
BuildRequires: %{?scl_prefix}nodejs-devel
419f3d
ExclusiveArch: %{nodejs_arches} noarch
419f3d
BuildArch:     noarch
419f3d
419f3d
%description
419f3d
Get XDG Base Directory paths.
419f3d
419f3d
%prep
419f3d
%setup -q -n package
419f3d
419f3d
%build
419f3d
419f3d
%install
419f3d
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
419f3d
cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/%{npm_name}
419f3d
419f3d
%nodejs_symlink_deps
419f3d
419f3d
%files
419f3d
%{!?_licensedir:%global license %doc}
419f3d
%doc readme.md
419f3d
%license license
419f3d
%{nodejs_sitelib}/%{npm_name}
419f3d
419f3d
%changelog
419f3d
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.0-4
419f3d
- Use macro in -runtime dependency
419f3d
419f3d
* Thu Jan 07 2016 Tomas Hrcka <thrcka@redhat.com> - 2.0.0-2
419f3d
- Enable scl macros
419f3d
419f3d
* Wed Dec 16 2015 Troy Dawson <tdawson@redhat.com> - 2.0.0-1
419f3d
- Initial package