!2 update tar.gz
From: @yang_yanchao Reviewed-by: @wangbin224 Signed-off-by: @wangbin224
This commit is contained in:
commit
e006a591c0
36
README.en.md
36
README.en.md
@ -1,36 +0,0 @@
|
||||
# libgmem
|
||||
|
||||
#### Description
|
||||
libgmem is the abstract layer of GMEM(Generalized Memory Management) user-mode interface, which encapsulates some memory characteristics and semantics of GMEM
|
||||
|
||||
#### Software Architecture
|
||||
Software architecture description
|
||||
|
||||
#### Installation
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Instructions
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Contribution
|
||||
|
||||
1. Fork the repository
|
||||
2. Create Feat_xxx branch
|
||||
3. Commit your code
|
||||
4. Create Pull Request
|
||||
|
||||
|
||||
#### Gitee Feature
|
||||
|
||||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
||||
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
||||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
||||
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
||||
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
||||
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
37
README.md
37
README.md
@ -1,37 +0,0 @@
|
||||
# libgmem
|
||||
|
||||
#### 介绍
|
||||
libgmem is the abstract layer of GMEM(Generalized Memory Management) user-mode interface, which encapsulates some memory characteristics and semantics of GMEM
|
||||
|
||||
#### 软件架构
|
||||
软件架构说明
|
||||
|
||||
|
||||
#### 安装教程
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 使用说明
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 参与贡献
|
||||
|
||||
1. Fork 本仓库
|
||||
2. 新建 Feat_xxx 分支
|
||||
3. 提交代码
|
||||
4. 新建 Pull Request
|
||||
|
||||
|
||||
#### 特技
|
||||
|
||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
||||
2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
|
||||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
|
||||
4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
|
||||
5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
||||
6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
Binary file not shown.
BIN
libgmem-v0.1.tar.gz
Normal file
BIN
libgmem-v0.1.tar.gz
Normal file
Binary file not shown.
48
libgmem.spec
48
libgmem.spec
@ -1,16 +1,13 @@
|
||||
Name: libgmem
|
||||
Version: 1.0
|
||||
Version: 0.1
|
||||
Release: 1
|
||||
Summary: Library of Generalized Memory Management
|
||||
License: MulanPSL-2.0
|
||||
URL: https://gitee.com/openeuler/libgmem
|
||||
Source0: https://github.com/GMEM-Team/libgmem/%{name}-%{version}.tar.gz
|
||||
Source0: https://gitee.com/openeuler/libgmem/repository/archive/%{name}-v%{version}.tar.gz
|
||||
|
||||
BuildRequires: autoconf automake libtool
|
||||
BuildRequires: gcc glibc-devel make
|
||||
#BuildRequires: Ascend-cann-toolkit
|
||||
|
||||
Requires: autoconf automake libtool gcc glibc-devel make
|
||||
|
||||
%description
|
||||
libgmem is the abstract layer of GMEM(Generalized Memory Management) user-mode interface,
|
||||
@ -21,45 +18,30 @@ Summary: Header files for libgmem development
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
The kmod-devel package provides header files used for loading or unloading
|
||||
kernel modules.
|
||||
The libgmem-devel package provides header files used for GMEM.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{name}-%{version}
|
||||
%autosetup -p1 -n %{name}-v%{version}
|
||||
|
||||
%build
|
||||
sh ./autogen.sh
|
||||
%configure --with-device=Ascend
|
||||
%make_build
|
||||
|
||||
%install
|
||||
#%make_install
|
||||
mkdir -p $RPM_BUILD_ROOT%{_includedir}/
|
||||
mkdir -p $RPM_BUILD_ROOT%{_usrsrc}/
|
||||
|
||||
install -m 0644 include/libgmem.h $RPM_BUILD_ROOT%{_includedir}/
|
||||
cp -r * $RPM_BUILD_ROOT%{_usrsrc}/
|
||||
%make_install
|
||||
%delete_la
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files
|
||||
#%{_libdir}/%{name}.so.*
|
||||
%{_usrsrc}/*
|
||||
%license License
|
||||
%{_libdir}/%{name}.so*
|
||||
|
||||
|
||||
%files devel
|
||||
#%{_libdir}/%{name}.so
|
||||
%{_includedir}/libgmem.h
|
||||
|
||||
%post
|
||||
cd %{_usrsrc}/
|
||||
sh ./autogen.sh
|
||||
./configure --with-device=Ascend
|
||||
make V=1
|
||||
make install
|
||||
/sbin/ldconfig
|
||||
cd -
|
||||
|
||||
%postun
|
||||
cd %{_usrsrc}/
|
||||
make uninstall
|
||||
/sbin/ldconfig
|
||||
cd -
|
||||
|
||||
%changelog
|
||||
* Sun Aug 13 2023 Yang Yanchao <yangyanchao6@huawei.com> - 1.0-1
|
||||
* Sun Aug 13 2023 Yang Yanchao <yangyanchao6@huawei.com> - 0.1-1
|
||||
- Init Package
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user