File tree.spec of Package tree
#
# spec file for package tree
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: tree
Summary: File listing as a tree
Version: 1.6.0
Release: 1
License: GPL-2.0+
Group: Productivity/File utilities
Url: http://mama.indstate.edu/users/ice/tree/
Source0: %{name}-%{version}.tar.bz2
Patch0: %{name}-dontstrip.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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.
%prep
%setup -n %{name}-%{version}
%patch0
%build
%{__make} OPTFLAGS="$RPM_OPT_FLAGS" CC="%{__cc}"
%install
%{__mkdir_p} $RPM_BUILD_ROOT%{_bindir}
%{__mkdir_p} $RPM_BUILD_ROOT%{_mandir}/man1
%{__install} -m 644 doc/%{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1
%{__install} -m 755 %{name} $RPM_BUILD_ROOT%{_bindir}
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc CHANGES LICENSE README
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.gz
%changelog