]> git.pld-linux.org Git - packages/nano.git/blame - nano.spec
- 2.0.3
[packages/nano.git] / nano.spec
CommitLineData
c702279a 1Summary: nano - Nano's ANOther editor, an enhanced free Pico clone
253774de 2Summary(pl.UTF-8): nano - jeszcze jeden edytor, darmowy, rozbudowany klon Pico
73c55e77 3Name: nano
5c983de7 4Version: 2.0.3
4e9c8c34 5Release: 1
f48c226d 6License: GPL v2
73c55e77 7Group: Applications/Editors
c702279a 8Source0: http://www.nano-editor.org/dist/v2.0/%{name}-%{version}.tar.gz
5c983de7 9# Source0-md5: b8e2c1450b36d21f9a82509da3e4d9b1
663d5965 10Source1: %{name}.desktop
8aba7ac1 11Source2: %{name}.png
12Patch0: %{name}-info.patch
388a4e07 13Patch1: %{name}-ncurses-ncurses.h.patch
9d8efbf5 14URL: http://www.nano-editor.org/
70f31c9e 15BuildRequires: autoconf
16BuildRequires: automake
2c2bf79b 17BuildRequires: gettext-devel
5afac49b 18BuildRequires: glib-devel
73c55e77 19BuildRequires: ncurses-devel >= 5.0
c0a89782 20BuildRequires: texinfo
dc38c714 21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
73c55e77 22
23%description
c702279a 24nano (Nano's ANOther editor) is a small, free and friendly editor
25which aims to replace Pico, the default editor included in the
26non-free Pine package. Rather than just copying Pico's look and feel,
27nano also implements some missing (or disabled by default) features in
28Pico, such as "search and replace" and "go to line number".
73c55e77 29
e1d07199
JR
30%description -l pl.UTF-8
31nano to mały, otwarty i przyjazny edytor, którego celem jest
32zastąpienie Pico, standardowego edytora zawartego w niewolnym pakiecie
33Pine. Oprócz wyglądu oraz interfejsu, nano posiada kilka brakujących
34(lub wyłączonych standardowo) w Pico funkcji, takich jak: "znajdź i
35zastąp" lub "idź do wiersza numer".
5617a770 36
73c55e77 37%prep
38%setup -q
c702279a 39%patch0 -p1
40%patch1 -p2
1e1d3339 41
73c55e77 42%build
cb5d3d12 43%{__gettextize}
c702279a 44%{__aclocal} -I m4
ed992bca 45%{__autoconf}
388a4e07 46%{__autoheader}
ed992bca 47%{__automake}
c702279a 48%configure \
49 --enable-all
9605f910 50%{__make}
73c55e77 51
52%install
26732ec3 53rm -rf $RPM_BUILD_ROOT
d936a6d9 54install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
73c55e77 55
bed1b070
PG
56%{__make} install \
57 DESTDIR=$RPM_BUILD_ROOT
73c55e77 58
d936a6d9 59install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
8aba7ac1 60install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
663d5965 61
73c55e77 62%find_lang %{name}
63
927fe348
ER
64rm -f $RPM_BUILD_ROOT%{_infodir}/dir
65
26732ec3 66%clean
67rm -rf $RPM_BUILD_ROOT
73c55e77 68
c0a89782 69%post
70[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
71
72%postun
73[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
74
73c55e77 75%files -f %{name}.lang
76%defattr(644,root,root,755)
c702279a 77%doc AUTHORS BUGS ChangeLog NEWS README THANKS TODO UPGRADE doc/nanorc.sample doc/faq.html
73c55e77 78%attr(755,root,root) %{_bindir}/nano
d936a6d9 79%{_desktopdir}/nano.desktop
6447cc1f 80%{_mandir}/man[15]/*
c702279a 81%lang(fr) %{_mandir}/fr/man[15]/*
c0a89782 82%{_infodir}/*info*
8aba7ac1 83%{_pixmapsdir}/*
c702279a 84%{_datadir}/nano
This page took 0.130063 seconds and 4 git commands to generate.