Blame SPECS/nodejs-graceful-readlink.spec

c1820c
%{?scl:%scl_package nodejs-graceful-readlink}
c1820c
%{!?scl:%global pkg_name %{name}}
c1820c
c1820c
%{?nodejs_find_provides_and_requires}
c1820c
c1820c
%global packagename graceful-readlink
c1820c
%global enable_tests 0
c1820c
# there is no test suite on this package, but we can still do some self-tests
c1820c
c1820c
Name:		%{?scl_prefix}nodejs-graceful-readlink
c1820c
Version:	1.0.1
c1820c
Release:	3%{?dist}
c1820c
Summary:	The graceful fs.readlink functionality
c1820c
c1820c
License:	MIT
c1820c
URL:		https://github.com/zhiyelee/graceful-readlink.git
c1820c
Source0:	https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
c1820c
c1820c
ExclusiveArch:	%{nodejs_arches} noarch
c1820c
BuildArch:	noarch
c1820c
c1820c
BuildRequires:	%{?scl_prefix}nodejs-devel
c1820c
c1820c
%if 0%{?enable_tests}
c1820c
%endif
c1820c
c1820c
%description
c1820c
The graceful fs.readlink functionality
c1820c
c1820c
%prep
c1820c
%setup -q -n package
c1820c
c1820c
%build
c1820c
# nothing to do!
c1820c
c1820c
%install
c1820c
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
c1820c
cp -pr package.json *.js \
c1820c
	%{buildroot}%{nodejs_sitelib}/%{packagename}
c1820c
c1820c
%nodejs_symlink_deps
c1820c
c1820c
#%if 0%{?enable_tests}
c1820c
#%check
c1820c
#%nodejs_symlink_deps --check
c1820c
# do a quick self-test on the module
c1820c
#%{__nodejs} -e 'require("./")'
c1820c
#%endif
c1820c
c1820c
%files
c1820c
%{!?_licensedir:%global license %doc}
c1820c
%doc *.md
c1820c
%license LICENSE
c1820c
%{nodejs_sitelib}/%{packagename}
c1820c
c1820c
%changelog
c1820c
* Wed Sep 21 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.1-3
c1820c
- Built for RHSCL
c1820c
c1820c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-2
c1820c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c1820c
c1820c
* Wed Oct 21 2015 Jared Smith <jsmith@fedoraproject.org> - 1.0.1-1
c1820c
- Initial packaging