diff --git a/1.5.tar.gz b/1.5.tar.gz new file mode 100644 index 0000000..d2b3f0c Binary files /dev/null and b/1.5.tar.gz differ diff --git a/hexedit-1.2.13-config.patch b/hexedit-1.2.13-config.patch index 0421bcd..12ab85e 100644 --- a/hexedit-1.2.13-config.patch +++ b/hexedit-1.2.13-config.patch @@ -10,14 +10,3 @@ diff -up hexedit/Makefile-build.in~ hexedit/Makefile-build.in install -d -m 755 usr/man/man1 install -m 644 $(PRODUCT).1 usr/man/man1 tar cfz $(DYNAMICBIN) usr -diff -up hexedit/Makefile.in~ hexedit/Makefile.in ---- hexedit/Makefile.in~ 2010-02-04 17:20:52.000000000 +0200 -+++ hexedit/Makefile.in 2013-03-26 17:14:26.217769520 +0200 -@@ -42,6 +42,6 @@ distclean: clean - - install: $(PRODUCT) - $(INSTALL) -d -m 755 $(DESTDIR)$(bindir) -- $(INSTALL) -s -m 755 $(PRODUCT) $(DESTDIR)$(bindir) -+ $(INSTALL) -m 755 $(PRODUCT) $(DESTDIR)$(bindir) - $(INSTALL) -d -m 755 $(DESTDIR)$(mandir)/man1 - $(INSTALL) -m 644 $(PRODUCT).1 $(DESTDIR)$(mandir)/man1 diff --git a/hexedit-1.2.13.src.tgz b/hexedit-1.2.13.src.tgz deleted file mode 100644 index 35dc882..0000000 Binary files a/hexedit-1.2.13.src.tgz and /dev/null differ diff --git a/hexedit-1.5.patch b/hexedit-1.5.patch new file mode 100644 index 0000000..de3431e --- /dev/null +++ b/hexedit-1.5.patch @@ -0,0 +1,43 @@ +Author:Filip Januš +This patch fixs inconsistency between filename and configure.ac + +diff -ur hexedit-1.5/configure.ac hxpatch/configure.ac +--- hexedit-1.5/configure.ac 2020-08-28 11:51:07.000000000 +0200 ++++ hxpatch/configure.ac 2021-03-16 15:37:40.127591071 +0100 +@@ -14,7 +14,7 @@ + VERSION=TheVERSION + INCL=hexedit.h + SRCS="hexedit.c display.c mark.c page.c file.c interact.c misc.c search.c" +-OTHER="COPYING Changes TODO install-sh configure config.h.in hexedit.1 hexedit-TheVERSION.lsm Makefile.in configure.in Makefile-build.in" ++OTHER="COPYING Changes TODO install-sh configure config.h.in hexedit.1 hexedit.lsm Makefile.in configure.in Makefile-build.in" + AC_SUBST(PRODUCT) + AC_SUBST(VERSION) + AC_SUBST(INCL) +@@ -72,4 +72,4 @@ + #endif + ) + +-AC_OUTPUT(Makefile Makefile-build hexedit.1) ++AC_OUTPUT(Makefile Makefile-build hexedit.1 hexedit.lsm) +diff -ur hexedit-1.5/hexedit.lsm.in hxpatch/hexedit.lsm.in +--- hexedit-1.5/hexedit.lsm.in 2020-08-28 11:51:07.000000000 +0200 ++++ hxpatch/hexedit.lsm.in 2021-03-16 12:12:49.664995112 +0100 +@@ -1,6 +1,6 @@ + Begin3 + Title: hexedit +-Version: TheVERSION ++Version: @VERSION@ + Entered-date: 10SEP98 + Description: view and edit files in hexadecimal or in ASCII. + hexedit shows a file both in ASCII and in hexadecimal. +@@ -13,8 +13,8 @@ + Author: pixel@rigaux.org (Pixel) + Maintained-by: pixel@rigaux.org (Pixel) + Primary-site: sunsite.unc.edu /pub/Linux/utils/file/hex +- 39kB hexedit-VERSION.src.tgz +- 14kB hexedit-VERSION.bin.i386.dynamic.tgz ++ 39kB hexedit-@VERSION@.src.tgz ++ 14kB hexedit-@VERSION@.bin.i386.dynamic.tgz + Original-site: rigaux.org / + Platforms: Linux Unix SunOS Solaris SGI curses + Copying-policy: GPL diff --git a/hexedit.spec b/hexedit.spec index aed4886..01b32a6 100644 --- a/hexedit.spec +++ b/hexedit.spec @@ -1,14 +1,17 @@ Name: hexedit -Version: 1.2.13 -Release: 15 +Version: 1.5 +Release: 1 Summary: hexedit - view and edit files in hexadecimal or in ASCII. License: GPLv2+ URL: http://rigaux.org/hexedit.html -Source0: http://rigaux.org/%{name}-%{version}.src.tgz +Source: https://github.com/pixel/%{name}/archive/%{version}.tar.gz Patch0: hexedit-1.2.13-config.patch +Patch1: hexedit-1.5.patch + BuildRequires: gcc ncurses-devel +BuildRequires: autoconf %description hexedit shows a file both in ASCII and in hexadecimal. The file can be a device as @@ -17,9 +20,10 @@ the file is read a piece at a time. You can modify the file and search through i %package_help %prep -%autosetup -n %{name} -p1 +%autosetup -n %{name}-%{version} -p1 %build +./autogen.sh %configure %make_build @@ -37,7 +41,7 @@ the file is read a piece at a time. You can modify the file and search through i %postun %files -%doc %{name}-%{version}.lsm Changes +%doc %{name}.lsm Changes %license COPYING %{_bindir}/hexedit @@ -45,5 +49,8 @@ the file is read a piece at a time. You can modify the file and search through i %{_mandir}/man1/hexedit.1* %changelog +* Wed Jun 22 2022 dillon chen - 1.5-1 +- update to 1.5 + * Fri Oct 11 2019 openEuler Buildteam - 1.2.13-15 - Package init.