]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blobdiff - nano/nano.nm
perl-XML-SAX-Base: New package.
[people/ms/ipfire-3.x.git] / nano / nano.nm
index 8a69aad69d0aea86e9a0d09ecc45bf9b82f06459..8d1c035f16ee64980cb61fd18d1b5a366f8b4a8e 100644 (file)
@@ -4,8 +4,10 @@
 ###############################################################################
 
 name       = nano
-version    = 2.3.0
-release    = 2
+mainversion    = 2.3
+subversion     = 2
+version    = %{mainversion}.%{subversion}
+release    = 1
 
 groups     = Application/Editors
 url        = http://www.nano-editor.org/
@@ -16,7 +18,7 @@ description
        GNU nano is a small and friendly text editor.
 end
 
-source_dl  =
+source_dl  = http://www.nano-editor.org/dist/v%{mainversion}/
 
 build
        requires
@@ -25,19 +27,26 @@ build
        end
 
        configure_options += \
-               --sysconfdir=/etc/nano \
                --enable-color \
                --enable-multibuffer \
                --enable-nanorc
 
        install_cmds
+               # Disable line wrapping.
+               sed -i doc/nanorc.sample \
+                       -e "s/# set nowrap/set nowrap/"
+
                install -v -m644 -D doc/nanorc.sample \
-                       %{BUILDROOT}/etc/nano/nanorc.sample
+                       %{BUILDROOT}%{sysconfdir}/nanorc
        end
 end
 
 packages
        package %{name}
+               configfiles
+                       %{sysconfdir}/nanorc
+               end
+       end
 
        package %{name}-debuginfo
                template DEBUGINFO