Last change
on this file since 5c01a44 was
5c01a44,
checked in by Kinsey Moore <kinsey.moore@…>, on 01/30/23 at 22:38:20
|
Update hashes for github-sourced tarballs
Github has changed the way it generates on-the-fly tarball requests
which has changed the hashes of the resulting tarballs. This adjusts the
affected tarball hashes as a stop-gap until a more permanent solution
can be devised.
|
-
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 | # |
---|
18 | Name: capstone-%{capstone_version}-%{_host}-%{release} |
---|
19 | Summary: Capstone is light-weight multiplatform disassembler. |
---|
20 | Version: %{capstone_version} |
---|
21 | Release: %{release} |
---|
22 | URL: 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 296c90fcca96117b710472fb55881cb932f4f1d45e847647c2357bfa15bf36fd7f4584db5ffdabf85703d9840e65085ba76f387e6a85555e0af941a344dcf95c |
---|
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.