加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
hmdfs.spec 1.21 KB
一键复制 编辑 原始数据 按行查看 历史
天宇 提交于 2023-09-14 17:21 . init: add source tar, spec, patch.
%define hmdfs_dest_path /usr/lib/modules/%(rpm -aq kernel-devel | cut -d "-" -f 3,4)/hmdfs
Name: hmdfs
Version: 1.0.0
Release: 1%{?dist}
Summary: HMDFS is an overlay file system.
License: Apache License 2.0
URL: https://gitee.com/openharmony/kernel_linux_5.10/tree/OpenHarmony-3.2-Release/fs/hmdfs
Source0: https://gitee.com/src-openeuler/hmdfs/%{name}-%{version}.tar.gz
Patch0: 0001-add-makefile-used-on-openeuler.patch
Patch1: 0002-bugfix-null-pointer-in-memcpy.patch
BuildRequires: gcc, make, kernel-devel
%description
HMDFS is an overlay file system. Relying on the underlying file system, under the premise of networking, file exchanges across devices can be realized.
# Decompress source code package, make patches to the source code.
%prep
%setup -c
%patch0 -p1
%patch1 -p1
# make.
%build
make %{?_smp_mflags}
# install hmdfs's ko file to a certain path.
%install
install -d $RPM_BUILD_ROOT/%{hmdfs_dest_path}/
install -v %{name}.ko $RPM_BUILD_ROOT/%{hmdfs_dest_path}/
# copy ko file to the certain path on deployment environment.
%files
/%{hmdfs_dest_path}/*.ko
%changelog
* Thu Apr 27 2023 hepeng <hepeng68@huawei.com> - 1.0.0-1
- Package init
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化