Name:           objreloc
Version:        1.0.0
Release:        0
Summary:        Numa Aware Scheduling
License:        Mulan PSL v2
URL:            https://gitee.com/openeuler/native-turbo

Source0:        sysboost.tar.xz

BuildRequires: meson >= 0.49.2, clang >= 12.0.1
BuildRequires: make >= 4.0, bison >= 2.7, binutils >= 2.30-17, gcc >= 10.3.1
BuildRequires: ncurses-devel

%description
The package contains objreloc for relocations.

%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 SYSBOOST_DIR=$RPM_BUILD_DIR/src/gitee.com/%{name}

tar -Jxf $RPM_BUILD_SOURCE/sysboost.tar.xz

mv $RPM_BUILD_DIR/native-turbo/sysboost/src/objreloc/objreloc.sh $RPM_BUILD_DIR/native-turbo/sysboost/src/objreloc/objreloc

cd $RPM_BUILD_DIR/

%build

%install
mkdir -p $RPM_BUILD_ROOT/%{_bindir}

install -m 755 $RPM_BUILD_DIR/native-turbo/sysboost/src/objreloc/objreloc $RPM_BUILD_ROOT%{_bindir}/

%check

%files
%defattr(0755,root,root)
%{_bindir}/objreloc
%doc

%post

%changelog
* Mon May 8 2023 liutie <liutie4@huawei.com> - 1.0.0-0
- Type:enhancement
- ID:NA
- SUG:NA
- DESC: Independently generate the objreloc tool