From: David Lawrence Ramsey Date: Sun, 5 Nov 2006 03:44:41 +0000 (+0000) Subject: update nano.spec.in for newer RPM-based distributions, adapted from the X-Git-Tag: v2.0.0~4 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=6b9e7cf5be0c14f7899b9d32f66118a8a6bac137;p=nano.git update nano.spec.in for newer RPM-based distributions, adapted from the nano 1.3.12-1.1.spec file in Fedora Rawhide git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3929 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index 2f1d6f6a..724874cd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,7 +6,11 @@ CVS code - (Donnie Berkholz, minor tweaks by DLR) - AUTHORS: - Update for the 2.0 branch of nano. (DLR) -- nano.spec.in, doc/faq.html: +- nano.spec.in: + - Update links for the 2.0 branch of nano. (DLR) + - Update for newer RPM-based distributions. (DLR, adapted from + the nano 1.3.12-1.1.spec file in Fedora Rawhide) +- doc/faq.html: - Update links for the 2.0 branch of nano. (DLR) - doc/nano.1, doc/nanorc.5, doc/rnano.1: - Add minor wording fixes. (DLR) diff --git a/nano.spec.in b/nano.spec.in index 14ea8618..8a34fc38 100644 --- a/nano.spec.in +++ b/nano.spec.in @@ -1,32 +1,32 @@ %define name @PACKAGE@ -%define ver @VERSION@ -%define rel 1 +%define version @VERSION@ +%define release 1 Summary : Pico editor clone with enhancements Name : %{name} -Version : %{ver} -Release : %{rel} -Copyright : GPL -Group : Console/Editors +Version : %{version} +Release : %{release} +License : GPL +Group : Applications/Editors URL : http://www.nano-editor.org/ -Source : http://www.nano-editor.org/dist/v2.0/%{name}-%{ver}.tar.gz -BuildRoot : /var/tmp/%{name}-buildroot -Requires : ncurses +Source : http://www.nano-editor.org/dist/v2.0/%{name}-%{version}.tar.gz +BuildRoot : %{_tmppath}/%{name}-%{version}-root +BuildRequires : autoconf, gettext-devel, groff, ncurses-devel %description -GNU nano is a small and friendly text editor. It aims to emulate the Pico -text editor while also offering a few enhancements. +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 -make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" +make %install -rm -rf "$RPM_BUILD_ROOT" -make DESTDIR="$RPM_BUILD_ROOT" install +rm -rf %{buildroot} +make DESTDIR="%{buildroot}" install %files %defattr(-,root,root)