Imported Upstream version 2.3.1
[platform/upstream/nano.git] / nano.spec.in
1 %define name    @PACKAGE@
2 %define version @VERSION@
3 %define release 1
4
5 Summary : Pico editor clone with enhancements
6 Name            : %{name}
7 Version         : %{version}
8 Release         : %{release}
9 License         : GPL
10 Group           : Applications/Editors
11 URL             : http://www.nano-editor.org/
12 Source          : http://www.nano-editor.org/dist/v2.0/%{name}-%{version}.tar.gz
13 BuildRoot       : %{_tmppath}/%{name}-%{version}-root
14 BuildRequires   : autoconf, automake, gettext-devel, ncurses-devel
15
16 %description
17 GNU nano is a small and friendly text editor.  It aims to emulate the
18 Pico text editor while also offering a few enhancements.
19
20 %prep
21 %setup -q
22
23 %build
24 %configure --enable-all
25 make
26
27 %install
28 rm -rf %{buildroot}
29 make DESTDIR="%{buildroot}" install
30
31 %files
32 %defattr(-,root,root)
33 %doc AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README THANKS TODO doc/faq.html doc/nanorc.sample
34 %{_bindir}/*
35 %{_mandir}/man*/*
36 %{_mandir}/fr/man*/*
37 %{_infodir}/nano.info*
38 %{_datadir}/locale/*/LC_MESSAGES/nano.mo
39 %{_datadir}/nano/*