tree/tree.spec
eulerstorage b0b17c5169 Repackage
2020-01-08 15:44:53 +08:00

65 lines
1.4 KiB
RPMSpec

Name: tree
Version: 1.7.0
Release: 18
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 git
%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 -S git
#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
* 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