Projects
home:Eustace:branches:Eulaceura:Factory
ovirt-engine-api-explorer
_service:obs_scm:ovirt-engine-api-explorer.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:ovirt-engine-api-explorer.spec of Package ovirt-engine-api-explorer
%global tar_version 0.0.6 Name: ovirt-engine-api-explorer Summary: oVirt Engine API Explorer Version: 0.0.6 Release: 1 License: ASL 2.0 URL: http://www.ovirt.org Source: %{name}-%{tar_version}.tar.gz BuildArch: noarch BuildRequires: ovirt-engine-nodejs-modules >= 1.2 BuildRequires: ovirt-engine-yarn Requires: ovirt-engine >= 4.2 %description This package contains the oVirt Engine API explorer. %prep # Unpack the source: %setup -q -n %{name}-%{tar_version} %build # Make sure that we use our Node.js installation: . %{_datadir}/ovirt-engine-nodejs-modules/setup-env.sh # Verify that dependency versions (semver ranges) in package.json have # matching resolutions in the yarn.lock file: yarn check # Build the application: yarn build # Modify references to CDN with references to the files provided by ovirt-engine: sed -i \ -e 's|src=".*/jquery.min.js"|src="../theme/00-ovirt.brand/bundled/jquery/jquery.min.js"|' \ -e 's|src=".*/bootstrap.min.js"|src="../theme/00-ovirt.brand/bundled/bootstrap/js/bootstrap.min.js"|' \ -e 's|src=".*/patternfly.min.js"|src="../theme/00-ovirt.brand/bundled/patternfly/js/patternfly.min.js"|' \ -e 's|href=".*/patternfly.min.css"|href="../theme/00-ovirt.brand/bundled/patternfly/css/patternfly.min.css"|' \ -e 's|href=".*/patternfly-additions.min.css"|href="../theme/00-ovirt.brand/bundled/patternfly/css/patternfly-additions.min.css"|' \ build/index.html %install # Install the files: mkdir -p %{buildroot}%{_datadir}/%{name} cp -r build/* %{buildroot}%{_datadir}/%{name} # Create the engine configuration files that enables the application: mkdir -p "%{buildroot}%{_sysconfdir}/ovirt-engine/engine.conf.d" cat > "%{buildroot}%{_sysconfdir}/ovirt-engine/engine.conf.d/50-%{name}.conf" <<. ENGINE_API_EXPLORER_DIRECTORY="%{_datadir}/%{name}" . %files %config %{_sysconfdir}/ovirt-engine/engine.conf.d/50-%{name}.conf %doc README.adoc %license LICENSE.txt %{_datadir}/%{name} %changelog * Wed Jul 7 2021 kymayl<mayilin@kylinos.cn> - 0.0.6-1 - upgrade package * Tue Mar 3 2020 changjie.fu <changjie.fu@cs2c.com.cn> - 0.0.5 - Package Initialization
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