source: rtems-source-builder/source-builder/config/capstone-1-1.cfg @ 6685718

Last change on this file since 6685718 was 6685718, checked in by Kinsey Moore <kinsey.moore@…>, on 01/31/23 at 15:58:25

Revert github tarball hash changes

GitHub? has reverted the change that caused all these tarball hashes to
change and so we follow suit.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1#
2#
3# This configuration file configure's, make's and install's CAPSTONE.
4#
5
6%if %{release} == %{nil}
7%define release 1
8%endif
9
10#
11# Select Snapshot Macro Maps
12#
13%select capstone-snapshot
14
15#
16# The description.
17#
18Name:      capstone-%{capstone_version}-%{_host}-%{release}
19Summary:   Capstone is light-weight multiplatform disassembler.
20Version:   %{capstone_version}
21Release:   %{release}
22URL:       http://www.capstone-engine.org/
23
24#
25# Source
26#
27%source set capstone https://github.com/aquynh/capstone/archive/capstone-%{capstone_version}.tar.gz
28%hash sha512 capstone-%{capstone_version}.tar.gz 43c52024065b41b45eff9423341db3f3d5163fa7aa01b360faa30437786740c8f2c34c36faa04dced5308e09d8bd78df3bad0ab9c06f98612169edb176f83c36
29
30#
31# Prepare the source code.
32#
33%prep
34  build_top=$(pwd)
35
36  source_dir_capstone="capstone-%{capstone_version}"
37  %source setup capstone -q -n capstone-%{capstone_version}
38  %patch setup capstone -p1
39
40  cd ${build_top}
41
42%build
43  build_top=$(pwd)
44
45  %{build_directory}
46
47  cd ${source_dir_capstone}
48
49  %{__make} PREFIX=%{_prefix}
50
51  cd ${build_top}
52
53%install
54  build_top=$(pwd)
55
56  %{__rmdir} ${SB_BUILD_ROOT}
57
58  cd ${source_dir_capstone}
59
60  %{__make} DESTDIR=$SB_BUILD_ROOT PREFIX=%{_prefix} install
61
62  cd ${build_top}
Note: See TracBrowser for help on using the repository browser.