Blame nodejs-graceful-readlink.spec
|
Jared K. Smith |
8d6b3bc |
%{?nodejs_find_provides_and_requires}
|
|
Jared K. Smith |
8d6b3bc |
|
|
Jared K. Smith |
8d6b3bc |
%global packagename graceful-readlink
|
|
Jared K. Smith |
8d6b3bc |
%global enable_tests 1
|
|
Jared K. Smith |
8d6b3bc |
# there is no test suite on this package, but we can still do some self-tests
|
|
Jared K. Smith |
8d6b3bc |
|
|
Jared K. Smith |
8d6b3bc |
Name: nodejs-graceful-readlink
|
|
Jared K. Smith |
8d6b3bc |
Version: 1.0.1
|
|
Jared K. Smith |
8d6b3bc |
Release: 1%{?dist}
|
|
Jared K. Smith |
8d6b3bc |
Summary: The graceful fs.readlink functionality
|
|
Jared K. Smith |
8d6b3bc |
|
|
Jared K. Smith |
8d6b3bc |
License: MIT
|
|
Jared K. Smith |
8d6b3bc |
URL: https://github.com/zhiyelee/graceful-readlink.git
|
|
Jared K. Smith |
8d6b3bc |
Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
|
|
Jared K. Smith |
8d6b3bc |
|
|
Jared K. Smith |
8d6b3bc |
ExclusiveArch: %{nodejs_arches} noarch
|
|
Jared K. Smith |
8d6b3bc |
BuildArch: noarch
|
|
Jared K. Smith |
8d6b3bc |
|
|
Jared K. Smith |
8d6b3bc |
BuildRequires: nodejs-packaging
|
|
Jared K. Smith |
8d6b3bc |
%if 0%{?enable_tests}
|
|
Jared K. Smith |
8d6b3bc |
#BuildRequires:
|
|
Jared K. Smith |
8d6b3bc |
%endif
|
|
Jared K. Smith |
8d6b3bc |
|
|
Jared K. Smith |
8d6b3bc |
Requires: nodejs
|
|
Jared K. Smith |
8d6b3bc |
|
|
Jared K. Smith |
8d6b3bc |
%description
|
|
Jared K. Smith |
8d6b3bc |
The graceful fs.readlink functionality
|
|
Jared K. Smith |
8d6b3bc |
|
|
Jared K. Smith |
8d6b3bc |
|
|
Jared K. Smith |
8d6b3bc |
%prep
|
|
Jared K. Smith |
8d6b3bc |
%setup -q -n package
|
|
Jared K. Smith |
8d6b3bc |
|
|
Jared K. Smith |
8d6b3bc |
%build
|
|
Jared K. Smith |
8d6b3bc |
# nothing to do!
|
|
Jared K. Smith |
8d6b3bc |
|
|
Jared K. Smith |
8d6b3bc |
%install
|
|
Jared K. Smith |
8d6b3bc |
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
|
|
Jared K. Smith |
8d6b3bc |
cp -pr package.json *.js \
|
|
Jared K. Smith |
8d6b3bc |
%{buildroot}%{nodejs_sitelib}/%{packagename}
|
|
Jared K. Smith |
8d6b3bc |
|
|
Jared K. Smith |
8d6b3bc |
%nodejs_symlink_deps
|
|
Jared K. Smith |
8d6b3bc |
|
|
Jared K. Smith |
8d6b3bc |
%if 0%{?enable_tests}
|
|
Jared K. Smith |
8d6b3bc |
%check
|
|
Jared K. Smith |
8d6b3bc |
%nodejs_symlink_deps --check
|
|
Jared K. Smith |
8d6b3bc |
# do a quick self-test on the module
|
|
Jared K. Smith |
8d6b3bc |
%{__nodejs} -e 'require("./")'
|
|
Jared K. Smith |
8d6b3bc |
%endif
|
|
Jared K. Smith |
8d6b3bc |
|
|
Jared K. Smith |
8d6b3bc |
|
|
Jared K. Smith |
8d6b3bc |
%files
|
|
Jared K. Smith |
8d6b3bc |
%{!?_licensedir:%global license %doc}
|
|
Jared K. Smith |
8d6b3bc |
%doc *.md
|
|
Jared K. Smith |
8d6b3bc |
%license LICENSE
|
|
Jared K. Smith |
8d6b3bc |
%{nodejs_sitelib}/%{packagename}
|
|
Jared K. Smith |
8d6b3bc |
|
|
Jared K. Smith |
8d6b3bc |
|
|
Jared K. Smith |
8d6b3bc |
|
|
Jared K. Smith |
8d6b3bc |
%changelog
|
|
Jared K. Smith |
8d6b3bc |
* Wed Oct 21 2015 Jared Smith <jsmith@fedoraproject.org> - 1.0.1-1
|
|
Jared K. Smith |
8d6b3bc |
- Initial packaging
|