The package rpms/imhex.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/imhex.git/commit/?id=2f51b5b68edb...
https://src.fedoraproject.org/cgit/rpms/imhex.git/commit/?id=0dc2d239ef13....
Change:
+ExclusiveArch: x86_64 %{arm64} ppc64le
+ExclusiveArch: x86_64 %{arm64}
Thanks.
Full change:
============
commit 4f7e66e1f485569c5e34d17f60b0208deff5c251
Author: Jonathan <jonathan(a)knownhost.com>
Date: Fri Oct 28 14:24:55 2022 -0500
fix sources
diff --git a/sources b/sources
index 56d3d2e..53d51cc 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (imhex-1.24.3.tar.gz) =
941661cacbe0b3c2e1eeb21be8d021d79106f38cf34fbdecb728feb3e4b030ed24b3151767a7f37dbe8e6fd18d0353e446e88cc3feea2581e9f781db899d37ff
+SHA512 (imhex-1.24.3.tar.gz) =
18044b031313bf24032cbea33d912db53e42ca363f0768d8f52948639c808b08a7fc3e41e72be63a2277c9a17e000ed646f84ce7a0ab12ff3c0d75a260f83ef4
commit e3eecdbdbd2d890201bbd9c4af7bf8fd70fa05c5
Author: Jonathan <jonathan(a)knownhost.com>
Date: Wed Oct 12 08:58:17 2022 -0500
update to 1.24.3
diff --git a/.gitignore b/.gitignore
index a2e01be..56942cb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,4 @@
/imhex-1.24.0.tar.gz
/imhex-1.24.1.tar.gz
/imhex-1.24.2.tar.gz
+/imhex-1.24.3.tar.gz
diff --git a/imhex.spec b/imhex.spec
index 16206e2..1c374cd 100644
--- a/imhex.spec
+++ b/imhex.spec
@@ -2,7 +2,7 @@
%global _lto_cflags %{nil}
Name: imhex
-Version: 1.24.2
+Version: 1.24.3
Release: 1%{?dist}
Summary: A hex editor for reverse engineers and programmers
@@ -131,6 +131,9 @@ cp -a lib/external/xdgpp/LICENSE
%{buildroot}%{
%changelog
+* Wed Oct 12 2022 Jonathan Wright <jonathan(a)almalinux.org> - 1.24.3-1
+- update to 1.24.3
+
* Mon Oct 10 2022 Jonathan Wright <jonathan(a)almalinux.org> - 1.24.2-1
- update to 1.24.2
diff --git a/sources b/sources
index 6abcd6f..56d3d2e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (imhex-1.24.2.tar.gz) =
c9d6f6f1dae404d34bd6c154b71dab093ff84e4853523c54cb4892f3e26fa3d6f9294343553f9b57883867f61f3e18a3f28e1ecedc8e9915ccbb267744c3401b
+SHA512 (imhex-1.24.3.tar.gz) =
941661cacbe0b3c2e1eeb21be8d021d79106f38cf34fbdecb728feb3e4b030ed24b3151767a7f37dbe8e6fd18d0353e446e88cc3feea2581e9f781db899d37ff
commit 1a673a44b572b38190f65b79b1c1c0eeea0b8540
Author: Jonathan <jonathan(a)knownhost.com>
Date: Mon Oct 10 17:12:59 2022 -0500
update to 1.24.2
diff --git a/.gitignore b/.gitignore
index b46b41d..a2e01be 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,3 +8,4 @@
/imhex-1.23.2.tar.gz
/imhex-1.24.0.tar.gz
/imhex-1.24.1.tar.gz
+/imhex-1.24.2.tar.gz
diff --git a/imhex.spec b/imhex.spec
index 2c981ef..16206e2 100644
--- a/imhex.spec
+++ b/imhex.spec
@@ -2,7 +2,7 @@
%global _lto_cflags %{nil}
Name: imhex
-Version: 1.24.1
+Version: 1.24.2
Release: 1%{?dist}
Summary: A hex editor for reverse engineers and programmers
@@ -131,6 +131,9 @@ cp -a lib/external/xdgpp/LICENSE
%{buildroot}%{
%changelog
+* Mon Oct 10 2022 Jonathan Wright <jonathan(a)almalinux.org> - 1.24.2-1
+- update to 1.24.2
+
* Mon Oct 10 2022 Jonathan Wright <jonathan(a)almalinux.org> - 1.24.1-1
- update to 1.24.1
diff --git a/sources b/sources
index dea43dc..6abcd6f 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (imhex-1.24.1.tar.gz) =
7623b74d20877844baa14370ee144e1e98ed8dc65ed7222737ae77eb1fb3c89fc46bb53f2435ec6ebf37cae343f720efb27257e435d8c3bc41e51af99f016d94
+SHA512 (imhex-1.24.2.tar.gz) =
c9d6f6f1dae404d34bd6c154b71dab093ff84e4853523c54cb4892f3e26fa3d6f9294343553f9b57883867f61f3e18a3f28e1ecedc8e9915ccbb267744c3401b
commit 8cbdc44fc9cdcef6ec4bb09f207387cbc5cb2aa9
Author: Jonathan <jonathan(a)knownhost.com>
Date: Mon Oct 10 13:27:18 2022 -0500
update to 1.24.1
diff --git a/.gitignore b/.gitignore
index 7d518f5..b46b41d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@
/imhex-1.23.0.tar.gz
/imhex-1.23.2.tar.gz
/imhex-1.24.0.tar.gz
+/imhex-1.24.1.tar.gz
diff --git a/imhex.spec b/imhex.spec
index 25f4774..2c981ef 100644
--- a/imhex.spec
+++ b/imhex.spec
@@ -2,7 +2,7 @@
%global _lto_cflags %{nil}
Name: imhex
-Version: 1.24.0
+Version: 1.24.1
Release: 1%{?dist}
Summary: A hex editor for reverse engineers and programmers
@@ -131,6 +131,9 @@ cp -a lib/external/xdgpp/LICENSE
%{buildroot}%{
%changelog
+* Mon Oct 10 2022 Jonathan Wright <jonathan(a)almalinux.org> - 1.24.1-1
+- update to 1.24.1
+
* Mon Oct 10 2022 Jonathan Wright <jonathan(a)almalinux.org> - 1.24.0-1
- Update to 1.24.0 rhbz#2133163
diff --git a/sources b/sources
index 4527f12..dea43dc 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (imhex-1.24.0.tar.gz) =
1badbfce31bbc0e823e643a562efa971690289449c624b08611b94ebeed69312c9aa74fa93efb4415ae0a758235a07e7dcec321a64e961ac93aae65ea23caa63
+SHA512 (imhex-1.24.1.tar.gz) =
7623b74d20877844baa14370ee144e1e98ed8dc65ed7222737ae77eb1fb3c89fc46bb53f2435ec6ebf37cae343f720efb27257e435d8c3bc41e51af99f016d94
commit 375cc5c54498d32d7693b5c68c53a222fadc484b
Author: Jonathan <jonathan(a)knownhost.com>
Date: Mon Oct 10 08:57:06 2022 -0500
update to 1.24.0
diff --git a/.gitignore b/.gitignore
index 8895fe8..7d518f5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,4 @@
/Full.Sources.tar.gz
/imhex-1.23.0.tar.gz
/imhex-1.23.2.tar.gz
+/imhex-1.24.0.tar.gz
diff --git a/imhex.spec b/imhex.spec
index 6783db8..25f4774 100644
--- a/imhex.spec
+++ b/imhex.spec
@@ -2,7 +2,7 @@
%global _lto_cflags %{nil}
Name: imhex
-Version: 1.23.2
+Version: 1.24.0
Release: 1%{?dist}
Summary: A hex editor for reverse engineers and programmers
@@ -131,6 +131,9 @@ cp -a lib/external/xdgpp/LICENSE
%{buildroot}%{
%changelog
+* Mon Oct 10 2022 Jonathan Wright <jonathan(a)almalinux.org> - 1.24.0-1
+- Update to 1.24.0 rhbz#2133163
+
* Sat Sep 17 2022 Jonathan Wright <jonathan(a)almalinux.org> - 1.23.2-1
- Update to 1.23.2 rhbz#2127614
diff --git a/sources b/sources
index d141b21..4527f12 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (imhex-1.23.2.tar.gz) =
9c84696a473888b13b858c7e836041f9f104215bb7ca9b6f046d4f240b70240545836d722fefa5dd6637b6f649a4e3da7180d2d6b907a007a0e33908a4db82db
+SHA512 (imhex-1.24.0.tar.gz) =
1badbfce31bbc0e823e643a562efa971690289449c624b08611b94ebeed69312c9aa74fa93efb4415ae0a758235a07e7dcec321a64e961ac93aae65ea23caa63
commit 3ecbb1abb453bc1aa74d987ee82decfefa37172c
Author: Jonathan <jonathan(a)knownhost.com>
Date: Sat Sep 17 10:23:00 2022 -0500
update to 1.23.2
diff --git a/.gitignore b/.gitignore
index bc9e84f..8895fe8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,4 @@
/imhex-1.22.0.tar.gz
/Full.Sources.tar.gz
/imhex-1.23.0.tar.gz
+/imhex-1.23.2.tar.gz
diff --git a/imhex.spec b/imhex.spec
index 118eced..6783db8 100644
--- a/imhex.spec
+++ b/imhex.spec
@@ -2,7 +2,7 @@
%global _lto_cflags %{nil}
Name: imhex
-Version: 1.23.0
+Version: 1.23.2
Release: 1%{?dist}
Summary: A hex editor for reverse engineers and programmers
@@ -131,6 +131,9 @@ cp -a lib/external/xdgpp/LICENSE
%{buildroot}%{
%changelog
+* Sat Sep 17 2022 Jonathan Wright <jonathan(a)almalinux.org> - 1.23.2-1
+- Update to 1.23.2 rhbz#2127614
+
* Thu Sep 15 2022 Jonathan Wright <jonathan(a)almalinux.org> - 1.23.0-1
- Update to 1.23.0 rhbz#2127174
diff --git a/sources b/sources
index a5b1e5b..d141b21 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (imhex-1.23.0.tar.gz) =
47888303f5805d273af0da1054a595542f30c9470b9d2fd536edc44875e2dc7add3257326a0baed980c1012d92b971b26f96d0f075dcb6bdf7d5500ef114eec3
+SHA512 (imhex-1.23.2.tar.gz) =
9c84696a473888b13b858c7e836041f9f104215bb7ca9b6f046d4f240b70240545836d722fefa5dd6637b6f649a4e3da7180d2d6b907a007a0e33908a4db82db
commit 02237ad74f0155257152a976ecd286ff4b7fb0fc
Author: Jonathan <jonathan(a)knownhost.com>
Date: Thu Sep 15 10:08:27 2022 -0500
fix sources
diff --git a/.gitignore b/.gitignore
index 0c9705e..bc9e84f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@
/imhex-1.21.2.tar.gz
/imhex-1.22.0.tar.gz
/Full.Sources.tar.gz
+/imhex-1.23.0.tar.gz
diff --git a/sources b/sources
index 0109a94..a5b1e5b 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (Full.Sources.tar.gz) =
47888303f5805d273af0da1054a595542f30c9470b9d2fd536edc44875e2dc7add3257326a0baed980c1012d92b971b26f96d0f075dcb6bdf7d5500ef114eec3
+SHA512 (imhex-1.23.0.tar.gz) =
47888303f5805d273af0da1054a595542f30c9470b9d2fd536edc44875e2dc7add3257326a0baed980c1012d92b971b26f96d0f075dcb6bdf7d5500ef114eec3
commit d40f7473c0b10d307645d443269c911069e27b49
Author: Jonathan <jonathan(a)knownhost.com>
Date: Thu Sep 15 09:57:43 2022 -0500
update to 1.23.0
diff --git a/.gitignore b/.gitignore
index b993b7f..0c9705e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@
/imhex-1.21.1.tar.gz
/imhex-1.21.2.tar.gz
/imhex-1.22.0.tar.gz
+/Full.Sources.tar.gz
diff --git a/imhex.appdata.xml b/imhex.appdata.xml
deleted file mode 100644
index 14c70b9..0000000
--- a/imhex.appdata.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<component type="desktop-application">
- <id>imhex</id>
- <metadata_license>CC0-1.0</metadata_license>
- <project_license>GPL-2.0</project_license>
- <name>ImHex</name>
- <summary>A Hex Editor for Reverse Engineers, Programmers and people who value
their retinas when working at 3 AM</summary>
- <description>
- <p>ImHex is a feature-rich Hex Editor aimed towards Reverse Engineers working
with foreign data formats, malware, executables and raw memory.
-Besides all the features a common Hex Editor has, ImHex also features a custom scripting
language used to declare and dissect data structures, support for running YARA rules, a
node-based graphical data pre-processor and support for various data sources such as
files, raw disks or GDB Servers.</p>
- </description>
- <launchable type="desktop-id">imhex.desktop</launchable>
- <url type="homepage">https://imhex.werwolv.net</url>
- <screenshots>
- <screenshot type="default">
- <
image>https://user-images.githubusercontent.com/10835354/139717326-804...
- </screenshot>
- </screenshots>
- <provides>
- <id>imhex.desktop</id>
- </provides>
-</component>
diff --git a/imhex.spec b/imhex.spec
index 1505612..118eced 100644
--- a/imhex.spec
+++ b/imhex.spec
@@ -2,7 +2,7 @@
%global _lto_cflags %{nil}
Name: imhex
-Version: 1.22.0
+Version: 1.23.0
Release: 1%{?dist}
Summary: A hex editor for reverse engineers and programmers
@@ -12,8 +12,6 @@ License: GPL-2.0-only AND Zlib AND MIT AND Apache-2.0
URL:
https://imhex.werwolv.net/
# We need the archive with deps bundled
Source0:
https://github.com/WerWolv/%{name}/releases/download/v%{version}/Full.Sou...
-# won't be needed in 1.22.1+ as it will be in package
-Source1:
https://raw.githubusercontent.com/WerWolv/ImHex/master/dist/imhex.appdata...
BuildRequires: cmake
BuildRequires: desktop-file-utils
@@ -104,10 +102,11 @@ CXXFLAGS+=" -std=gnu++2b"
%cmake_install
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
+# this is a symlink for the old appdata name that we don't need
+rm -f %{buildroot}%{_metainfodir}/net.werwolv.%{name}.appdata.xml
+
# AppData
-mkdir -p %{buildroot}%{_metainfodir}
-cp -a %{SOURCE1} %{buildroot}%{_metainfodir}/%{name}.metainfo.xml
-appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name}.metainfo.xml
+appstream-util validate-relax --nonet
%{buildroot}%{_metainfodir}/net.werwolv.%{name}.metainfo.xml
# install licenses
cp -a lib/libimhex-rs/imgui-rs/LICENSE-APACHE
%{buildroot}%{_datadir}/licenses/%{name}/imgui-LICENSE-APACHE
@@ -128,10 +127,13 @@ cp -a lib/external/xdgpp/LICENSE
%{buildroot}%{
%{_datadir}/applications/%{name}.desktop
%{_libdir}/libimhex.so*
%{_libdir}/%{name}/
-%{_metainfodir}/%{name}.metainfo.xml
+%{_metainfodir}/net.werwolv.%{name}.metainfo.xml
%changelog
+* Thu Sep 15 2022 Jonathan Wright <jonathan(a)almalinux.org> - 1.23.0-1
+- Update to 1.23.0 rhbz#2127174
+
* Sun Sep 04 2022 Jonathan Wright <jonathan(a)almalinux.org> - 1.22.0-1
- Update to 1.22.0 rhbz#2124107
diff --git a/sources b/sources
index a83e504..0109a94 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (imhex-1.22.0.tar.gz) =
e29015b8850c76f43f42920b1ee93af72cbd28a12a1e555177f580270da6f71391f638cadb34333fa3a7db8f3fe15acb666b5d8b67acde9dcbe5c468e2e6b06f
+SHA512 (Full.Sources.tar.gz) =
47888303f5805d273af0da1054a595542f30c9470b9d2fd536edc44875e2dc7add3257326a0baed980c1012d92b971b26f96d0f075dcb6bdf7d5500ef114eec3
commit 36216866cb33689e9930496fb3cbb508f5c53091
Author: Jonathan <jonathan(a)knownhost.com>
Date: Sun Sep 4 13:54:02 2022 -0500
remove old metainfo file
diff --git a/imhex.appdata.xml b/imhex.appdata.xml
new file mode 100644
index 0000000..14c70b9
--- /dev/null
+++ b/imhex.appdata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="desktop-application">
+ <id>imhex</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <project_license>GPL-2.0</project_license>
+ <name>ImHex</name>
+ <summary>A Hex Editor for Reverse Engineers, Programmers and people who value
their retinas when working at 3 AM</summary>
+ <description>
+ <p>ImHex is a feature-rich Hex Editor aimed towards Reverse Engineers working
with foreign data formats, malware, executables and raw memory.
+Besides all the features a common Hex Editor has, ImHex also features a custom scripting
language used to declare and dissect data structures, support for running YARA rules, a
node-based graphical data pre-processor and support for various data sources such as
files, raw disks or GDB Servers.</p>
+ </description>
+ <launchable type="desktop-id">imhex.desktop</launchable>
+ <url type="homepage">https://imhex.werwolv.net</url>
+ <screenshots>
+ <screenshot type="default">
+ <
image>https://user-images.githubusercontent.com/10835354/139717326-804...
+ </screenshot>
+ </screenshots>
+ <provides>
+ <id>imhex.desktop</id>
+ </provides>
+</component>
diff --git a/imhex.metainfo.xml b/imhex.metainfo.xml
deleted file mode 100644
index d3c121c..0000000
--- a/imhex.metainfo.xml
+++ /dev/null
@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<component type="desktop">
- <id>imhex</id>
- <metadata_license>CC0-1.0</metadata_license>
- <project_license>GPL-2.0-only</project_license>
- <name>ImHex</name>
- <summary>A hex editor for reverse engineers and programmers</summary>
- <description>
- <p>
- ImHex is a Hex Editor, a tool to display, decode and analyze binary data to
- reverse engineer their format, extract informations or patch values in them.
- </p>
- <p>
- What makes ImHex special is that it has many advanced features that can often
- only be found in paid applications. Such features are a completely custom binary
- template and pattern language to decode and highlight structures in the data, a
- graphical node-based data processor to pre-process values before they're
- displayed, a disassembler, diffing support, bookmarks and much much more. At the
- same time ImHex is completely free and open source under the GPLv2 language.
- </p>
- </description>
- <launchable type="desktop-id">imhex.desktop</launchable>
- <screenshots>
- <screenshot type="default">
- <
image>https://imhex.werwolv.net/assets/screenshot1.png</image>
- </screenshot>
- <screenshot>
- <
image>https://imhex.werwolv.net/assets/screenshot2.png</image>
- </screenshot>
- <screenshot>
- <
image>https://imhex.werwolv.net/assets/features/hexeditor.png</imag...
- </screenshot>
- <screenshot>
- <
image>https://imhex.werwolv.net/assets/features/patches.png</image>
- </screenshot>
- <screenshot>
- <
image>https://imhex.werwolv.net/assets/features/analyzer.png</image...
- </screenshot>
- <screenshot>
-
<
image>https://imhex.werwolv.net/assets/features/patternhighlight.png&l...
- </screenshot>
- <screenshot>
-
<
image>https://imhex.werwolv.net/assets/features/disassembly.png</im...
- </screenshot>
- <screenshot>
- <
image>https://imhex.werwolv.net/assets/features/processor.png</imag...
- </screenshot>
- </screenshots>
- <url
type="homepage">https://imhex.werwolv.net/</url>
-</component>
diff --git a/imhex.spec b/imhex.spec
index 2548a25..1505612 100644
--- a/imhex.spec
+++ b/imhex.spec
@@ -106,8 +106,8 @@ desktop-file-validate
%{buildroot}%{_datadir}/applications/%{name}.desktop
# AppData
mkdir -p %{buildroot}%{_metainfodir}
-cp -a %{SOURCE1} -t %{buildroot}%{_metainfodir}/
-appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name}.*.xml
+cp -a %{SOURCE1} %{buildroot}%{_metainfodir}/%{name}.metainfo.xml
+appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name}.metainfo.xml
# install licenses
cp -a lib/libimhex-rs/imgui-rs/LICENSE-APACHE
%{buildroot}%{_datadir}/licenses/%{name}/imgui-LICENSE-APACHE
@@ -128,7 +128,7 @@ cp -a lib/external/xdgpp/LICENSE
%{buildroot}%{
%{_datadir}/applications/%{name}.desktop
%{_libdir}/libimhex.so*
%{_libdir}/%{name}/
-%{_metainfodir}/%{name}.*.xml
+%{_metainfodir}/%{name}.metainfo.xml
%changelog
commit 096f571da7a6ba0881950487626bc77df65b0cc5
Author: Jonathan <jonathan(a)knownhost.com>
Date: Sun Sep 4 13:34:11 2022 -0500
update to 1.22.0
diff --git a/.gitignore b/.gitignore
index f18433c..b993b7f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
/imhex-1.21.0.tar.gz
/imhex-1.21.1.tar.gz
/imhex-1.21.2.tar.gz
+/imhex-1.22.0.tar.gz
diff --git a/imhex.spec b/imhex.spec
index 19393ed..2548a25 100644
--- a/imhex.spec
+++ b/imhex.spec
@@ -2,8 +2,8 @@
%global _lto_cflags %{nil}
Name: imhex
-Version: 1.21.2
-Release: 2%{?dist}
+Version: 1.22.0
+Release: 1%{?dist}
Summary: A hex editor for reverse engineers and programmers
License: GPL-2.0-only AND Zlib AND MIT AND Apache-2.0
@@ -12,7 +12,8 @@ License: GPL-2.0-only AND Zlib AND MIT AND Apache-2.0
URL:
https://imhex.werwolv.net/
# We need the archive with deps bundled
Source0:
https://github.com/WerWolv/%{name}/releases/download/v%{version}/Full.Sou...
-Source1: imhex.metainfo.xml
+# won't be needed in 1.22.1+ as it will be in package
+Source1:
https://raw.githubusercontent.com/WerWolv/ImHex/master/dist/imhex.appdata...
BuildRequires: cmake
BuildRequires: desktop-file-utils
@@ -105,8 +106,8 @@ desktop-file-validate
%{buildroot}%{_datadir}/applications/%{name}.desktop
# AppData
mkdir -p %{buildroot}%{_metainfodir}
-cp -a %{SOURCE1} %{buildroot}%{_metainfodir}/%{name}.metainfo.xml
-appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name}.metainfo.xml
+cp -a %{SOURCE1} -t %{buildroot}%{_metainfodir}/
+appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name}.*.xml
# install licenses
cp -a lib/libimhex-rs/imgui-rs/LICENSE-APACHE
%{buildroot}%{_datadir}/licenses/%{name}/imgui-LICENSE-APACHE
@@ -127,10 +128,13 @@ cp -a lib/external/xdgpp/LICENSE
%{buildroot}%{
%{_datadir}/applications/%{name}.desktop
%{_libdir}/libimhex.so*
%{_libdir}/%{name}/
-%{_metainfodir}/%{name}.metainfo.xml
+%{_metainfodir}/%{name}.*.xml
%changelog
+* Sun Sep 04 2022 Jonathan Wright <jonathan(a)almalinux.org> - 1.22.0-1
+- Update to 1.22.0 rhbz#2124107
+
* Wed Aug 17 2022 Jonathan Wright <jonathan(a)almalinux.org> - 1.21.2-2
- Document packaged intervaltree lib
diff --git a/sources b/sources
index 1a3e108..a83e504 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (imhex-1.21.2.tar.gz) =
e5dd9c5b81f739ee37cc51cf37aa6b866b1af8b28f06e0731612612c5a56d5d68d9d50c20ebb9304a51efb88c07fde72656dcc7d6c249dd827d5d15e44de9698
+SHA512 (imhex-1.22.0.tar.gz) =
e29015b8850c76f43f42920b1ee93af72cbd28a12a1e555177f580270da6f71391f638cadb34333fa3a7db8f3fe15acb666b5d8b67acde9dcbe5c468e2e6b06f
commit 38589991a16ec4baf61311a288d3ff7cd9154042
Author: Jonathan <jonathan(a)knownhost.com>
Date: Thu Aug 25 12:18:14 2022 -0500
clean up spec
diff --git a/imhex.spec b/imhex.spec
index bd6ed13..19393ed 100644
--- a/imhex.spec
+++ b/imhex.spec
@@ -85,9 +85,6 @@ CXXFLAGS+=" -std=gnu++2b"
-D USE_SYSTEM_LLVM=ON \
-D USE_SYSTEM_YARA=ON \
-D USE_SYSTEM_NFD=ON \
-# once the system NFD package is ready
-#
https://bugzilla.redhat.com/show_bug.cgi?id=2118080
-# -D USE_SYSTEM_NFD=ON
# when capstone >= 5.x is released we should be able to build against \
# system libs of it \
# -D USE_SYSTEM_CAPSTONE=ON
commit bf75319a94cf311b9a8b5902c827abe3fa497209
Author: jonathanspw <jonathan(a)almalinux.org>
Date: Thu Aug 18 17:05:59 2022 -0500
increment release tag
diff --git a/imhex.spec b/imhex.spec
index 117be1b..bd6ed13 100644
--- a/imhex.spec
+++ b/imhex.spec
@@ -3,7 +3,7 @@
Name: imhex
Version: 1.21.2
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: A hex editor for reverse engineers and programmers
License: GPL-2.0-only AND Zlib AND MIT AND Apache-2.0
commit 0b65d20d867f71fa595ce1ce65f943062b1a8b83
Author: jonathanspw <jonathan(a)almalinux.org>
Date: Thu Aug 18 17:05:00 2022 -0500
document included intervaltree lib
diff --git a/imhex.spec b/imhex.spec
index 48b7ae8..117be1b 100644
--- a/imhex.spec
+++ b/imhex.spec
@@ -7,7 +7,7 @@ Release: 1%{?dist}
Summary: A hex editor for reverse engineers and programmers
License: GPL-2.0-only AND Zlib AND MIT AND Apache-2.0
-# imhex is gplv2. capstone is custom. nativefiledialog is Zlib
+# imhex is gplv2. capstone is custom. nativefiledialog is Zlib. intervaltree is MIT
# see license dir for full breakdown
URL:
https://imhex.werwolv.net/
# We need the archive with deps bundled
@@ -41,6 +41,9 @@ Provides: bundled(imgui)
Provides: bundled(libromfs)
Provides: bundled(microtar)
Provides: bundled(libpl)
+# ImHex modified upstream intervaltree so we have to package it
+#
https://github.com/ekg/intervaltree
+Provides: bundled(intervaltree) = 0.1
# ftbfs on these arches. armv7hl might compile when capstone 5.x
# is released upstream and we can build against it
@@ -131,6 +134,9 @@ cp -a lib/external/xdgpp/LICENSE
%{buildroot}%{
%changelog
+* Wed Aug 17 2022 Jonathan Wright <jonathan(a)almalinux.org> - 1.21.2-2
+- Document packaged intervaltree lib
+
* Wed Aug 17 2022 Jonathan Wright <jonathan(a)almalinux.org> - 1.21.2-1
- Update to 1.21.2 (fixes rhbz#2119220)
- Use system libnfd (nativefiledialog-extended)
commit 72b19031d9241e12b3343f9e398482e3b7b8be0f
Author: jonathanspw <jonathan(a)almalinux.org>
Date: Wed Aug 17 19:21:34 2022 -0500
update to 1.21.2
diff --git a/.gitignore b/.gitignore
index 0adbe08..f18433c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
/imhex-1.20.0.tar.gz
/imhex-1.21.0.tar.gz
/imhex-1.21.1.tar.gz
+/imhex-1.21.2.tar.gz
diff --git a/imhex.spec b/imhex.spec
index 80f3c14..48b7ae8 100644
--- a/imhex.spec
+++ b/imhex.spec
@@ -2,7 +2,7 @@
%global _lto_cflags %{nil}
Name: imhex
-Version: 1.21.1
+Version: 1.21.2
Release: 1%{?dist}
Summary: A hex editor for reverse engineers and programmers
@@ -30,18 +30,16 @@ BuildRequires: llvm-devel
BuildRequires: mbedtls-devel
BuildRequires: python3-devel
BuildRequires: yara-devel
+BuildRequires: nativefiledialog-extended-devel
%if 0%{?rhel}
BuildRequires: gcc-toolset-12
%endif
-Requires: xdg-desktop-portal-gtk
-
Provides: bundled(gnulib)
Provides: bundled(capstone) = 5.0-rc2
Provides: bundled(imgui)
Provides: bundled(libromfs)
Provides: bundled(microtar)
-Provides: bundled(nativefiledialog)
Provides: bundled(libpl)
# ftbfs on these arches. armv7hl might compile when capstone 5.x
@@ -69,7 +67,11 @@ same time ImHex is completely free and open source under the GPLv2
language.
rm -rf lib/external/{curl,fmt,llvm,nlohmann_json,yara}
%build
-%{?el9:. /opt/rh/gcc-toolset-12/enable}
+%if 0%{?rhel}
+. /opt/rh/gcc-toolset-12/enable
+%set_build_flags
+CXXFLAGS+=" -std=gnu++2b"
+%endif
%cmake \
-D CMAKE_BUILD_TYPE=Release \
-D IMHEX_STRIP_RELEASE=OFF \
@@ -79,6 +81,7 @@ rm -rf lib/external/{curl,fmt,llvm,nlohmann_json,yara}
-D USE_SYSTEM_CURL=ON \
-D USE_SYSTEM_LLVM=ON \
-D USE_SYSTEM_YARA=ON \
+ -D USE_SYSTEM_NFD=ON \
# once the system NFD package is ready
#
https://bugzilla.redhat.com/show_bug.cgi?id=2118080
# -D USE_SYSTEM_NFD=ON
@@ -128,6 +131,11 @@ cp -a lib/external/xdgpp/LICENSE
%{buildroot}%{
%changelog
+* Wed Aug 17 2022 Jonathan Wright <jonathan(a)almalinux.org> - 1.21.2-1
+- Update to 1.21.2 (fixes rhbz#2119220)
+- Use system libnfd (nativefiledialog-extended)
+- More EPEL spec prep
+
* Mon Aug 15 2022 Jonathan Wright <jonathan(a)almalinux.org> - 1.21.1-1
- Update to 1.21.1
diff --git a/sources b/sources
index c518bb2..1a3e108 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (imhex-1.21.1.tar.gz) =
8d0c87f2e9195683b89297e8d83afbd422e3efcf2fec02f4eac6b58de1a7feae3f71d7e6b3184327ad52338a7a628fcec6052f4f8099fe12b122a51a1412c6ce
+SHA512 (imhex-1.21.2.tar.gz) =
e5dd9c5b81f739ee37cc51cf37aa6b866b1af8b28f06e0731612612c5a56d5d68d9d50c20ebb9304a51efb88c07fde72656dcc7d6c249dd827d5d15e44de9698
commit f4c1b9c160f4c2b029c607bb4ca64d22fc261bbb
Author: jonathanspw <jonathan(a)almalinux.org>
Date: Mon Aug 15 11:30:46 2022 -0500
update to 1.21.1
diff --git a/.gitignore b/.gitignore
index c36504c..0adbe08 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
/imhex-1.20.0.tar.gz
/imhex-1.21.0.tar.gz
+/imhex-1.21.1.tar.gz
diff --git a/imhex.spec b/imhex.spec
index f5e0aa9..80f3c14 100644
--- a/imhex.spec
+++ b/imhex.spec
@@ -2,8 +2,8 @@
%global _lto_cflags %{nil}
Name: imhex
-Version: 1.21.0
-Release: 2%{?dist}
+Version: 1.21.1
+Release: 1%{?dist}
Summary: A hex editor for reverse engineers and programmers
License: GPL-2.0-only AND Zlib AND MIT AND Apache-2.0
@@ -128,6 +128,9 @@ cp -a lib/external/xdgpp/LICENSE
%{buildroot}%{
%changelog
+* Mon Aug 15 2022 Jonathan Wright <jonathan(a)almalinux.org> - 1.21.1-1
+- Update to 1.21.1
+
* Sun Aug 14 2022 Jonathan Wright <jonathan(a)almalinux.org> - 1.21.0-2
- Updates requires to ensure package needed for file dialogs is present
diff --git a/sources b/sources
index 6180c9a..c518bb2 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (imhex-1.21.0.tar.gz) =
6851374228ac96b848ae2359f4b0b2ddda020a8f0a23b27961db460acc6e427e913a13b2b750f4da52a90ae51bd4a4c1d43e67cc408fde064250cdfa9c00014c
+SHA512 (imhex-1.21.1.tar.gz) =
8d0c87f2e9195683b89297e8d83afbd422e3efcf2fec02f4eac6b58de1a7feae3f71d7e6b3184327ad52338a7a628fcec6052f4f8099fe12b122a51a1412c6ce
commit ceccc984257b1eaddb62600fdc955c5d1cba80f9
Author: jonathanspw <jonathan(a)almalinux.org>
Date: Sun Aug 14 14:41:29 2022 -0500
add require needed for file dialog functionality
diff --git a/imhex.spec b/imhex.spec
index b7123b1..f5e0aa9 100644
--- a/imhex.spec
+++ b/imhex.spec
@@ -3,7 +3,7 @@
Name: imhex
Version: 1.21.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: A hex editor for reverse engineers and programmers
License: GPL-2.0-only AND Zlib AND MIT AND Apache-2.0
@@ -34,6 +34,8 @@ BuildRequires: yara-devel
BuildRequires: gcc-toolset-12
%endif
+Requires: xdg-desktop-portal-gtk
+
Provides: bundled(gnulib)
Provides: bundled(capstone) = 5.0-rc2
Provides: bundled(imgui)
@@ -126,6 +128,9 @@ cp -a lib/external/xdgpp/LICENSE
%{buildroot}%{
%changelog
+* Sun Aug 14 2022 Jonathan Wright <jonathan(a)almalinux.org> - 1.21.0-2
+- Updates requires to ensure package needed for file dialogs is present
+
* Sun Aug 14 2022 Jonathan Wright <jonathan(a)almalinux.org> - 1.21.0-1
- Update to 1.21.0
commit da6dba7538e590357a3315cfed8b249e59083bdb
Author: jonathanspw <jonathan(a)almalinux.org>
Date: Sun Aug 14 10:28:29 2022 -0500
update to 1.21.0
diff --git a/.gitignore b/.gitignore
index 633894b..c36504c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/imhex-1.20.0.tar.gz
+/imhex-1.21.0.tar.gz
diff --git a/imhex.spec b/imhex.spec
index 9930d07..b7123b1 100644
--- a/imhex.spec
+++ b/imhex.spec
@@ -2,8 +2,8 @@
%global _lto_cflags %{nil}
Name: imhex
-Version: 1.20.0
-Release: 2%{?dist}
+Version: 1.21.0
+Release: 1%{?dist}
Summary: A hex editor for reverse engineers and programmers
License: GPL-2.0-only AND Zlib AND MIT AND Apache-2.0
@@ -77,6 +77,9 @@ rm -rf lib/external/{curl,fmt,llvm,nlohmann_json,yara}
-D USE_SYSTEM_CURL=ON \
-D USE_SYSTEM_LLVM=ON \
-D USE_SYSTEM_YARA=ON \
+# once the system NFD package is ready
+#
https://bugzilla.redhat.com/show_bug.cgi?id=2118080
+# -D USE_SYSTEM_NFD=ON
# when capstone >= 5.x is released we should be able to build against \
# system libs of it \
# -D USE_SYSTEM_CAPSTONE=ON
@@ -94,9 +97,6 @@ rm -rf lib/external/{curl,fmt,llvm,nlohmann_json,yara}
%install
%cmake_install
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
-# so debuginfo will strip it properly.
-#
https://github.com/WerWolv/ImHex/issues/655
-chmod +x %{buildroot}/%{_libdir}/libimhex.so*
# AppData
mkdir -p %{buildroot}%{_metainfodir}
@@ -126,6 +126,9 @@ cp -a lib/external/xdgpp/LICENSE
%{buildroot}%{
%changelog
+* Sun Aug 14 2022 Jonathan Wright <jonathan(a)almalinux.org> - 1.21.0-1
+- Update to 1.21.0
+
* Fri Aug 12 2022 Jonathan Wright <jonathan(a)almalinux.org> - 1.20.0-2
- EPEL9 prep
- Build on ppc64le
diff --git a/sources b/sources
index b60c970..6180c9a 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (imhex-1.20.0.tar.gz) =
a5cbcb84ceb6c2bc90356e585e454be1c1abbb4dbdeb4f5ae8214db2cebd24ccbc591c558cdb6edcaf7a235413d121a02e5dde3f0862ec7df36aa6a1c2f4fcd8
+SHA512 (imhex-1.21.0.tar.gz) =
6851374228ac96b848ae2359f4b0b2ddda020a8f0a23b27961db460acc6e427e913a13b2b750f4da52a90ae51bd4a4c1d43e67cc408fde064250cdfa9c00014c
commit 158355df1e79f1899ec9bf51eb4b420763ecdfa3
Author: jonathanspw <jonathan(a)almalinux.org>
Date: Fri Aug 12 13:27:32 2022 -0500
increment release number
diff --git a/imhex.spec b/imhex.spec
index 51736ae..9930d07 100644
--- a/imhex.spec
+++ b/imhex.spec
@@ -3,7 +3,7 @@
Name: imhex
Version: 1.20.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: A hex editor for reverse engineers and programmers
License: GPL-2.0-only AND Zlib AND MIT AND Apache-2.0
commit 2f51b5b68edb32aa97bdb70c1abee485595ec797
Author: jonathanspw <jonathan(a)almalinux.org>
Date: Fri Aug 12 13:21:03 2022 -0500
build on ppc64le, epel9 spec prep
diff --git a/imhex.spec b/imhex.spec
index 63182d8..51736ae 100644
--- a/imhex.spec
+++ b/imhex.spec
@@ -29,8 +29,9 @@ BuildRequires: libcurl-devel
BuildRequires: llvm-devel
BuildRequires: mbedtls-devel
BuildRequires: python3-devel
-%if 0%{?fedora} >= 36
BuildRequires: yara-devel
+%if 0%{?rhel}
+BuildRequires: gcc-toolset-12
%endif
Provides: bundled(gnulib)
@@ -45,7 +46,7 @@ Provides: bundled(libpl)
# is released upstream and we can build against it
# [7:02 PM] WerWolv: We're not supporting 32 bit anyways soooo
# [11:38 AM] WerWolv: Officially supported are x86_64 and aarch64
-ExclusiveArch: x86_64 %{arm64}
+ExclusiveArch: x86_64 %{arm64} ppc64le
%description
@@ -66,6 +67,7 @@ same time ImHex is completely free and open source under the GPLv2
language.
rm -rf lib/external/{curl,fmt,llvm,nlohmann_json,yara}
%build
+%{?el9:. /opt/rh/gcc-toolset-12/enable}
%cmake \
-D CMAKE_BUILD_TYPE=Release \
-D IMHEX_STRIP_RELEASE=OFF \
@@ -74,12 +76,7 @@ rm -rf lib/external/{curl,fmt,llvm,nlohmann_json,yara}
-D USE_SYSTEM_FMT=ON \
-D USE_SYSTEM_CURL=ON \
-D USE_SYSTEM_LLVM=ON \
-%if 0%{?fedora} >= 36
-D USE_SYSTEM_YARA=ON \
-# if fedora <= 36 get updated to yara 4.2.x then they should \
-# be able to build against system libs \
-#
https://bugzilla.redhat.com/show_bug.cgi?id=2112508 \
-%endif
# when capstone >= 5.x is released we should be able to build against \
# system libs of it \
# -D USE_SYSTEM_CAPSTONE=ON
@@ -129,5 +126,9 @@ cp -a lib/external/xdgpp/LICENSE
%{buildroot}%{
%changelog
+* Fri Aug 12 2022 Jonathan Wright <jonathan(a)almalinux.org> - 1.20.0-2
+- EPEL9 prep
+- Build on ppc64le
+
* Fri Aug 05 2022 Jonathan Wright <jonathan(a)almalinux.org> - 1.20.0-1
- Initial package build
commit 0dc2d239ef1345fcec4ad549ce6de86e2e44930d
Author: jonathanspw <jonathan(a)almalinux.org>
Date: Fri Aug 12 08:29:45 2022 -0500
initial package build
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..633894b
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/imhex-1.20.0.tar.gz
diff --git a/imhex.metainfo.xml b/imhex.metainfo.xml
new file mode 100644
index 0000000..d3c121c
--- /dev/null
+++ b/imhex.metainfo.xml
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="desktop">
+ <id>imhex</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <project_license>GPL-2.0-only</project_license>
+ <name>ImHex</name>
+ <summary>A hex editor for reverse engineers and programmers</summary>
+ <description>
+ <p>
+ ImHex is a Hex Editor, a tool to display, decode and analyze binary data to
+ reverse engineer their format, extract informations or patch values in them.
+ </p>
+ <p>
+ What makes ImHex special is that it has many advanced features that can often
+ only be found in paid applications. Such features are a completely custom binary
+ template and pattern language to decode and highlight structures in the data, a
+ graphical node-based data processor to pre-process values before they're
+ displayed, a disassembler, diffing support, bookmarks and much much more. At the
+ same time ImHex is completely free and open source under the GPLv2 language.
+ </p>
+ </description>
+ <launchable type="desktop-id">imhex.desktop</launchable>
+ <screenshots>
+ <screenshot type="default">
+ <
image>https://imhex.werwolv.net/assets/screenshot1.png</image>
+ </screenshot>
+ <screenshot>
+ <
image>https://imhex.werwolv.net/assets/screenshot2.png</image>
+ </screenshot>
+ <screenshot>
+ <
image>https://imhex.werwolv.net/assets/features/hexeditor.png</imag...
+ </screenshot>
+ <screenshot>
+ <
image>https://imhex.werwolv.net/assets/features/patches.png</image>
+ </screenshot>
+ <screenshot>
+ <
image>https://imhex.werwolv.net/assets/features/analyzer.png</image...
+ </screenshot>
+ <screenshot>
+
<
image>https://imhex.werwolv.net/assets/features/patternhighlight.png&l...
+ </screenshot>
+ <screenshot>
+
<
image>https://imhex.werwolv.net/assets/features/disassembly.png</im...
+ </screenshot>
+ <screenshot>
+ <
image>https://imhex.werwolv.net/assets/features/processor.png</imag...
+ </screenshot>
+ </screenshots>
+ <url
type="homepage">https://imhex.werwolv.net/</url>
+</component>
diff --git a/imhex.spec b/imhex.spec
new file mode 100644
index 0000000..63182d8
--- /dev/null
+++ b/imhex.spec
@@ -0,0 +1,133 @@
+# ftbfs without this, dev is aware
https://github.com/WerWolv/ImHex/issues/610
+%global _lto_cflags %{nil}
+
+Name: imhex
+Version: 1.20.0
+Release: 1%{?dist}
+Summary: A hex editor for reverse engineers and programmers
+
+License: GPL-2.0-only AND Zlib AND MIT AND Apache-2.0
+# imhex is gplv2. capstone is custom. nativefiledialog is Zlib
+# see license dir for full breakdown
+URL:
https://imhex.werwolv.net/
+# We need the archive with deps bundled
+Source0:
https://github.com/WerWolv/%{name}/releases/download/v%{version}/Full.Sou...
+Source1: imhex.metainfo.xml
+
+BuildRequires: cmake
+BuildRequires: desktop-file-utils
+BuildRequires: dbus-devel
+BuildRequires: file-devel
+BuildRequires: freetype-devel
+BuildRequires: fmt-devel
+BuildRequires: gcc-c++
+BuildRequires: libappstream-glib
+BuildRequires: libglvnd-devel
+BuildRequires: glfw-devel
+BuildRequires: json-devel
+BuildRequires: libcurl-devel
+BuildRequires: llvm-devel
+BuildRequires: mbedtls-devel
+BuildRequires: python3-devel
+%if 0%{?fedora} >= 36
+BuildRequires: yara-devel
+%endif
+
+Provides: bundled(gnulib)
+Provides: bundled(capstone) = 5.0-rc2
+Provides: bundled(imgui)
+Provides: bundled(libromfs)
+Provides: bundled(microtar)
+Provides: bundled(nativefiledialog)
+Provides: bundled(libpl)
+
+# ftbfs on these arches. armv7hl might compile when capstone 5.x
+# is released upstream and we can build against it
+# [7:02 PM] WerWolv: We're not supporting 32 bit anyways soooo
+# [11:38 AM] WerWolv: Officially supported are x86_64 and aarch64
+ExclusiveArch: x86_64 %{arm64}
+
+
+%description
+ImHex is a Hex Editor, a tool to display, decode and analyze binary data to
+reverse engineer their format, extract informations or patch values in them.
+
+What makes ImHex special is that it has many advanced features that can often
+only be found in paid applications. Such features are a completely custom binary
+template and pattern language to decode and highlight structures in the data, a
+graphical node-based data processor to pre-process values before they're
+displayed, a disassembler, diffing support, bookmarks and much much more. At the
+same time ImHex is completely free and open source under the GPLv2 language.
+
+
+%prep
+%autosetup -n ImHex
+# remove bundled libs we aren't using
+rm -rf lib/external/{curl,fmt,llvm,nlohmann_json,yara}
+
+%build
+%cmake \
+ -D CMAKE_BUILD_TYPE=Release \
+ -D IMHEX_STRIP_RELEASE=OFF \
+ -D IMHEX_OFFLINE_BUILD=ON \
+ -D USE_SYSTEM_NLOHMANN_JSON=ON \
+ -D USE_SYSTEM_FMT=ON \
+ -D USE_SYSTEM_CURL=ON \
+ -D USE_SYSTEM_LLVM=ON \
+%if 0%{?fedora} >= 36
+ -D USE_SYSTEM_YARA=ON \
+# if fedora <= 36 get updated to yara 4.2.x then they should \
+# be able to build against system libs \
+#
https://bugzilla.redhat.com/show_bug.cgi?id=2112508 \
+%endif
+# when capstone >= 5.x is released we should be able to build against \
+# system libs of it \
+# -D USE_SYSTEM_CAPSTONE=ON
+
+%cmake_build
+
+
+%check
+# build binaries required for tests
+%cmake_build --target unit_tests
+%ctest --exclude-regex '(Helpers/StoreAPI|Helpers/TipsAPI|Helpers/ContentAPI)'
+# Helpers/*API exclude tests that require network access
+
+
+%install
+%cmake_install
+desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
+# so debuginfo will strip it properly.
+#
https://github.com/WerWolv/ImHex/issues/655
+chmod +x %{buildroot}/%{_libdir}/libimhex.so*
+
+# AppData
+mkdir -p %{buildroot}%{_metainfodir}
+cp -a %{SOURCE1} %{buildroot}%{_metainfodir}/%{name}.metainfo.xml
+appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name}.metainfo.xml
+
+# install licenses
+cp -a lib/libimhex-rs/imgui-rs/LICENSE-APACHE
%{buildroot}%{_datadir}/licenses/%{name}/imgui-LICENSE-APACHE
+cp -a lib/libimhex-rs/imgui-rs/LICENSE-MIT
%{buildroot}%{_datadir}/licenses/%{name}/imgui-LICENSE-MIT
+cp -a lib/external/nativefiledialog/LICENSE
%{buildroot}%{_datadir}/licenses/%{name}/nativefiledialog-LICENSE
+cp -a lib/external/capstone/LICENSE.TXT
%{buildroot}%{_datadir}/licenses/%{name}/capstone-LICENSE
+cp -a lib/external/capstone/suite/regress/LICENSE
%{buildroot}%{_datadir}/licenses/%{name}/capstone-regress-LICENSE
+cp -a lib/external/microtar/LICENSE
%{buildroot}%{_datadir}/licenses/%{name}/microtar-LICENSE
+cp -a lib/external/pattern_language/external/intervaltree/LICENSE
%{buildroot}%{_datadir}/licenses/%{name}/pattern-language-intervaltree-LICENSE
+cp -a lib/external/xdgpp/LICENSE
%{buildroot}%{_datadir}/licenses/%{name}/xdgpp-LICENSE
+
+
+%files
+%license %{_datadir}/licenses/%{name}/
+%doc README.md
+%{_bindir}/imhex
+%{_datadir}/pixmaps/%{name}.png
+%{_datadir}/applications/%{name}.desktop
+%{_libdir}/libimhex.so*
+%{_libdir}/%{name}/
+%{_metainfodir}/%{name}.metainfo.xml
+
+
+%changelog
+* Fri Aug 05 2022 Jonathan Wright <jonathan(a)almalinux.org> - 1.20.0-1
+- Initial package build
diff --git a/sources b/sources
new file mode 100644
index 0000000..b60c970
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (imhex-1.20.0.tar.gz) =
a5cbcb84ceb6c2bc90356e585e454be1c1abbb4dbdeb4f5ae8214db2cebd24ccbc591c558cdb6edcaf7a235413d121a02e5dde3f0862ec7df36aa6a1c2f4fcd8