File tree.spec of Package tree

#
# spec file for package tree (Version 1.5.2.2)
#
# Copyright (c) 2010 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
License:        GPLv2+
Group:          Productivity/File utilities
Url:            http://mama.indstate.edu/users/ice/tree/
Summary:        File listing as a tree
Version:        1.5.2.2
Release:        2.<RELEASE2>
Source0:        %name-%version.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Patch1:         tree-dontstrip.diff

%description
A tree-like directory listing program with dircolors support

%prep
%setup -n %name-%version
%patch1 -p1

%build
make OPTFLAGS="$RPM_OPT_FLAGS"

%install
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
install -m 644 man/tree.1 $RPM_BUILD_ROOT%{_mandir}/man1
install -m 755 tree $RPM_BUILD_ROOT%{_bindir}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_bindir}/tree
%{_mandir}/man1/tree.1*
%doc README LICENSE

%changelog
openSUSE Build Service is sponsored by