!1 add package

Merge pull request !1 from 付安安/master
This commit is contained in:
openeuler-ci-bot 2020-09-08 18:42:23 +08:00 committed by Gitee
commit f5f3fde9eb
3 changed files with 47 additions and 0 deletions

BIN
1.7.0.tar.gz Normal file

Binary file not shown.

43
nodejs-growl.spec Normal file
View File

@ -0,0 +1,43 @@
%{?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
URL: https://github.com/tj/node-growl
Source0: https://github.com/tj/node-growl/archive/%{version}.tar.gz
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
%autosetup -n node-growl-%{version}
%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

4
nodejs-growl.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: tj/node-growl
tag_prefix: "^"
seperator: "."