From 6a83a9dd99253eca21c79181088d9f6e834cef21 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Thu, 11 Aug 2016 09:51:51 +0200 Subject: [PATCH] build out of source tree --- nano.spec | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/nano.spec b/nano.spec index 21634aa..2c80ca8 100644 --- a/nano.spec +++ b/nano.spec @@ -35,12 +35,15 @@ GNU nano is a small and friendly text editor. touch -c aclocal.m4 config.h.in configure Makefile.in %build +mkdir build +cd build +ln -s ../configure %configure make %{?_smp_mflags} %install -make DESTDIR="%{buildroot}" install -#ln -s nano %{buildroot}%{_bindir}/pico +cd build +%make_install rm -f %{buildroot}%{_infodir}/dir cp %{SOURCE2} ./nanorc @@ -74,9 +77,9 @@ if [ $1 -eq 0 ]; then fi exit 0 -%files -f %{name}.lang +%files -f build/%{name}.lang %doc AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS TODO -%doc doc/nanorc.sample +%doc build/doc/nanorc.sample %doc doc/faq.html %{_bindir}/* %config(noreplace) %{_sysconfdir}/nanorc @@ -87,6 +90,7 @@ exit 0 %changelog * Thu Aug 11 2016 Kamil Dudka - 2.6.3-1 +- build out of source tree - do not recode man pages, they are UTF-8 encoded since v2.3.6 - new upstream release