adding bvi 1.3.1-1

This commit is contained in:
tengel 2024-03-20 09:19:01 -05:00
parent f016d8a7d1
commit 6cb7c67b2c

57
bvi/bvi-1.3.1-1.spec Normal file
View file

@ -0,0 +1,57 @@
%define name bvi
%define version 1.3.1
%define release 1
%define bviroot %{_builddir}/%{name}-%{version}
Summary: Binary editor using vi commands
Name: %{name}
Version: %{version}
Release: %{release}
Group: Applications/Editors
Copyright: GPL
Vendor: Gerhard Buergmann <gerhard.buergmann@puon.at>
Packager: Troy Engel <tengel@sonic.net>
Source: %{name}-%{version}.src.tar.gz
URL: http://bvi.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
BVI is an editor for binary files using common vi - commands
and additional commands for binary search and substitution
%prep
%setup -q
%build
%configure
make
%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
make DESTDIR=%{buildroot} install
# make install makes hardlinks - we'll do it in post-install instead
rm -f %{buildroot}%{_bindir}/bview
rm -f %{buildroot}%{_bindir}/bvedit
%post
ln -sf %{_bindir}/bvi %{_bindir}/bview
ln -sf %{_bindir}/bvi %{_bindir}/bvedit
%postun
rm -f %{_bindir}/bview
rm -f %{_bindir}/bvedit
%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
[ "%{bviroot}" != "/" ] && rm -rf %{bviroot}
rm -f %{_builddir}/file.list.%{name}
%files
%attr(0644,root,root) %doc CHANGES COPYING CREDITS README html/
%attr(-,root,root) %{_bindir}/*
%attr(-,root,root) %{_mandir}/man1/*
%attr(-,root,root) %{_datadir}/bmore.help