diff --git a/file-5.32-ncurses-6.1.patch b/file-5.32-ncurses-6.1.patch new file mode 100644 index 0000000..4c8e445 --- /dev/null +++ b/file-5.32-ncurses-6.1.patch @@ -0,0 +1,24 @@ +--- + magic/Magdir/terminfo | 11 +++++++++++ + 1 file changed, 11 insertions(+) + +--- magic/Magdir/terminfo ++++ magic/Magdir/terminfo 2018-01-22 10:32:38.596762352 +0000 +@@ -19,6 +19,17 @@ + # no extension + #!:ext + # ++#------------------------------------------------------------------------------ ++# The following was added for ncurses6 development: ++#------------------------------------------------------------------------------ ++# ++0 string \036\002 ++# imitate the legacy compiled-format, to get the entry-name printed ++>16 ubyte >32 ++# namelist, if more than 1 separated by "|" like "st|stterm| simpleterm 0.4.1" ++>>12 regex \^[a-zA-Z0-9][a-zA-Z0-9.][^|]* Compiled 32-bit terminfo entry "%-s" ++!:mime application/x-terminfo2 ++# + # While the compiled terminfo uses little-endian format irregardless of + # platform, SystemV screen dumps do not. They came later, and that detail was + # overlooked. diff --git a/file.changes b/file.changes index 0a199b8..4c2223d 100644 --- a/file.changes +++ b/file.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jan 22 10:37:39 UTC 2018 - werner@suse.de + +- Add patch file-5.32-ncurses-6.1.patch to support extend magic + format for new ncurses 6.1 + ------------------------------------------------------------------- Sun Oct 8 00:06:58 UTC 2017 - jengelh@inai.de diff --git a/file.spec b/file.spec index a771ae0..070b1bb 100644 --- a/file.spec +++ b/file.spec @@ -1,7 +1,7 @@ # # spec file for package file # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -62,6 +62,7 @@ Patch35: file-5.24-nitpick.dif Patch36: file-5.15-clear-invalid.patch Patch37: file-secure_getenv.patch Patch39: file-5.28-btrfs-image.dif +Patch40: file-5.32-ncurses-6.1.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %global _sysconfdir /etc %global _miscdir %{_datadir}/misc @@ -130,6 +131,7 @@ to develop applications that require the magic "file" interface. %patch36 -p1 -b .clear %patch37 -p1 -b .getenv %patch39 -p1 -b .btrfs +%patch40 -p0 -b .nc61 %patch -b .0 test -s src/magic.h.in || cp -p src/magic.h src/magic.h.in rm -fv src/magic.h diff --git a/python-magic.spec b/python-magic.spec index 26141d0..e610f3e 100644 --- a/python-magic.spec +++ b/python-magic.spec @@ -1,7 +1,7 @@ # # spec file for package python-magic # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed