build out of source tree

This commit is contained in:
Kamil Dudka 2016-08-11 09:51:51 +02:00
parent ccead372a9
commit 6a83a9dd99

View File

@ -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 <kdudka@redhat.com> - 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