加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
tree.spec 1.88 KB
一键复制 编辑 原始数据 按行查看 历史
duan_pj 提交于 2022-08-01 10:01 . update tree.spec.
Name: tree
Version: 1.8.0
Release: 3
Summary: Tree file viewer tool
License: GPLv2+
URL: http://mama.indstate.edu/users/ice/tree/
Source0: ftp://mama.indstate.edu/linux/tree/%{name}-%{version}.tgz
BuildRequires: gcc
# Document --du and --prune options in help output.
Patch0: 0000-Fix-tree-args-option-displayed-incomplete.patch
%description
Tree is a recursive directory listing command that produces a depth indented
listing of files, which is colorized ala dircolors if the LS_COLORS environment
variable is set and output is to tty.
%package help
Summary: Including man files for tree
Requires: man
%description help
This contains man files for the using of tree.
%prep
%autosetup -n %{name}-%{version} -p1
#fix non-ASCII characters abnormal display
sed -e 's/LINUX/__linux__/' -i tree.c
%build
%make_build CFLAGS="$RPM_OPT_FLAGS $(getconf LFS_CFLAGS)" LDFLAGS="$RPM_LD_FLAGS"
%install
install -D -m 755 tree $RPM_BUILD_ROOT%{_bindir}/tree
install -D -m 644 doc/tree.1 $RPM_BUILD_ROOT%{_mandir}/man1/tree.1
%files
%license LICENSE
%doc README CHANGES
%{_bindir}/tree
%files help
%{_mandir}/man1/*
%changelog
* Tue Jul 12 2022 xueyamao <xueyamao@kylinos.cn> - 1.8.0-3
- DESC: Document --du and --prune options in help output
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 1.8.0-2
- DESC: delete -S git from %autosetup, and delete BuildRequires git
* Thu Jul 16 2020 zhangyouming <zhangyouming4@huawei.com> - 1.8.0-1
upgrade package from 1.7.0 to 1.8.0
* Wed Jan 8 2020 openEuler BuildTeam <buildteam@openeuler.org> - 1.7.0-18
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:Repackage
* Wed Aug 21 2019 zhanghaibo <ted.zhang@huawei.com> - 1.7.0-17
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:openEuler Debranding
* Tue Aug 20 2019 huangzheng <huangzheng22@huawei.com> - 1.7.0-16
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:rename patches
- Package init test
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化