hexedit/hexedit.spec
李恬 e70cd69b96 fix build warnings: patchN is deprecated, use patch N (or %patch -P N)
(cherry picked from commit 1007b0cabdf4c77b54e10821be02f0b159a30e7b)
2024-12-17 11:54:23 +08:00

60 lines
1.3 KiB
RPMSpec

Name: hexedit
Version: 1.6
Release: 2
Summary: hexedit - view and edit files in hexadecimal or in ASCII.
License: GPLv2+
URL: http://rigaux.org/hexedit.html
Source: https://github.com/pixel/%{name}/archive/%{name}-%{version}.tar.gz
Patch1: hexedit-1.2.13-config.patch
Patch2: hexedit-1.6-fix-lsm.patch
BuildRequires: gcc ncurses-devel
BuildRequires: autoconf make
%description
hexedit shows a file both in ASCII and in hexadecimal. The file can be a device as
the file is read a piece at a time. You can modify the file and search through it.
%package_help
%prep
%forgesetup
%patch 1 -p1 -b .config
%patch 2 -p1
%build
./autogen.sh
%configure
%make_build
%install
#%make_install INSTALL='install -p'
make install \
mandir=$RPM_BUILD_ROOT%{_mandir} \
bindir=$RPM_BUILD_ROOT%{_bindir} \
INSTALL='install -p'
%files
%doc %{name}.lsm Changes
%license COPYING
%{_bindir}/hexedit
%files help
%{_mandir}/man1/hexedit.1*
%changelog
* Mon Dec 16 2024 litian <dev11105@linx-info.com> - 1.6-2
- fix %patchN is deprecated warning
* Fri Feb 17 2023 li-long315 <lilong@kylinos.cn> - 1.6.1
- Upgrade to 1.6
* Wed Jun 22 2022 dillon chen <dillon.chen@gmail.com> - 1.5-1
- update to 1.5
* Fri Oct 11 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.2.13-15
- Package init.