diff --git a/.cvsignore b/.cvsignore index 2269733..d6e9123 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -nano-1.3.12.tar.gz +nano-2.0.3.tar.gz diff --git a/nano.spec b/nano.spec index 4b6e2ec..f2c7d7b 100644 --- a/nano.spec +++ b/nano.spec @@ -1,14 +1,15 @@ Summary: A small text editor Name: nano -Version: 1.3.12 -Release: 1.1 +Version: 2.0.3 +Release: 1%{?dist} License: GPL Group: Applications/Editors URL: http://www.nano-editor.org Source: http://www.nano-editor.org/dist/v1.3/%{name}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: ncurses-devel, autoconf, gettext-devel, groff -Prereq: /sbin/install-info +Requires(post): /sbin/install-info +Requires(preun): /sbin/install-info %description GNU nano is a small and friendly text editor. @@ -20,7 +21,6 @@ iconv -f iso-8859-1 -t utf-8 -o nanorc.5.tmp doc/man/fr/nano.1 && mv nanorc.5.tm %build %configure --enable-all - make %install @@ -33,9 +33,13 @@ rm -f %{buildroot}%{_infodir}/dir %post /sbin/install-info %{_infodir}/%{name}.info.gz %{_infodir}/dir +exit 0 -%postun -/sbin/install-info --delete %{_infodir}/%{name}.info.gz %{_infodir}/dir +%preun +if [ $1 -eq 0 ]; then + /sbin/install-info --delete %{_infodir}/%{name}.info.gz %{_infodir}/dir +fi +exit 0 %clean rm -rf %{buildroot} @@ -52,6 +56,10 @@ rm -rf %{buildroot} %{_datadir}/nano %changelog +* Mon Feb 05 2007 Florian La Roche - 2.0.3-1 +- update to 2.0.3 +- update spec file syntax, fix scripts rh#220527 + * Wed Jul 12 2006 Jesse Keating - 1.3.12-1.1 - rebuild diff --git a/sources b/sources index 8ee268d..ceffa93 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -1450892aac7ae31d00817d42636d9a0d nano-1.3.12.tar.gz +b8e2c1450b36d21f9a82509da3e4d9b1 nano-2.0.3.tar.gz