capstone - adding static subpackage BZ #2302041
This commit is contained in:
parent
dff95a4222
commit
5bb8deb74d
1 changed files with 19 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
Name: capstone
|
||||
Version: 5.0.1
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
Summary: A lightweight multi-platform, multi-architecture disassembly framework
|
||||
License: BSD-3-Clause AND BSD-4-Clause AND APSL-2.0 AND NCSA AND MIT
|
||||
URL: http://www.capstone-engine.org/
|
||||
|
|
@ -103,6 +103,15 @@ The %{name}-devel package contains libraries and header files for
|
|||
developing applications that use %{name}.
|
||||
|
||||
|
||||
%package static
|
||||
Summary: Static linking of %{name} library
|
||||
|
||||
%description static
|
||||
%{common_desc}
|
||||
The %{name}-static package contains files needed for static linking
|
||||
of %{name} library into static binaries.
|
||||
|
||||
|
||||
|
||||
%if %{with python2}
|
||||
%package -n python2-capstone
|
||||
|
|
@ -228,7 +237,7 @@ INCDIR="%{_includedir}" make install
|
|||
|
||||
# cleanup static libraries
|
||||
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
||||
find %{buildroot} -name '*.a' -exec rm -f {} ';'
|
||||
# find %%{buildroot} -name '*.a' -exec rm -f {} ';'
|
||||
|
||||
# add the manpage
|
||||
install -d -D %{buildroot}%{_mandir}/man1
|
||||
|
|
@ -306,6 +315,11 @@ popd
|
|||
%{_libdir}/pkgconfig/*
|
||||
|
||||
|
||||
%files static
|
||||
%license LICENSE.TXT LICENSE_LLVM.TXT
|
||||
%{_libdir}/libcapstone.a
|
||||
|
||||
|
||||
%if %{with python2}
|
||||
%files -n python2-capstone
|
||||
%{python2_sitelib}/*egg-info
|
||||
|
|
@ -334,6 +348,9 @@ popd
|
|||
|
||||
|
||||
%changelog
|
||||
* Wed Jul 31 2024 Michal Ambroz <rebus AT_ seznam.cz> - 5.0.1-6
|
||||
- add static subpackage for static building with capstone
|
||||
|
||||
* Wed Jul 17 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.1-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue