From 808c739184ea684d25b02284b8191a30bbd0ef99 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 25 Jul 2024 11:00:01 +0000 Subject: automatic import of nano --- nano.spec | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/nano.spec b/nano.spec index be8d88c..d31b6ba 100644 --- a/nano.spec +++ b/nano.spec @@ -6,8 +6,9 @@ License: GPL-3.0-or-later URL: https://www.nano-editor.org Source0: https://www.nano-editor.org/dist/v8/%{name}-%{version}.tar.xz -BuildRequires: file-devel gettext-devel gcc ncurses-devel sed texinfo groff -Conflicts: filesystem < 3 +BuildRequires: file-devel gettext-devel gcc sed texinfo groff +BuildRequires: pkgconfig(ncursesw) +Conflicts: filesystem < 3 %description Nano is a tiny GNU editor @@ -18,9 +19,6 @@ Nano is a tiny GNU editor %autosetup -p1 %build -install -d build -cd build -%global _configure ../configure %configure %make_build @@ -29,12 +27,12 @@ sed -e 's/^#.*set speller.*$/set speller "hunspell"/' \ doc/sample.nanorc >> ./nanorc %install -%make_install -C build +%make_install rm -rf %{buildroot}%{_infodir}/dir rm -rf %{buildroot}%{_docdir}/nano/{nano,nano.1,nanorc.5,rnano.1}.html install -d %{buildroot}%{_sysconfdir} -install -m 0644 build/nanorc %{buildroot}%{_sysconfdir}/nanorc +install -m 0644 nanorc %{buildroot}%{_sysconfdir}/nanorc mv %{buildroot}%{_datadir}/nano/extra/* %{buildroot}%{_datadir}/nano rm -rf %{buildroot}%{_datadir}/nano/extra -- cgit v1.2.3