OpenSolaris Source Juicer



nano.spec

#
# spec file for package: nano
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# includes module(s): nano
#

%include Solaris.inc

Name:		nano
Summary:      	GNU nano text editor
Version:       	2.0.9
License:	GPLv2
Url: 		http://www.nano-editor.org
Source:	 	http://www.nano-editor.org/dist/v2.0/%{name}-%{version}.tar.gz
Group:		Editor
Distribution:   OpenSolaris
Vendor:		OpenSolaris Community

BuildRoot:      %{_tmppath}/%{name}-%{version}-build
SUNW_Basedir:   %{_basedir}
SUNW_Copyright: %{name}.copyright
%include default-depend.inc

# OpenSolaris IPS Manifest Fields
Meta(info.upstream):	 	Chris Allegretta 
Meta(info.maintainer):	 	Luis de Bethencourt 
Meta(info.repository_url):	svn://svn.sv.gnu.org/nano/trunk/nano/

%description
GNU nano is an effort to provide a Pico-like editor, but also includes some features that 
were missing in the original, such as 'search and replace', 'goto line' or internationalization 
support.

%prep
rm -rf %name-%version
%setup -q -n nano-%version

%build
export CFLAGS="%optflags"
export LDFLAGS="%{_ldflags}"
./configure --prefix=%{_prefix}			\
	    --bindir=%{_bindir}			\
	    --mandir=%{_mandir}                 \
            --infodir=%{_infodir}		\
            --sysconfdir=%{_sysconfdir}		\
            --enable-all
make

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT%{_infodir}/dir

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr (-, root, bin)
%dir %attr (0755, root, bin) %{_bindir}
%{_bindir}/*
%{_infodir}/*
%dir %attr(0755, root, sys) %{_datadir}
%dir %attr(0755, root, bin) %{_mandir}
%dir %attr(0755, root, bin) %{_mandir}/*
%{_mandir}/*/*

%changelog
* Thu Feb  6 2009 - bethencourt _at_ gmail _dot_ com
- IPS friendly
* Thu Oct 23 2008 - andras _dot_ barna _at_ gmail _dot_ com
- new version, add --enable-all, add SFEncursesw for utf-8
* Wed Jul  5 2006 - laca _at_ sun _dot_ com
- delete -share subpkg
- update file attributes
* Fri Feb  3 2006 - mike kiedrowski (lakeside-AT-cybrzn-DOT-com)
- Initial spec