]>
Commit | Line | Data |
---|---|---|
73c55e77 | 1 | Summary: nano (Nano's ANOther editor) |
2 | Name: nano | |
3 | Version: 0.8.9 | |
4 | Release: 1 | |
5 | License: GPL | |
6 | Group: Applications/Editors | |
7 | Group(pl): Aplikacje/Edytory | |
8 | Source0: http://www.asty.org/nano/dist/%{name}-%{version}.tar.gz | |
9 | URL: http://www.asty.org/nano/ | |
10 | BuildRequires: ncurses-devel >= 5.0 | |
11 | BuildRequires: gettext-devel | |
12 | BuildRoot: /tmp/%{name}-%{version}-root | |
13 | ||
14 | %description | |
15 | nano (Nano's ANOther editor) is the editor formerly known as TIP (TIP Isn't | |
16 | Pico). It aims to emulate Pico as closely as possible while also offering a | |
17 | few enhancements. %Prep | |
18 | ||
19 | %prep | |
20 | %setup -q | |
21 | ||
22 | %build | |
23 | gettextize --copy --force | |
24 | LDFLAGS="-s" | |
25 | CFLAGS="$RPM_OPT_FLAGS -I/usr/include/ncurses" | |
26 | export LDFLAGS CFLAGS | |
27 | %configure | |
26732ec3 | 28 | make |
73c55e77 | 29 | |
30 | %install | |
26732ec3 | 31 | rm -rf $RPM_BUILD_ROOT |
73c55e77 | 32 | |
33 | make install DESTDIR=$RPM_BUILD_ROOT | |
34 | ||
35 | gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/* \ | |
36 | README ChangeLog AUTHORS NEWS TODO | |
37 | ||
38 | %find_lang %{name} | |
39 | ||
26732ec3 | 40 | %clean |
41 | rm -rf $RPM_BUILD_ROOT | |
73c55e77 | 42 | |
43 | %files -f %{name}.lang | |
44 | %defattr(644,root,root,755) | |
45 | %doc *.gz | |
46 | %attr(755,root,root) %{_bindir}/nano | |
47 | %{_mandir}/man1/* |