## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Version: 4.1.0 %global sover %{echo %{version} | cut -d '.' -f 1,2} Name: zydis Release: %autorelease Summary: Fast and lightweight x86/x86-64 disassembler and code generation library License: MIT URL: https://github.com/zyantific/zydis Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz ExcludeArch: s390x BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: ninja-build BuildRequires: zycore-c-devel BuildRequires: doxygen # build man pages BuildRequires: rubygem-ronn-ng %description Zydis is fast and lightweight x86/x86-64 disassembler and code generation library. - Supports all x86 and x86-64 (AMD64) instructions and extensions - Optimized for high performance - No dynamic memory allocation ("malloc") - Thread-safe by design - Very small file-size overhead compared to other common disassembler libraries - Complete doxygen documentation - Absolutely no third party dependencies — not even libc - Should compile on any platform with a working C11 compiler - Tested on Windows, macOS, FreeBSD, Linux and UEFI, both user and kernel mode %package devel Summary: Development libraries and header files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %package doc Summary: Documentation for %{name} BuildArch: noarch %description doc The %{name}-doc package contains documentation for %{name}. %package tools Summary: Tools for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description tools The %{name}-tools package contains tools about %{name}. %prep %autosetup -p1 %build %cmake \ -GNinja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DZYAN_SYSTEM_ZYCORE=ON \ -DZYDIS_BUILD_SHARED_LIB=ON \ -DZYDIS_BUILD_MAN=ON \ -DZYDIS_BUILD_TESTS=ON \ %cmake_build %install %cmake_install %check %ctest %files %license LICENSE %{_libdir}/libZydis.so.%{sover}* %files devel %doc README.md %{_includedir}/Zydis/ %dir %{_libdir}/cmake/zydis %{_libdir}/cmake/zydis/*.cmake %{_libdir}/libZydis.so %files doc %{_docdir}/Zydis/ %files tools %{_bindir}/ZydisDisasm %{_bindir}/ZydisInfo %{_mandir}/man1/ZydisDisasm.1* %{_mandir}/man1/ZydisInfo.1* %changelog ## START: Generated by rpmautospec * Sat Jul 20 2024 Fedora Release Engineering - 4.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Feb 17 2024 Felix Wang - 4.1.0-1 - update to 4.1.0 * Sat Jan 27 2024 Fedora Release Engineering - 4.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Jan 03 2024 topazus - 4.0.0-3 - fix -doc subpackage build architecture * Wed Jan 03 2024 topazus - 4.0.0-2 - disable s390x build * Wed Jan 03 2024 topazus - 4.0.0-1 - initial import; rhbz#2256487 ## END: Generated by rpmautospec