nodejs-growl/nodejs-growl.spec

44 lines
1.0 KiB
RPMSpec
Raw Normal View History

2020-08-20 21:12:25 +08:00
%{?nodejs_find_provides_and_requires}
%global enable_tests 1
Name: nodejs-growl
Version: 1.7.0
Release: 1
Summary: Growl unobtrusive notifications for Node.js
License: MIT
2020-08-25 14:06:00 +08:00
URL: https://github.com/tj/node-growl
2020-09-07 20:24:37 +08:00
Source0: https://github.com/tj/node-growl/archive/%{version}.tar.gz
2020-08-20 21:12:25 +08:00
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
BuildRequires: nodejs-packaging
%if 0%{?enable_tests}
BuildRequires: libnotify-devel
%endif
Requires: libnotify%{?_isa} >= 0:0.5.0-1
%description
%{summary}
%prep
2020-09-07 20:24:37 +08:00
%autosetup -n node-growl-%{version}
2020-08-20 21:12:25 +08:00
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/growl
cp -pr package.json lib/ \
%{buildroot}%{nodejs_sitelib}/growl
%nodejs_symlink_deps
%if 0%{?enable_tests}
%check
%__nodejs test.js
%endif
%files
%doc History.md Readme.md
%{nodejs_sitelib}/growl
%changelog
* Thu Aug 20 2020 Anan Fu <fuanan3@huawei.com> - 1.7.0-1
- package init