This repository has been archived on 2024-03-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
rpmbuild/bvi/bvi-1.3.1-1.spec
2024-03-20 09:19:01 -05:00

57 lines
1.3 KiB
RPMSpec

%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