nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nano-devel] Spec file for devel nano


From: Brett
Subject: [Nano-devel] Spec file for devel nano
Date: Wed, 6 Mar 2002 12:33:59 +1100 (EST)

Hey,

Because I wanted to run the devel series of nano on my work network, I 
updated the spec file, and incorporated it into the distribution.  Well, 
to be honest, I rewrote the spec file from scratch.  It was showing its 
age :)  This new one is designed to be _very_ low maintenance.  You 
shouldn't really ever have to edit it.  The version/source location is 
updated at build, and after make dist, the rpms can be built by just `rpm 
-ta nano-1.1.7.tar.gz` on the tarball.  Very convenient.  It doesn't need 
to be edited when new translations are added.

Anyway, please consider adding this, and even backporting to replace the 
spec file in the 1.0 series.

thanks,

        / Brett

diff -ruN nano.orig/Makefile.am nano/Makefile.am
--- nano.orig/Makefile.am       Wed Mar  6 04:58:34 2002
+++ nano/Makefile.am    Wed Mar  6 11:23:43 2002
@@ -25,7 +25,7 @@

 EXTRA_DIST =   ABOUT-NLS AUTHORS BUGS COPYING ChangeLog INSTALL NEWS \
                README THANKS TODO install-sh missing mkinstalldirs \
-               nano.1 nano.1.html faq.html nanorc.sample
+               nano.1 nano.1.html faq.html nanorc.sample nano.spec

 SUBDIRS = po intl m4

diff -ruN nano.orig/configure.ac nano/configure.ac
--- nano.orig/configure.ac      Wed Mar  6 10:49:14 2002
+++ nano/configure.ac   Wed Mar  6 11:52:07 2002
@@ -309,5 +309,5 @@
 dnl i18n stuff - pretty incomplete for now
 NANO_AM_GNU_GETTEXT

-AC_CONFIG_FILES([Makefile intl/Makefile m4/Makefile po/Makefile.in])
+AC_CONFIG_FILES([Makefile intl/Makefile m4/Makefile po/Makefile.in nano.spec])
 AC_OUTPUT
diff -ruN nano.orig/nano.spec.in nano/nano.spec.in
--- nano.orig/nano.spec.in      Thu Jan  1 10:00:00 1970
+++ nano/nano.spec.in   Wed Mar  6 11:40:48 2002
@@ -0,0 +1,40 @@
+%define name   @PACKAGE@
+%define ver    @VERSION@
+%define rel    1
+
+Summary        : Pico editor clone with enhancements
+Name           : %{name}
+Version        : %{ver}
+Release        : %{rel}
+Copyright      : GPL
+Group          : Console/Editors
+Source         : 
http://www.nano-editor.org/dist/v1.1/%{name}/%{name}-%{ver}.tar.gz
+BuildRoot      : /var/tmp/%{name}-buildroot
+Requires       : ncurses
+
+%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-extra
+make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
+
+%install
+rm -rf "$RPM_BUILD_ROOT"
+make DESTDIR="$RPM_BUILD_ROOT" install
+
+%files
+%defattr(-,root,root)
+%doc AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README THANKS TODO 
nanorc.sample
+%{_bindir}/nano
+%{_mandir}/*/*
+%{_datadir}/locale/*/LC_MESSAGES/nano.mo
+%{_infodir}/nano.info*
+
+%changelog
+* Tue Mar 06 2002 Brett Pemberton <address@hidden>
+- Initial spec-file





reply via email to

[Prev in Thread] Current Thread [Next in Thread]