Projects
home:Eustace:branches:Eulaceura:Factory
wisdom-advisor
_service:obs_scm:wisdom-advisor.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:wisdom-advisor.spec of Package wisdom-advisor
Name: wisdom-advisor Version: 1.2 Release: 1 Summary: Numa Aware Scheduling License: Mulan PSL v2 URL: https://gitee.com/openeuler/wisdom-advisor Source0: %{name}.tar.gz Source1: wisdomd.service Source2: wisdomd.sysconfig BuildRequires: gcc BuildRequires: golang BuildRequires: numactl-devel %description Wisdom-advisor can schedule works based on numa and resource utility information. %prep rm -rf src mkdir -p bin mkdir -p pkg mkdir -p src/gitee.com export RPM_BUILD_DIR=%_topdir/BUILD export RPM_BUILD_SOURCE=%_topdir/SOURCES export WISDOM_DIR=$RPM_BUILD_DIR/src/gitee.com/%{name} tar xvvf $RPM_BUILD_SOURCE/%{name}.tar.gz cp $RPM_BUILD_SOURCE/wisdomd.service $RPM_BUILD_DIR/ cp $RPM_BUILD_SOURCE/wisdomd.sysconfig $RPM_BUILD_DIR/ cd $RPM_BUILD_DIR/ %build rm -rf src/gitee.com/%{name} mv %{name} src/gitee.com/ cd src/gitee.com/%{name} export GO111MODULE=auto make %{?_smp_mflags} %install mkdir -p $RPM_BUILD_ROOT/%{_bindir} mkdir -p $RPM_BUILD_ROOT/usr/lib/systemd/system install -D -p -m 750 ./pkg/wisdomd $RPM_BUILD_ROOT/%{_bindir}/wisdomd install -D -p -m 750 ./pkg/wisdom $RPM_BUILD_ROOT/%{_bindir}/wisdom install -D -p -m 640 %{SOURCE1} $RPM_BUILD_ROOT/usr/lib/systemd/system/wisdomd.service install -D -p -m 640 %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/wisdomd %check cd src/gitee.com/%{name} make check %files %doc %{_bindir}/wisdomd %{_bindir}/wisdom /usr/lib/systemd/system/wisdomd.service %config(noreplace) /etc/sysconfig/wisdomd %post %systemd_post wisdomd.service %preun %systemd_preun wisdomd.service %postun %systemd_postun_with_restart wisdomd.service %changelog * Sat Aug 29 2020 MarsChan <chenmingmin@huawei.com> - 1.2.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