Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package capstone for openSUSE:Factory 
checked in at 2023-01-07 17:17:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/capstone (Old)
 and      /work/SRC/openSUSE:Factory/.capstone.new.1563 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "capstone"

Sat Jan  7 17:17:37 2023 rev:3 rq:1056673 version:4.0.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/capstone/capstone.changes        2020-08-17 
12:04:57.362680076 +0200
+++ /work/SRC/openSUSE:Factory/.capstone.new.1563/capstone.changes      
2023-01-07 17:19:25.534052576 +0100
@@ -1,0 +2,6 @@
+Tue Jan  3 15:28:46 UTC 2023 - Martin Wilck <[email protected]>
+
+- Enable static library, and add libcapstone-devel-static subpackage
+  (this is helpful for qemu-linux-user)
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ capstone.spec ++++++
--- /var/tmp/diff_new_pack.JC9vR3/_old  2023-01-07 17:19:25.894054724 +0100
+++ /var/tmp/diff_new_pack.JC9vR3/_new  2023-01-07 17:19:25.898054748 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package capstone
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -50,6 +50,14 @@
 %description -n libcapstone-devel
 Development files to build upon libcapstone, C language only.
 
+%package -n libcapstone-devel-static
+Summary:        Static library for capstone
+Group:          Development/Libraries/C and C++
+Requires:       libcapstone-devel = %{version}
+
+%description -n libcapstone-devel-static
+Statically linked libcapstone.
+
 %package doc
 Summary:        Documentation for capstone, a disassembly framework
 Group:          Documentation/Other
@@ -72,7 +80,7 @@
 %autosetup
 
 %build
-CAPSTONE_ARCHS="arm aarch64 mips powerpc sparc systemz x86" \
+CAPSTONE_ARCHS="arm aarch64 mips powerpc sparc systemz x86" 
CAPSTONE_STATIC="yes" \
   CFLAGS="%{optflags}" ./make.sh
 
 pushd bindings/python/
@@ -82,7 +90,7 @@
 %install
 CAPSTONE_ARCHS="arm aarch64 mips powerpc sparc systemz x86" \
   LIBDIRARCH="%{_lib}" INCDIR="%{_includedir}" \
-  DESTDIR=%{buildroot} V=1 CAPSTONE_STATIC=no ./make.sh install
+  DESTDIR=%{buildroot} V=1 CAPSTONE_STATIC="yes" ./make.sh install
 
 install -m 755 -d %{buildroot}%{_docdir}/%{name}-doc/docs
 install -m 644 -t %{buildroot}%{_docdir}/%{name}-doc/docs docs/README 
docs/*.pdf
@@ -116,6 +124,9 @@
 %{_libdir}/lib%{name}.so
 %{_libdir}/pkgconfig/%{name}.pc
 
+%files -n libcapstone-devel-static
+%{_libdir}/lib%{name}.a
+
 %files -n python3-capstone
 %{python3_sitelib}/%{name}/
 %{python3_sitelib}/%{name}*.egg-info

Reply via email to