Projects
Eulaceura:Mainline:GA
nodejs-jsonselect
_service:obs_scm:nodejs-jsonselect.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:nodejs-jsonselect.spec of Package nodejs-jsonselect
%{?nodejs_find_provides_and_requires} %global packagename JSONSelect %global enable_tests 1 Name: nodejs-jsonselect Version: 0.4.0 Release: 1 Summary: CSS-like selectors for JSON License: ISC URL: https://github.com/lloyd/JSONSelect.git Source0: https://registry.npmjs.org/JSONSelect/-/JSONSelect-%{version}.tgz Source1: https://raw.githubusercontent.com/lloyd/JSONSelect/master/LICENSE Patch0000: nodejs-jsonselect_fix-print.patch BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging %if 0%{?enable_tests} BuildRequires: uglify-js %endif %description CSS-like selectors for JSON %prep %setup -q -n package cp -p %{SOURCE1} . mv src/build src/build.disabled mkdir src/build cp src/build.disabled/post-compile.js src/build rm -rf src/build.disabled src/dist mkdir src/dist rm -rf site %patch0000 -p1 %build pushd src make project %{_bindir}/uglifyjs dist/jsonselect.js > dist/jsonselect.min.js.tmp %__nodejs build/post-compile.js dist/jsonselect.min.js.tmp > dist/jsonselect.min.js popd mv src src.complete mkdir src cp src.complete/dist/*.js src/ %install mkdir -p %{buildroot}%{nodejs_sitelib}/JSONSelect cp -pr package.json src/ \ %{buildroot}%{nodejs_sitelib}/JSONSelect %nodejs_symlink_deps %if 0%{?enable_tests} %check %nodejs_symlink_deps --check %__nodejs src.complete/test/run.js %endif %files %{!?_licensedir:%global license %doc} %doc *.md %license LICENSE %{nodejs_sitelib}/JSONSelect %changelog * Thu Aug 20 2020 yaokai <yaokai13@huawei.com> - 0.4.0-1 - Package init
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2