Files
hex/hex.diff
Petr Gajdos fdedcf692b - version update to 1.11
1.11: 2024-02-07::
    Ship 6 bytes of address ratrher than 4, files run bigger these days.
    Update to modern C style standard.
  1.10: 2019-06-12::
    Name changed to hexd to avoid collision with BSD hexdump.
    License changed to BSD-2-clause.
  1.9: 2015-04-02::
    Administrivial release; Gitorious is dying, project metadata must change.
  1.8: 2012-12-03::
    Use C99 bools.  Code passes cppcheck audit.  Added a regression test.
  1.7: 2010-10-20::
    Code fully ANSIfied. License changed to BSD.  RPM spec removed.
  1.6: 2003-12-29::
    Source RPMs no longer depend on --define myversion
  1.5: 2003-12-26::
    Name changed to 'hexd'.
- deleted patches
  - hex-1.4.diff (renamed)
- added patches
  + hex.diff

OBS-URL: https://build.opensuse.org/package/show/Base:System/hex?expand=0&rev=14
2024-02-29 10:09:47 +00:00

36 lines
1.1 KiB
Diff

Index: hexd-1.11/Makefile
===================================================================
--- hexd-1.11.orig/Makefile
+++ hexd-1.11/Makefile
@@ -5,7 +5,7 @@
VERS=$(shell sed -n <NEWS.adoc '/^[0-9]/s/:.*//p' | head -1)
hexd: hexd.c
- $(CC) -DRELEASE=\"$(VERS)\" -O hexd.c -o hexd
+ $(CC) -DRELEASE=\"$(VERS)\" -O $(CFLAGS) hexd.c -o hexd
SOURCES = README COPYING NEWS.adoc control Makefile hexd.c hexd.adoc
@@ -27,8 +27,8 @@ hexd-$(VERS).tar.gz: $(SOURCES) hexd.1
asciidoctor -D. -a nofooter -a webfonts! $<
install: hexd.1 uninstall
- cp hexd /usr/bin
- cp hexd.1 /usr/share/man/man1/hexd.1
+ install -m 0755 hexd $(DESTDIR)/usr/bin/hex
+ install -m 0644 hexd.1 $(DESTDIR)$(MANDIR)/man1/hex.1
uninstall:
rm -f /usr/bin/hexd /usr/share/man/man1/hexd.
Index: hexd-1.11/hexd.1
===================================================================
--- hexd-1.11.orig/hexd.1
+++ hexd-1.11/hexd.1
@@ -105,4 +105,4 @@ Eric S. Raymond \c
See my home page at
.URL "http://www.catb.org/~esr" "" ""
for updates and
-related resources.
\ No newline at end of file
+related resources.