commit 2efd0f2411f88d409224b19a05c448a7b78180fc Author: zhuchunyi Date: Wed Nov 6 19:32:58 2019 +0800 update code diff --git a/hexedit-1.2.13-config.patch b/hexedit-1.2.13-config.patch new file mode 100644 index 0000000..0421bcd --- /dev/null +++ b/hexedit-1.2.13-config.patch @@ -0,0 +1,23 @@ +diff -up hexedit/Makefile-build.in~ hexedit/Makefile-build.in +--- hexedit/Makefile-build.in~ 2008-11-07 17:50:57.000000000 +0200 ++++ hexedit/Makefile-build.in 2013-03-26 17:14:29.755829478 +0200 +@@ -23,7 +23,7 @@ FROMINFILES = hexedit-$(VERSION).lsm hex + dynamic: + $(MAKE) $(PRODUCT) + install -d -m 755 usr/bin +- install -s -m 755 $(PRODUCT) usr/bin ++ install -m 755 $(PRODUCT) usr/bin + 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 new file mode 100644 index 0000000..35dc882 Binary files /dev/null and b/hexedit-1.2.13.src.tgz differ diff --git a/hexedit.spec b/hexedit.spec new file mode 100644 index 0000000..aed4886 --- /dev/null +++ b/hexedit.spec @@ -0,0 +1,49 @@ +Name: hexedit +Version: 1.2.13 +Release: 15 +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 + +Patch0: hexedit-1.2.13-config.patch + +BuildRequires: gcc ncurses-devel + +%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 +%autosetup -n %{name} -p1 + +%build +%configure +%make_build + +%install +%make_install INSTALL='install -p' + +%check + +%pre + +%preun + +%post + +%postun + +%files +%doc %{name}-%{version}.lsm Changes +%license COPYING +%{_bindir}/hexedit + +%files help +%{_mandir}/man1/hexedit.1* + +%changelog +* Fri Oct 11 2019 openEuler Buildteam - 1.2.13-15 +- Package init.