Probably I need more evaluations from the point of curses i18n.

--- SUNWnano.spec.orig  2008-05-22 11:00:11.906691000 +0900
+++ SUNWnano.spec       2008-05-22 11:13:11.191851000 +0900
@@ -16,6 +16,7 @@
  SUNW_Copyright:       %{name}.copyright
  URL:          http://www.nano-editor.org
  BuildRoot:    %{_tmppath}/%{name}-%{version}-build
+SUNW_BaseDir: %{_basedir}
  %include default-depend.inc

  %description
@@ -23,7 +24,7 @@
  Pico text editor while also offering a few enhancements.

  %prep
-%setup -q
+%setup -q -n nano-%version

  %build
  ./configure --enable-all --prefix=%{_prefix} --exec-prefix=%{_prefix}
@@ -41,6 +42,7 @@
  %dir %attr(0755, root, bin) %{_mandir}
  %dir %attr(0755, root, bin) %{_mandir}/*
  %{_mandir}/*/*
+%dir %attr (0755, root, sys) %{_datadir}
  %dir %attr (0755, root, sys) %{_datadir}/nano
  %{_datadir}/nano/*


Luis de Bethencourt-san wrote (05/20/08 06:56 PM):
> #
> # 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
> 


Reply via email to