forked from WerWolv/ImHex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git: Added Fedora .rpm packaging to CI (WerWolv#608)
* Update build.yml * Update build.yml * Update build.yml * Update build.yml * Update build.yml * Update build.yml * Update build.yml * Update build.yml * Update build.yml * Update build.yml * Update build.yml * Update get_deps_fedora.sh * Update build.yml * Update get_deps_fedora.sh * Update build.yml * Update build.yml * Update get_deps_fedora.sh * Update build.yml * Update build.yml * Update build.yml * Update build.yml * Update build.yml * Create imhex.spec * Update build.yml * Update build.yml * Update build.yml * Update build.yml * Update imhex.spec * Update build.yml * Update README.md * remove duplicate fedora build deps * Fix license * Use release tag 0 fedora official packaging starts at 1 so this will prevent conflicts and allow someone who manually installs the RPM to then later get updates from fedora repositories * add RPMs to releases * include rpms in releases * fixed order of ops for fedora builds * can't checkout without git...
- Loading branch information
1 parent
1ed88f3
commit f12f10b
Showing
5 changed files
with
223 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
#!/usr/bin/env sh | ||
|
||
dnf install \ | ||
dnf install -y \ | ||
cmake \ | ||
gcc-c++ \ | ||
lld \ | ||
dbus-devel \ | ||
file-devel \ | ||
glfw-devel \ | ||
freetype-devel \ | ||
gcc-c++ \ | ||
git \ | ||
mesa-libGL-devel \ | ||
glfw-devel \ | ||
lld \ | ||
mbedtls-devel \ | ||
python-devel \ | ||
freetype-devel \ | ||
dbus \ | ||
xdg-desktop-portal | ||
python3-devel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# ftbfs without this | ||
%global _lto_cflags %{nil} | ||
|
||
Name: ImHex | ||
Version: %{_version} | ||
Release: 0%{?dist} | ||
Summary: A hex editor for reverse engineers and programmers | ||
|
||
License: GPL-2.0-only | ||
URL: https://imhex.werwolv.net/ | ||
|
||
BuildRequires: cmake | ||
BuildRequires: desktop-file-utils | ||
BuildRequires: dbus-devel | ||
BuildRequires: file-devel | ||
BuildRequires: freetype-devel | ||
BuildRequires: fmt-devel | ||
BuildRequires: gcc-c++ | ||
BuildRequires: mesa-libGL-devel | ||
BuildRequires: glfw-devel | ||
BuildRequires: json-devel | ||
BuildRequires: libcurl-devel | ||
BuildRequires: llvm-devel | ||
BuildRequires: mbedtls-devel | ||
BuildRequires: python3-devel | ||
%if 0%{?fedora} >= 37 | ||
BuildRequires: yara-devel | ||
%endif | ||
|
||
|
||
%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 | ||
# don't use the setup macro since we're pulling from git | ||
cp -r %{_src_path}/* %{_builddir}/ | ||
|
||
|
||
%build | ||
%cmake \ | ||
-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} >= 37 | ||
-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 | ||
|
||
|
||
%install | ||
%cmake_install | ||
desktop-file-validate %{buildroot}%{_datadir}/applications/imhex.desktop | ||
|
||
|
||
%files | ||
%dir %{_datadir}/licenses/imhex | ||
%license %{_datadir}/licenses/imhex/LICENSE | ||
%doc README.md | ||
%{_bindir}/imhex | ||
%{_datadir}/pixmaps/imhex.png | ||
%dir %{_datadir}/imhex | ||
%{_datadir}/imhex/* | ||
%{_datadir}/applications/imhex.desktop | ||
%{_prefix}/lib/libimhex.so | ||
|
||
%changelog |