File mingw64-capstone.spec of Package mingw64-capstone
#
# spec file for package mingw64-capstone
#
# Copyright (c) 2025, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define realname capstone
%define lname mingw64-libcapstone
Name: mingw64-%{realname}
Version: 5.0.3
Release: 0
Summary: A multi-platform, multi-architecture disassembly framework
License: BSD-3-Clause
Group: Development/Tools/Building
URL: https://www.capstone-engine.org
Source: https://github.com/aquynh/%{realname}/archive/%{version}.tar.gz#/%{realname}-%{version}.tar.gz
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-cmake
BuildRequires: mingw64-cross-pkg-config
%_mingw64_package_header_debug
BuildArch: noarch
%description
Capstone is a disassembly framework.
disasm engine for binary analysis and reversing in the security community.
%package -n %{lname}
Summary: A multi-platform, multi-architecture disassembly framework
Group: System/Libraries
%description -n %{lname}
Capstone is a disassembly framework.
%package -n mingw64-%{realname}-devel
Summary: Development files to build upon libcapstone
Group: Development/Libraries/C and C++
Requires: %{lname} = %{version}
%description -n mingw64-%{realname}-devel
Development files to build upon libcapstone, C language only.
%_mingw64_debug_package
%prep
%autosetup -p1 -n %{realname}-%{version}
%build
%{_mingw64_cmake}
%{_mingw64_cmake_build}
%install
%{_mingw64_cmake_install}
%files
%license LICENSE*.TXT
%{_mingw64_bindir}/cstool.exe
%files -n %{lname}
%{_mingw64_bindir}/libcapstone.dll
%files -n mingw64-%{realname}-devel
%{_mingw64_includedir}/capstone
%{_mingw64_libdir}/libcapstone.dll.a
%{_mingw64_libdir}/pkgconfig/capstone.pc
%{_mingw64_libdir}/cmake/capstone
%changelog