nano.spec.in 1.25 KB
Newer Older
1
%define name	@PACKAGE@
2
3
%define version	@VERSION@
%define release	1
4
5

Name		: %{name}
6
7
Version		: %{version}
Release		: %{release}
8
9
Summary		: a user-friendly editor, a Pico clone with enhancements

10
License		: GPLv3+
11
Group		: Applications/Editors
David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
12
URL		: http://www.nano-editor.org/
13
14
Source		: http://www.nano-editor.org/dist/v2.4/%{name}-%{version}.tar.gz

15
BuildRoot	: %{_tmppath}/%{name}-%{version}-root
16
BuildRequires	: autoconf, automake, gettext-devel, ncurses-devel, texinfo
17
18
Requires(post)	: info
Requires(preun)	: info
19
20

%description
21
GNU nano is a small and friendly text editor.  It aims to emulate the
22
Pico text editor while also offering several enhancements.
23
24
25
26
27

%prep
%setup -q

%build
28
%configure
29
make
30
31

%install
32
make DESTDIR="%{buildroot}" install
33
34
35
36
37
38
39
40
41
42
#ln -s nano %{buildroot}/%{_bindir}/pico
rm -f %{buildroot}/%{_infodir}/dir

%post
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :

%preun
if [ $1 = 0 ] ; then
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
fi
43
44
45

%files
%defattr(-,root,root)
46
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS TODO doc/faq.html doc/nanorc.sample
47
%{_bindir}/*
48
%{_docdir}/nano/*
49
50
51
%{_mandir}/man*/*
%{_mandir}/fr/man*/*
%{_infodir}/nano.info*
52
%{_datadir}/locale/*/LC_MESSAGES/nano.mo
53
%{_datadir}/nano/*