]> git.ipfire.org Git - people/ms/ipfire-3.x.git/commitdiff
nano: Disable the line wrapping.
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 8 Oct 2012 13:04:03 +0000 (13:04 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 8 Oct 2012 13:04:03 +0000 (13:04 +0000)
nano/nano.nm

index 8a69aad69d0aea86e9a0d09ecc45bf9b82f06459..86dd4131bab90f98ec870675a772d81b659bcb17 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = nano
 version    = 2.3.0
-release    = 2
+release    = 3
 
 groups     = Application/Editors
 url        = http://www.nano-editor.org/
@@ -25,19 +25,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