Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > d1c3f3812ad193e545e25bbba92153a0 > files > 4

bvi-1.3.2-5mdv2010.1.src.rpm

Name: bvi
Version: 1.3.2
Release: %mkrel 5
Summary: A vi-like binary file editor
URL: http://bvi.sourceforge.net/
Source: bvi-%{version}.tar.bz2
Patch0: bvi-1.3.2-config.guess.patch.bz2
Patch1: bvi-1.3.2-mdv-fix-str-fmt.patch
Group: Editors
License: GPLv2+
BuildRequires: libncurses-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-root

%description
bvi is a display-oriented editor for binary files, based on the vi
text editor. If you are familiar with vi, just start the editor and
begin to edit! If you never heard about vi, maybe bvi is not the
best choice for you.

%prep
%setup -q
%patch0 -p1
%patch1 -p1 -b .strfmt

%build
%configure --libdir=%{_datadir}
make

%install
rm -rf %{buildroot}

mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_libdir}

install -s -m 755 bvi %{buildroot}%{_bindir}/bvi
install -s -m 755 bmore %{buildroot}%{_bindir}/bmore
install -m 644 bvi.1 %{buildroot}%{_mandir}/man1/bvi.1
install -m 644 bmore.1 %{buildroot}%{_mandir}/man1/bmore.1
install -m 644 bmore.help %{buildroot}%{_datadir}/bmore.help
ln -sf bvi %{buildroot}%{_bindir}/bview
ln -sf bvi %{buildroot}%{_bindir}/bvedit
echo ".so man1/bvi.1" > %{buildroot}%{_mandir}/man1/bview.1
echo ".so man1/bvi.1" > %{buildroot}%{_mandir}/man1/bvedit.1
chmod 644 README COPYING CHANGES CREDITS

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README COPYING CHANGES CREDITS
%{_bindir}/bvi
%{_bindir}/bmore
%{_bindir}/bview
%{_bindir}/bvedit
%{_mandir}/man1/bvi.1*
%{_mandir}/man1/bmore.1*
%{_mandir}/man1/bview.1*
%{_mandir}/man1/bvedit.1*
%{_datadir}/bmore.help



%changelog
* Sat Dec 12 2009 Jérôme Brenier <incubusss@mandriva.org> 1.3.2-5mdv2010.1
+ Revision: 477740
- fix str fmt
- fix license tag

* Wed Jul 23 2008 Thierry Vignaud <tvignaud@mandriva.com> 1.3.2-4mdv2009.0
+ Revision: 243376
- rebuild

* Wed Jan 02 2008 Olivier Blin <oblin@mandriva.com> 1.3.2-2mdv2008.1
+ Revision: 140691
- restore BuildRoot

  + Thierry Vignaud <tvignaud@mandriva.com>
    - kill re-definition of %%buildroot on Pixel's request
    - import bvi


* Tue Aug 01 2006 Lenny Cartier <lenny@mandriva.com> 1.3.2-2mdv2007.0
- rebuild

* Fri May  6 2005 Claudio Matsuoka <claudio@mandriva.com> 1.3.2-1mdk
- package creation