1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
Name: nano
Version: 8.1
Release: 1
Summary: Nano is a tiny GNU editor
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
%description
Nano is a tiny GNU editor
%package_help
%prep
%autosetup -p1
%build
install -d build
cd build
%global _configure ../configure
%configure
%make_build
sed -e 's/^#.*set speller.*$/set speller "hunspell"/' \
-e 's|^# \(include "/usr/share/nano/\*.nanorc"\)|\1|' \
doc/sample.nanorc >> ./nanorc
%install
%make_install -C build
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
mv %{buildroot}%{_datadir}/nano/extra/* %{buildroot}%{_datadir}/nano
rm -rf %{buildroot}%{_datadir}/nano/extra
%find_lang %{name}
%files -f %{name}.lang
%doc AUTHORS
%license COPYING
%{_bindir}/*
%config(noreplace) %{_sysconfdir}/nanorc
%{_datadir}/nano
%{_infodir}/nano.info*
%files help
%doc ChangeLog INSTALL NEWS README THANKS TODO
%doc build/doc/sample.nanorc
%doc doc/nano.html
%{_mandir}/man*/*
%{_defaultdocdir}/nano/faq.html
%changelog
* Thu Jul 25 2024 Funda Wang <fundawang@yeah.net> - 8.1-1
- Update to 8.1
* Mon Jun 17 2024 yaoxin <yao_xin001@hoperun.com> - 8.0-1
- Update to 8.0
* CVE-2024-5742: Avoid privilege escalations via symlink attacks
on emergency save file (boo#1226099)
* By default ^F is bound to starting a forward search, and ^B to
starting a backward search, while M-F and M-B repeat the search
in the corresponding direction. (See the documentation if you
want the old bindings back.)
* Command-line option --modernbindings (-/) makes ^Q quit, ^X cut,
^C copy, ^V paste, ^Z undo, ^Y redo, ^O open a file, ^W write a file,
^R replace, ^G find again, ^D find again backwards, ^A set the mark,
^T jump to a line, ^P show the position, and ^E execute.
* For easier access, M-" is bound to placing/removing an anchor,
and M-' to jumping to the next anchor.
* Thu Jun 13 2024 xuchenchen <xuchenchen@kylinos.cn> - 7.2-3
- Type:CVES
- ID:CVE-2024-5742
- SUG:NA
- DESC:fix CVE-2024-5742
* Mon May 15 2023 misaka00251 <liuxin@iscas.ac.cn> - 7.2-2
- Fix bug when build using rpmbuild
* Wed Apr 19 2023 xu_ping <707078654@qq.com> - 7.2-1
- Upgrade package to 7.2 version
* Mon Aug 02 2021 chenyanpanHW <chenyanpan@huawei.com> - 4.9.3-2
- DESC: delete -S git from %autosetup, and delete BuildRequires git
* Thu Sep 10 2020 baizhonggui <baizhonggui@huawei.com> - 4.9.3-1
- Modify source0
* Sat May 30 2020 SimpleUpdate Robot <tc@openeuler.org>
- Update to version 4.9.3
* Fri Jan 17 2020 Lei Zhang <ricky.z@huawei.com> - 4.5-2
- Remove useless nanorc config file
* Tue Nov 26 2019 openEuler Buildteam <buildteam@openeuler.org> - 4.5-1
- Package init
|