commit
98e937f3f0
@ -1,7 +1,7 @@
|
||||
%bcond_with java
|
||||
Name: capstone
|
||||
Version: 4.0.1
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: A lightweight multi-platform, multi-architecture disassembly framework
|
||||
License: BSD
|
||||
URL: http://www.capstone-engine.org/
|
||||
@ -10,7 +10,6 @@ Source0: https://github.com/aquynh/%{name}/archive/%{version}.tar.gz#/%{nam
|
||||
Patch0: 0001-Fix-include-path-in-pkg-config-for-Makefile-too-1339.patch
|
||||
|
||||
%global with_python3 1
|
||||
%global with_python2 1
|
||||
|
||||
BuildRequires: gcc git capstone
|
||||
|
||||
@ -18,10 +17,6 @@ BuildRequires: gcc git capstone
|
||||
Buildrequires: jna java-devel
|
||||
%endif
|
||||
|
||||
%if 0%{?with_python2}
|
||||
BuildRequires: python2 python2-devel python2-setuptools
|
||||
%endif
|
||||
|
||||
%if 0%{?with_python3}
|
||||
BuildRequires: python%{python3_pkgversion} python%{python3_pkgversion}-devel python%{python3_pkgversion}-setuptools
|
||||
%endif
|
||||
@ -37,20 +32,6 @@ Requires:%{name} = %{version}-%{release}
|
||||
%description -n %{name}-devel
|
||||
Development headers and libraries to build upon %{name}
|
||||
|
||||
%if 0%{?with_python2}
|
||||
%package -n python2-capstone
|
||||
Summary: Python bindings for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Provides: %{name}-python = %{version}-%{release}
|
||||
Provides: %{name}-python%{?_isa} = %{version}-%{release}
|
||||
Obsoletes: %{name}-python < %{version}-%{release}
|
||||
%{?python_provide:%python_provide python2-capstone}
|
||||
|
||||
%description -n python2-capstone
|
||||
%{common_desc}
|
||||
Python bindings for %{name}.
|
||||
%endif
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%package -n python%{python3_pkgversion}-capstone
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
@ -87,7 +68,6 @@ grep -v archive capstone.pc > capstone.pc.tmp
|
||||
mv capstone.pc.tmp capstone.pc
|
||||
|
||||
pushd bindings/python
|
||||
%py2_build
|
||||
%if 0%{?with_python3}
|
||||
%py3_build
|
||||
%endif
|
||||
@ -97,8 +77,6 @@ popd
|
||||
pushd bindings/java
|
||||
%if 0%{?with_python3}
|
||||
make PYTHON2=%{__python3} PYTHON3=%{__python3} CFLAGS="%{optflags}"
|
||||
%else
|
||||
make PYTHON2=%{__python2} PYTHON3=%{__python2} CFLAGS="%{optflags}"
|
||||
%endif
|
||||
popd
|
||||
%endif
|
||||
@ -110,10 +88,6 @@ INCDIR="%{_includedir}" make install
|
||||
cp -a %{_libdir}/libcapstone.so.3 %{buildroot}%{_libdir}
|
||||
|
||||
pushd bindings/python
|
||||
%if 0%{?with_python2}
|
||||
%py2_install
|
||||
%endif
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%py3_install
|
||||
%endif
|
||||
@ -142,11 +116,6 @@ install -D -p -m 0644 bindings/java/%{name}.jar %{buildroot}/%{_javadir}/%{name
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/pkgconfig/*
|
||||
|
||||
%if 0%{?with_python2}
|
||||
%files -n python2-capstone
|
||||
%{python2_sitelib}/*egg-info
|
||||
%{python2_sitelib}/%{name}
|
||||
%endif
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%files -n python%{python3_pkgversion}-capstone
|
||||
@ -160,6 +129,11 @@ install -D -p -m 0644 bindings/java/%{name}.jar %{buildroot}/%{_javadir}/%{name
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Fri Oct 30 2020 wangjie<wangjie294@huawei.com> -4.0.1-3
|
||||
- Type:NA
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC:remove python2
|
||||
* Mon Oct 28 2019 caomeng <caomeng5@huawei.com> - 4.0.1-2
|
||||
- Type:NA
|
||||
- ID:NA
|
||||
|
||||
4
capstone.yaml
Normal file
4
capstone.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: aquynh/capstone
|
||||
tag_prefix: ^v
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user