SHA256
1
0
forked from pool/nano

Accepting request 49876 from editors

checked in (request 49876)

OBS-URL: https://build.opensuse.org/request/show/49876
OBS-URL: https://build.opensuse.org/package/show/editors/nano?expand=0&rev=14
This commit is contained in:
OBS User autobuild
2010-10-06 20:40:38 +00:00
committed by Git OBS Bridge
parent 9438255b45
commit d4adaff616
5 changed files with 19 additions and 64 deletions

View File

@@ -1,5 +1,5 @@
#
# spec file for package nano (Version 2.2.4)
# spec file for package nano (Version 2.2.2)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -18,28 +18,26 @@
# norootforbuild
%define nano_extraver %{nil}
Name: nano
BuildRequires: ncurses-devel
Url: http://www.nano-editor.org/
License: GPLv3+
Group: Productivity/Editors/Other
AutoReqProv: on
Summary: Pico Editor Clone with Enhancements
Version: 2.2.5
Version: 2.2.2
Release: 1
# http://www.nano-editor.org/dist/v2.2/nano-%{version}%{nano_extraver}.tar.gz
Source: %{name}-%{version}%{nano_extraver}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires(post): %install_info_prereq
Requires(postun): %install_info_prereq
Patch: nano-no-build-date.patch
PreReq: %install_info_prereq
%description
GNU nano is a small and friendly text editor. It aims to emulate the
Pico text editor while also offering a few enhancements.
Authors:
--------
Chris Allegretta <chrisa@asty.org>
@@ -50,41 +48,39 @@ Authors:
Rocco Corsi <rocco.corsi@sympatico.ca>
David Benbennick <dbenbenn@math.cornell.edu>
%lang_package
%prep
%setup -q -n "%{name}-%{version}%{nano_extraver}"
%patch
%setup -q -n %{name}-%{version}%{nano_extraver}
%build
%configure --disable-rpath --enable-utf8
%__make %{?_smp_mflags}
%install
%__make install DESTDIR="%{buildroot}"
%__make install DESTDIR=$RPM_BUILD_ROOT
%find_lang %{name} --with-man --all-name
%check
%__make check
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%__rm -rf $RPM_BUILD_ROOT
%post
%install_info --info-dir=%_infodir %_infodir/%name.info%{ext_info}
%install_info --info-dir=%_infodir %_infodir/%name.info.gz
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%files
%defattr(-, root, root)
%doc AUTHORS BUGS COPYING ChangeLog NEWS README THANKS TODO UPGRADE
%dir %{_mandir}/fr
%{_bindir}/nano
%{_bindir}/rnano
%{_mandir}/man?/*.*
%{_bindir}/*
%{_infodir}/*.gz
%{_datadir}/nano
%doc %{_infodir}/nano.info%{ext_info}
%doc %{_mandir}/man1/nano.1%{ext_man}
%doc %{_mandir}/man1/rnano.1%{ext_man}
%doc %{_mandir}/man5/nanorc.5%{ext_man}
%files lang -f %{name}.lang