6 Commits

Author SHA256 Message Date
71e9cdc105 Accepting request 1276754 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/1276754
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/capstone?expand=0&rev=6
2025-05-13 18:12:08 +00:00
043b7a8faf - Use %ldconfig_scriptlets
- Update to version 5.0.6:
  * Add little endian support for TMS320c64x
  * Full changelog at
    https://github.com/capstone-engine/capstone/compare/5.0.5...5.0.6

OBS-URL: https://build.opensuse.org/package/show/devel:tools/capstone?expand=0&rev=16
2025-05-12 07:47:38 +00:00
a0c9018d90 Accepting request 1267879 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/1267879
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/capstone?expand=0&rev=5
2025-04-09 19:49:21 +00:00
190664b0f1 - Update to version 5.0.5:
* Full changelog at
    https://github.com/capstone-engine/capstone/compare/4.0.2...5.0.5
- Use CMake for building
  * Include .cmake devel files

OBS-URL: https://build.opensuse.org/package/show/devel:tools/capstone?expand=0&rev=14
2025-04-08 11:08:41 +00:00
7f258ce2f9 Accepting request 1166189 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/1166189
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/capstone?expand=0&rev=4
2024-04-09 14:46:39 +00:00
5211d007f8 Accepting request 1165540 from home:Guillaume_G:branches:devel:tools
- Build with distro %{optflags}

OBS-URL: https://build.opensuse.org/request/show/1165540
OBS-URL: https://build.opensuse.org/package/show/devel:tools/capstone?expand=0&rev=12
2024-04-08 12:02:45 +00:00
5 changed files with 55 additions and 17 deletions

3
_service Normal file
View File

@@ -0,0 +1,3 @@
<services>
<service name="download_files" mode="manual" />
</services>

Binary file not shown.

3
capstone-5.0.6.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:240ebc834c51aae41ca9215d3190cc372fd132b9c5c8aa2d5f19ca0c325e28f9
size 7653660

View File

@@ -1,3 +1,28 @@
-------------------------------------------------------------------
Sun May 11 17:08:38 UTC 2025 - Eyad Issa <eyadlorenzo@gmail.com>
- Use %ldconfig_scriptlets
- Update to version 5.0.6:
* Add little endian support for TMS320c64x
* Full changelog at
https://github.com/capstone-engine/capstone/compare/5.0.5...5.0.6
-------------------------------------------------------------------
Sat Mar 29 18:41:48 UTC 2025 - Eyad Issa <eyadlorenzo@gmail.com>
- Update to version 5.0.5:
* Full changelog at
https://github.com/capstone-engine/capstone/compare/4.0.2...5.0.5
- Use CMake for building
* Include .cmake devel files
-------------------------------------------------------------------
Fri Apr 5 10:13:22 UTC 2024 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Build with distro %{optflags}
-------------------------------------------------------------------
Tue Jan 3 15:28:46 UTC 2023 - Martin Wilck <mwilck@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package capstone
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,20 +16,25 @@
#
%define sover 4
%global _lto_cflags %{?_lto_cflags} -ffat-lto-objects
%define sover 5
Name: capstone
Version: 4.0.2
Version: 5.0.6
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/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source: https://github.com/capstone-engine/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: ninja
BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: pkgconfig(python3)
%description
Capstone is a disassembly framework.
@@ -80,17 +85,22 @@ This package contains the Capstone bindings for Python.
%autosetup
%build
CAPSTONE_ARCHS="arm aarch64 mips powerpc sparc systemz x86" CAPSTONE_STATIC="yes" \
CFLAGS="%{optflags}" ./make.sh
%define __builder ninja
%cmake \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_STATIC_LIBS=ON \
-DCAPSTONE_BUILD_CSTEST=OFF \
-DCAPSTONE_BUILD_TESTS=OFF
%cmake_build
pushd bindings/python/
cd .. # back to the main source directory
pushd bindings/python/ || exit 1
%python3_build
popd
popd || exit 1
%install
CAPSTONE_ARCHS="arm aarch64 mips powerpc sparc systemz x86" \
LIBDIRARCH="%{_lib}" INCDIR="%{_includedir}" \
DESTDIR=%{buildroot} V=1 CAPSTONE_STATIC="yes" ./make.sh install
%cmake_install
install -m 755 -d %{buildroot}%{_docdir}/%{name}-doc/docs
install -m 644 -t %{buildroot}%{_docdir}/%{name}-doc/docs docs/README docs/*.pdf
@@ -109,8 +119,7 @@ sed -e '/^archive/d' -e 's|^libdir=.*|libdir=%{_libdir}|' \
%fdupes %{buildroot}
%post -n libcapstone%{sover} -p /sbin/ldconfig
%postun -n libcapstone%{sover} -p /sbin/ldconfig
%ldconfig_scriptlets -n libcapstone%{sover}
%files
%license LICENSE*.TXT
@@ -123,6 +132,7 @@ sed -e '/^archive/d' -e 's|^libdir=.*|libdir=%{_libdir}|' \
%{_includedir}/%{name}
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/cmake/capstone/
%files -n libcapstone-devel-static
%{_libdir}/lib%{name}.a