]> git.pld-linux.org Git - packages/nano.git/blobdiff - nano.spec
- removed obsolete no patch, follow glibc 2.3.3 (no_NO -> nb_NO)
[packages/nano.git] / nano.spec
index 53243f4c697974deef4274c28ab65ba9655f3c83..2839a5a439972ef908b488b7d680a8f481b342c2 100644 (file)
--- a/nano.spec
+++ b/nano.spec
@@ -1,15 +1,23 @@
 Summary:       nano (Nano's ANOther editor)
+Summary(pl):   nano - jeszcze jeden edytor
 Name:          nano
-Version:       0.9.9
-Release:       1
+Version:       1.2.2
+Release:       4
 License:       GPL
 Group:         Applications/Editors
-Group(pt):     X11/Aplicações/Editores
-Group(pl):     Aplikacje/Edytory
-Source0:       http://www.asty.org/nano/dist/%{name}-%{version}.tar.gz
-URL:           http://www.asty.org/nano/
-BuildRequires: ncurses-devel >= 5.0
+Source0:       http://www.nano-editor.org/dist/v1.2/%{name}-%{version}.tar.gz
+# Source0-md5: 1c2663caa7d1ca4377a4a2ab61787689
+Source1:       %{name}.desktop
+Source2:       %{name}.png
+Patch0:                %{name}-info.patch
+Patch1:                %{name}-ncurses-ncurses.h.patch
+URL:           http://www.nano-editor.org/
+BuildRequires: autoconf
+BuildRequires: automake
 BuildRequires: gettext-devel
+BuildRequires: glib-devel
+BuildRequires: ncurses-devel >= 5.0
+BuildRequires: texinfo
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -17,32 +25,53 @@ nano (Nano's ANOther editor) is the editor formerly known as TIP (TIP
 Isn't Pico). It aims to emulate Pico as closely as possible while also
 offering a few enhancements.
 
+%description -l pl
+nano to edytor wcze¶niej znany jako TIP (Tip to nIe Pico). Jego celem
+jest emulowanie Pico tak dobrze jak to mo¿liwe, jednocze¶nie oferuj±c
+kilka rozszerzeñ.
+
 %prep
 %setup -q
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
 
 %build
-gettextize --copy --force
-LDFLAGS="-s"
-CFLAGS="$RPM_OPT_FLAGS -I/usr/include/ncurses"
-export LDFLAGS CFLAGS
+rm -f missing m4/*.m4
+%{__gettextize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
 %configure
-make
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
 
-make install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/* \
-       README ChangeLog AUTHORS NEWS TODO
+install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
+install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
 
 %find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+
+%postun
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc *.gz
+%doc README ChangeLog AUTHORS NEWS TODO
 %attr(755,root,root) %{_bindir}/nano
-%{_mandir}/man1/*
+%{_desktopdir}/nano.desktop
+%{_mandir}/man[15]/*
+%{_infodir}/*info*
+%{_pixmapsdir}/*
This page took 0.201712 seconds and 4 git commands to generate.