nodejs-growl/nodejs-growl.spec

46 lines
1.1 KiB
RPMSpec
Raw Permalink Normal View History

2020-08-20 21:12:25 +08:00
%{?nodejs_find_provides_and_requires}
%global enable_tests 1
Name: nodejs-growl
2022-06-10 11:18:17 +08:00
Version: 1.10.5
2020-08-20 21:12:25 +08:00
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
2022-06-10 11:18:17 +08:00
Source0: https://github.com/tj/node-growl/archive/v%{version}.tar.gz
2020-08-20 21:12:25 +08:00
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} 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
2022-06-10 11:18:17 +08:00
* Fri Jun 10 2022 wangkai <wangkai385@h-partners.com> -1.10.5-1
- Update to 1.10.5
2020-08-20 21:12:25 +08:00
* Thu Aug 20 2020 Anan Fu <fuanan3@huawei.com> - 1.7.0-1
- package init