!2 package init(nodejs-flot的安装依赖)
From: @caodongxia Reviewed-by: @ultra_planet,@myeuler Signed-off-by: @myeuler
This commit is contained in:
commit
1183afaa42
BIN
js-excanvas-44ac99f.tar.gz
Normal file
BIN
js-excanvas-44ac99f.tar.gz
Normal file
Binary file not shown.
42
js-excanvas.spec
Normal file
42
js-excanvas.spec
Normal file
@ -0,0 +1,42 @@
|
||||
%global commit 44ac99ffc23b665c94a56b365d1d98ffa567e42c
|
||||
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
||||
Name: js-excanvas
|
||||
Version: 0
|
||||
Release: 1
|
||||
Summary: Canvas for IE8 and older
|
||||
License: Apache-2.0
|
||||
URL: https://github.com/arv/ExplorerCanvas
|
||||
Source0: https://github.com/arv/ExplorerCanvas/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRequires: web-assets-devel closure-compiler jarjar
|
||||
Requires: web-assets-filesystem
|
||||
%description
|
||||
Firefox, Safari and Opera 9 support the canvas tag to allow 2D command-based
|
||||
drawing operations. ExplorerCanvas brings the same functionality to Internet
|
||||
Explorer; web developers only need to include a single script tag in their
|
||||
existing canvas webpages to enable this support.
|
||||
|
||||
%prep
|
||||
%setup -qn ExplorerCanvas-%{commit}
|
||||
sed -i 's/\r//' AUTHORS README
|
||||
|
||||
%build
|
||||
for f in `find -name "*.js"`; do
|
||||
bn="${f%.js}"
|
||||
bn="${bn}.min.js"
|
||||
closure-compiler --language_in=ECMASCRIPT5 --js=${f} >${bn}
|
||||
done
|
||||
|
||||
%install
|
||||
%global inslibdir %{buildroot}%{_jsdir}/excanvas
|
||||
mkdir -p %{inslibdir}/%{version}
|
||||
cp -p excanvas.js excanvas.min.js %{inslibdir}/%{version}
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%doc AUTHORS README examples/
|
||||
%{_jsdir}/excanvas
|
||||
|
||||
%changelog
|
||||
* Thu Nov 19 2020 caodongxia <caodongxia@huawei.com> - 0-1
|
||||
- package init
|
||||
4
js-excanvas.yaml
Normal file
4
js-excanvas.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: arv/ExplorerCanvas
|
||||
tag_prefix: ""
|
||||
separator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user