The package rpms/rizin.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/rizin.git/commit/?id=8ee4cd7be66c....
Change:
+%ifarch s390x
Thanks.
Full change:
============
commit 68815e1a6ec6a134afe5bb9aeb57d8695cc1c904
Author: Riccardo Schirone <sirmy15(a)gmail.com>
Date: Tue Apr 20 09:55:14 2021 +0200
Increase release number
diff --git a/rizin.spec b/rizin.spec
index d19e5fa..c4f9b38 100644
--- a/rizin.spec
+++ b/rizin.spec
@@ -6,7 +6,7 @@ VCS:
https://github.com/rizinorg/rizin
%global gituser rizinorg
%global gitname rizin
-%global rel 1
+%global rel 2
Release: %{rel}%{?dist}
Source0:
https://github.com/%{gituser}/%{gitname}/releases/download/v%{version}/%{...
@@ -188,6 +188,9 @@ information
%changelog
+* Tue Apr 20 2021 Riccardo Schirone <rschirone91(a)gmail.com> - 0.2.0-2
+- Apply patch to avoid symbols collision
+
* Mon Apr 12 2021 Riccardo Schirone <rschirone91(a)gmail.com> - 0.2.0-1
- Rebase to upstream version 0.2.0
commit 330bd26cc52f2b10a0b270ee95b82b22ad72c96d
Author: Riccardo Schirone <sirmy15(a)gmail.com>
Date: Tue Apr 20 09:52:25 2021 +0200
Add patch to avoid symbols collision
diff --git a/rizin-avoid-symbols-clashing.patch b/rizin-avoid-symbols-clashing.patch
new file mode 100644
index 0000000..c9eead1
--- /dev/null
+++ b/rizin-avoid-symbols-clashing.patch
@@ -0,0 +1,12 @@
+diff -up rizin-v0.2.0/meson.build.orig rizin-v0.2.0/meson.build
+--- rizin-v0.2.0/meson.build.orig 2021-04-19 17:36:21.437878209 +0200
++++ rizin-v0.2.0/meson.build 2021-04-19 17:36:35.151836507 +0200
+@@ -148,7 +148,7 @@ endif
+
+ if get_option('default_library') == 'shared'
+ if cc.has_argument('-fvisibility=hidden')
+- add_project_arguments('-fvisibility=hidden', language: 'c')
++ add_global_arguments('-fvisibility=hidden', language: 'c')
+ endif
+ endif
+
diff --git a/rizin.spec b/rizin.spec
index b893c87..d19e5fa 100644
--- a/rizin.spec
+++ b/rizin.spec
@@ -11,6 +11,10 @@ VCS:
https://github.com/rizinorg/rizin
Release: %{rel}%{?dist}
Source0:
https://github.com/%{gituser}/%{gitname}/releases/download/v%{version}/%{...
+# This patch is required to avoid exporting symbols of subprojects
+# See
https://github.com/rizinorg/rizin/pull/1050
+Patch1: rizin-avoid-symbols-clashing.patch
+
License: LGPLv3+ and GPLv2+ and BSD and MIT and ASL 2.0 and MPLv2.0 and zlib
# Rizin as a package is targeting to be licensed/compiled as LGPLv3+
# however during build for Fedora the GPL code is not omitted so effectively it
@@ -118,6 +122,7 @@ information
%prep
# Build from git release version
%setup -n %{gitname}-v%{version}
+%patch1 -p1
%build
# Whereever possible use the system-wide libraries instead of bundles
commit 4617338cd486ee1e848d38e163fdf142d4450156
Author: Riccardo Schirone <sirmy15(a)gmail.com>
Date: Mon Apr 12 17:09:28 2021 +0200
Rebase to upstream version 0.2.0
diff --git a/.gitignore b/.gitignore
index 87f5382..d82d0da 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/rizin-src-0.1.2.tar.xz
+/rizin-src-v0.2.0.tar.xz
diff --git a/rizin.spec b/rizin.spec
index ed692e2..b893c87 100644
--- a/rizin.spec
+++ b/rizin.spec
@@ -1,6 +1,6 @@
Name: rizin
Summary: UNIX-like reverse engineering framework and command-line tool-set
-Version: 0.1.2
+Version: 0.2.0
URL:
https://rizin.re/
VCS:
https://github.com/rizinorg/rizin
@@ -9,7 +9,7 @@ VCS:
https://github.com/rizinorg/rizin
%global rel 1
Release: %{rel}%{?dist}
-Source0:
https://github.com/%{gituser}/%{gitname}/releases/download/v%{version}/%{...
+Source0:
https://github.com/%{gituser}/%{gitname}/releases/download/v%{version}/%{...
License: LGPLv3+ and GPLv2+ and BSD and MIT and ASL 2.0 and MPLv2.0 and zlib
# Rizin as a package is targeting to be licensed/compiled as LGPLv3+
@@ -55,7 +55,7 @@ Provides: bundled(spp) = 1.2.0
# ./shlr/sdb/README.md
# sdb is a simple string key/value database based on djb's cdb
#
https://github.com/rizinorg/sdb
-Provides: bundled(sdb) = 01e4bd15397394ed592eb436e9bf70f5ad585c5b
+Provides: bundled(sdb) = 248f8950580ef344430603d408a08b4fd6664744
# ./shlr/sdb/src/json/README
#
https://github.com/quartzjer/js0n
@@ -117,25 +117,27 @@ information
%prep
# Build from git release version
-%setup -n %{gitname}-%{version}
+%setup -n %{gitname}-v%{version}
%build
# Whereever possible use the system-wide libraries instead of bundles
%meson \
- -Duse_sys_magic=true \
- -Duse_sys_zip=true \
- -Duse_sys_zlib=true \
- -Duse_sys_lz4=true \
- -Duse_sys_xxhash=true \
- -Duse_sys_openssl=true \
- -Duse_libuv=true \
- -Duse_sys_capstone=true \
+ -Duse_sys_magic=enabled \
+ -Duse_sys_libzip=enabled \
+ -Duse_sys_zlib=enabled \
+ -Duse_sys_lz4=enabled \
+ -Duse_sys_xxhash=enabled \
+ -Duse_sys_openssl=enabled \
+ -Duse_sys_libuv=enabled \
+ -Duse_sys_capstone=enabled \
%ifarch s390x
-Ddebugger=false \
%endif
-Denable_tests=false \
-Denable_rz_test=false \
- -Dlocal=disabled
+ -Dlocal=disabled \
+ -Dpackager="Fedora" \
+ -Dpackager_version="%{version}-%{release}"
%meson_build
%install
@@ -181,5 +183,8 @@ information
%changelog
+* Mon Apr 12 2021 Riccardo Schirone <rschirone91(a)gmail.com> - 0.2.0-1
+- Rebase to upstream version 0.2.0
+
* Tue Mar 30 2021 Riccardo Schirone <rschirone91(a)gmail.com> - 0.1.2-1
- Initial SPEC file
diff --git a/sources b/sources
index ace6492..a440341 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
SHA512 (rizin-src-0.1.2.tar.xz) =
f52987af5d1cd9f88a699610dfbb8118b23c5ce205c530a7b0c7481b06ee95a8e4d0d66297ca34c18e0b9366c963ea3244f37d66a7fda0ec6ffaa084f2ae7568
+SHA512 (rizin-src-v0.2.0.tar.xz) =
d9522423110553e4b0ac80bfce6edd4b642a1df74e76b77ab23a7b13a37a37a3858ad294e14742a349265ed509345fb0277b910de6814eee3b970a6b9b344d12
commit 8ee4cd7be66cd4e5b1a030388605b2d1eaffcf55
Author: Riccardo Schirone <sirmy15(a)gmail.com>
Date: Fri Apr 2 09:45:42 2021 +0200
Initial commit
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..87f5382
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/rizin-src-0.1.2.tar.xz
diff --git a/rizin.spec b/rizin.spec
new file mode 100644
index 0000000..ed692e2
--- /dev/null
+++ b/rizin.spec
@@ -0,0 +1,185 @@
+Name: rizin
+Summary: UNIX-like reverse engineering framework and command-line tool-set
+Version: 0.1.2
+URL:
https://rizin.re/
+VCS:
https://github.com/rizinorg/rizin
+
+%global gituser rizinorg
+%global gitname rizin
+%global rel 1
+
+Release: %{rel}%{?dist}
+Source0:
https://github.com/%{gituser}/%{gitname}/releases/download/v%{version}/%{...
+
+License: LGPLv3+ and GPLv2+ and BSD and MIT and ASL 2.0 and MPLv2.0 and zlib
+# Rizin as a package is targeting to be licensed/compiled as LGPLv3+
+# however during build for Fedora the GPL code is not omitted so effectively it
+# is GPLv2+.
+#
+# Some code has originally different license:
+# librz/asm/arch/ - GPLv2+, MIT, GPLv3
+# librz/bin/format/pe/dotnet - Apache License Version 2.0
+# librz/util/qrcode.c - MIT
+# shlr/java - Apache 2.0
+# shlr/sdb/src - MIT
+# shlr/lz4 - 3 clause BSD (system installed shared lz4 is used instead)
+# shlr/spp - MIT
+# shlr/tcc - LGPLv2+
+# shlr/udis86 - 2 clause BSD
+# shlr/spp - MIT
+
+BuildRequires: gcc
+BuildRequires: meson
+BuildRequires: ninja-build
+BuildRequires: file-devel
+BuildRequires: xxhash-devel
+BuildRequires: pkgconfig
+
+BuildRequires: pkgconfig(bzip2)
+BuildRequires: pkgconfig(libzip)
+BuildRequires: pkgconfig(zlib)
+BuildRequires: pkgconfig(liblz4)
+BuildRequires: pkgconfig(capstone) >= 3.0.4
+BuildRequires: pkgconfig(libuv)
+BuildRequires: pkgconfig(openssl)
+
+Requires: %{name}-common = %{version}-%{release}
+
+# Package contains several bundled libraries that are used in Fedora builds
+
+# ./shlr/spp/README.md
+# SPP stands for Simple Pre-Processor, a templating language.
+#
https://github.com/rizinorg/spp
+Provides: bundled(spp) = 1.2.0
+
+# ./shlr/sdb/README.md
+# sdb is a simple string key/value database based on djb's cdb
+#
https://github.com/rizinorg/sdb
+Provides: bundled(sdb) = 01e4bd15397394ed592eb436e9bf70f5ad585c5b
+
+# ./shlr/sdb/src/json/README
+#
https://github.com/quartzjer/js0n
+# JSON support for sdb
+Provides: bundled(js0n)
+
+# librz/util/regex/README
+# Modified OpenBSD regex to be portable
+# cvs -qd anoncvs@anoncvs.ca.openbsd.org:/cvs get -P src/lib/libc/regex
+# version from 2010/11/21 00:02:30, version of files ranges from v1.11 to v1.20
+Provides: bundled(openbsdregex) = 1.11
+
+# ./shlr/tcc/README.md
+# This is a stripped down version of tcc without the code generators and heavily
modified.
+Provides: bundled(tcc) = 0.9.26
+
+# ./librz/asm/arch/tricore/README.md
+# Based on code from
https://www.hightec-rt.com/en/downloads/sources/14-sources-for-tricore-v3...
+# part of binutils to read machine code for Tricore architecture
+# ./librz/asm/arch/ppc/gnu/
+# part of binutils to read machine code for ppc architecture
+# ./librz/asm/arch/arm/gnu/
+Provides: bundled(binutils) = 2.13
+
+# ./librz/asm/arch/avr/README
+# * This code has been ripped from vavrdisasm 1.6
+Provides: bundled(vavrdisasm) = 1.6
+
+
+%description
+Rizin is a free and open-source Reverse Engineering framework, providing a
+complete binary analysis experience with features like Disassembler,
+Hexadecimal editor, Emulation, Binary inspection, Debugger, and more.
+
+Rizin is a fork of radare2 with a focus on usability, working features and code
+cleanliness.
+
+
+%package devel
+Summary: Development files for the rizin package
+Requires: %{name}%{?_isa} = %{version}-%{release}
+Requires: file-devel
+Requires: openssl-devel
+
+%description devel
+Development files for the rizin package. See rizin package for more
+information.
+
+
+%package common
+Summary: Arch-independent SDB files for the rizin package
+BuildArch: noarch
+Requires: %{name} = %{version}-%{release}
+
+%description common
+Arch-independent SDB files used by rizin package. See rizin package for more
+information
+
+
+%prep
+# Build from git release version
+%setup -n %{gitname}-%{version}
+
+%build
+# Whereever possible use the system-wide libraries instead of bundles
+%meson \
+ -Duse_sys_magic=true \
+ -Duse_sys_zip=true \
+ -Duse_sys_zlib=true \
+ -Duse_sys_lz4=true \
+ -Duse_sys_xxhash=true \
+ -Duse_sys_openssl=true \
+ -Duse_libuv=true \
+ -Duse_sys_capstone=true \
+%ifarch s390x
+ -Ddebugger=false \
+%endif
+ -Denable_tests=false \
+ -Denable_rz_test=false \
+ -Dlocal=disabled
+%meson_build
+
+%install
+%meson_install
+%ldconfig_scriptlets
+
+
+%check
+# Do not run the unit testsuite yet - it pulls another big repository
+#
https://github.com/rizinorg/rizin-testbins from github
+
+
+
+%files
+%doc CONTRIBUTING.md DEVELOPERS.md README.md SECURITY.md BUILDING.md
+%license COPYING COPYING.LESSER
+%{_bindir}/r*
+%{_libdir}/librz_*.so.%{version}*
+%{_datadir}/%{name}/%{version}/fortunes/fortunes.*
+%{_mandir}/man1/rizin.1.*
+%{_mandir}/man1/rz*.1.*
+%{_mandir}/man7/rz-esil.7.*
+
+
+%files devel
+%{_includedir}/librz
+%{_libdir}/librz*.so
+%{_libdir}/pkgconfig/*.pc
+
+
+%files common
+%{_datadir}/%{name}/%{version}/cons
+%{_datadir}/%{name}/%{version}/fcnsign
+%{_datadir}/%{name}/%{version}/flag
+%{_datadir}/%{name}/%{version}/format
+%{_datadir}/%{name}/%{version}/hud
+%{_datadir}/%{name}/%{version}/magic
+%{_datadir}/%{name}/%{version}/opcodes
+%{_datadir}/%{name}/%{version}/syscall
+%dir %{_datadir}/%{name}
+%dir %{_datadir}/doc/%{name}
+%dir %{_datadir}/%{name}/%{version}
+
+
+%changelog
+* Tue Mar 30 2021 Riccardo Schirone <rschirone91(a)gmail.com> - 0.1.2-1
+- Initial SPEC file
diff --git a/sources b/sources
new file mode 100644
index 0000000..ace6492
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (rizin-src-0.1.2.tar.xz) =
f52987af5d1cd9f88a699610dfbb8118b23c5ce205c530a7b0c7481b06ee95a8e4d0d66297ca34c18e0b9366c963ea3244f37d66a7fda0ec6ffaa084f2ae7568