#
# spec file for package nano
#
# Copyright (c) 2008 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Owner: Luis de Bethencourt
#
%include Solaris.inc
Name: nano
License: GPL
Version: 2.0.7
Summary: GNU nano is a free replacement for Pico, the default Pine
editor.
Source: http://www.nano-editor.org/dist/v2.0/%{name}-%{version}.tar.gz
SUNW_Copyright: %{name}.copyright
URL: http://www.nano-editor.org
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%include default-depend.inc
Requires: SUNWcsl
Requires: SUNWcslr
Requires: SUNWlibms
%description
GNU nano is a small and friendly text editor. It aims to emulate the
Pico text editor while also offering a few enhancements.
%prep
%setup -q
%build
./configure --enable-all --prefix=%{_prefix} --exec-prefix=%{_prefix}
make
%install
rm -rf %{buildroot}
make DESTDIR="%{buildroot}" install
rm -rf %{buildroot}%{_datadir}/info
%files
%defattr (-, root, sys)
%dir %attr (0755, root, bin) %{_bindir}
%{_bindir}/*
%dir %attr(0755, root, bin) %{_mandir}
%dir %attr(0755, root, bin) %{_mandir}/*
%{_mandir}/*/*
%dir %attr (0755, root, sys) %{_datadir}/nano
%{_datadir}/nano/*
%changelog
* Mon May 12 2008 - luis.debethencourt at sun.com
- Initial version