3 %bcond_with tests # ASL tests
5 Summary: ACPI Component Architecture - an assembler and disassembler for DSDT tables
6 Summary(pl.UTF-8): ACPI CA - asembler i disasembler dla tablic DSDT
11 Group: Development/Tools
12 #Source0Download: https://acpica.org/downloads
13 Source0: https://acpica.org/sites/acpica/files/%{name}-unix2-%{version}.tar.gz
14 # Source0-md5: 5721db851442be86054d45acd1dcacef
15 Source1: https://acpica.org/sites/acpica/files/acpitests-unix-%{version}.tar.gz
16 # Source1-md5: 9902b30fd402852a90a4ec59e471c5ff
24 Patch0: 0001-Add-in-basic-infrastructure-for-big-endian-support.patch
25 Patch1: 0002-Modify-utility-functions-to-be-endian-agnostic.patch
26 Patch2: 0003-Always-display-table-header-content-in-human-readabl.patch
27 Patch3: 0004-Re-enable-support-for-big-endian-machines.patch
28 Patch4: 0005-Correct-an-endian-ness-problem-when-converting-ASL-t.patch
29 Patch5: 0006-Use-more-reliable-ACPI_COPY_NAMSEG-in-GPE-name-check.patch
30 Patch6: 0007-Handle-dumping-Unicode-properly-when-big-endian.patch
31 Patch7: 0008-Support-MADT-aka-APIC-in-a-big-endian-world.patch
32 Patch8: 0009-Support-ASF-tables-in-a-big-endian-world.patch
33 Patch9: 0010-Support-CPEP-tables-in-a-big-endian-world.patch
34 Patch10: 0011-Support-DBG2-table-in-a-big-endian-world.patch
35 Patch11: 0012-Support-DMAR-in-a-big-endian-world.patch
36 Patch12: 0013-Support-DRTM-in-a-big-endian-world.patch
37 Patch13: 0014-Support-EINJ-in-a-big-endian-world.patch
38 Patch14: 0015-Support-ERST-in-a-big-endian-world.patch
39 Patch15: 0016-Support-FADT-aka-FACP-in-a-big-endian-world.patch
40 Patch16: 0017-Support-most-FPDTs-in-a-big-endian-world.patch
41 Patch17: 0018-Support-GTDT-in-a-big-endian-world.patch
42 Patch18: 0019-Support-HEST-in-a-big-endian-world.patch
43 Patch19: 0020-Support-RSDT-RSD-PTR-in-a-big-endian-world.patch
44 Patch20: 0021-Support-XSDT-in-a-big-endian-world.patch
45 Patch21: 0022-Support-SRAT-in-a-big-endian-world.patch
46 Patch22: 0023-Support-SLIT-in-a-big-endian-world.patch
47 Patch23: 0024-Support-MSCT-in-a-big-endian-world.patch
48 Patch24: 0025-Support-MPST-in-a-big-endian-world.patch
49 Patch25: 0026-Support-NFIT-in-a-big-endian-world.patch
50 Patch26: 0027-Support-SDEV-in-a-big-endian-world.patch
51 Patch27: 0028-Support-HMAT-in-a-big-endian-world.patch
52 Patch28: 0029-Support-PDTT-in-a-big-endian-world.patch
53 Patch29: 0030-Support-PPTT-in-a-big-endian-world.patch
54 Patch30: 0031-Support-PCCT-in-a-big-endian-world.patch
55 Patch31: 0032-Support-WDAT-in-a-big-endian-world.patch
56 Patch32: 0033-Support-TCPA-in-a-big-endian-world.patch
57 Patch33: 0034-Support-STAO-in-a-big-endian-world.patch
58 Patch34: 0035-Support-SLIC-and-MSDM-in-a-big-endian-world.patch
59 Patch35: 0036-Support-MCFG-in-a-big-endian-world.patch
60 Patch36: 0037-Support-LPIT-in-a-big-endian-world.patch
61 Patch37: 0038-Support-PMTT-in-a-big-endian-world.patch
62 Patch38: 0039-Support-TPM2-in-a-big-endian-world.patch
63 Patch39: 0040-Support-S3PT-in-a-big-endian-world.patch
64 Patch40: 0041-Support-IORT-in-a-big-endian-world.patch
65 Patch41: 0042-Support-IVRS-in-a-big-endian-world.patch
66 Patch42: 0043-Support-DSDT-SSDT-in-a-big-endian-world.patch
67 # skipped in Fedora(?)
68 #Patch43: 0044-Initial-support-for-WPBT-in-big-endian-needs-more.patch
69 Patch44: 0045-CSRT-fixed-use-of-optional-ResourceInfo.patch
70 Patch45: 0046-Support-PHAT-in-a-big-endian-world.patch
71 Patch46: 0047-Support-PRMT-in-a-big-endian-world.patch
72 Patch47: 0048-Support-RGRT-in-a-big-endian-world.patch
73 Patch48: 0049-Support-SVKL-in-a-big-endian-world.patch
74 Patch100: %{name}-unaligned.patch
75 Patch101: %{name}-OPT_LDFLAGS.patch
76 Patch102: int-format.patch
77 Patch104: template.patch
78 Patch105: arm7hl.patch
79 Patch106: %{name}-simple-64bit.patch
80 Patch107: mips-be-fix.patch
81 Patch108: cve-2017-13693.patch
82 Patch109: cve-2017-13694.patch
83 Patch110: cve-2017-13695.patch
84 Patch111: str-trunc-warn.patch
85 Patch112: ptr-cast.patch
86 Patch113: armv7-str-fixes.patch
87 Patch114: %{name}-dbtest.patch
88 Patch115: %{name}-ull-32bit.patch
89 Patch116: %{name}-dangling-ptr.patch
90 Patch117: %{name}-uuid-len.patch
91 Patch200: %{name}-verbose.patch
92 URL: https://acpica.org/
93 BuildRequires: bison >= 2.5.3
94 BuildRequires: flex >= 2.4.1
95 BuildRequires: sed >= 4.0
97 Obsoletes: iasl < 20061110
98 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
101 ACPI Component Architecture - an assembler and disassembler for DSDT
104 %description -l pl.UTF-8
105 Pakiet ACPI Component Architecture zawiera asembler i disasembler do
109 %setup -q -n %{name}-unix2-%{version}
110 tar -x --strip-components=1 -f %{SOURCE1}
182 OPT_CFLAGS="%{rpmcflags}" \\\
183 OPT_LDFLAGS="%{rpmcflags} %{rpmldflags}"
185 %{__make} %{makeopts}
188 %{__make} %{makeopts} -C tests/templates
193 ./aslts.sh # relies on non-zero exit
194 [ $? -eq 0 ] || exit 1
197 #./run-misc-tests.sh $RPM_BUILD_ROOT%{_bindir} %{version}
201 if [ -f diff.log ]; then
202 if [ -s diff.log ]; then
203 # implies errors occurred
211 rm -rf $RPM_BUILD_ROOT
214 DESTDIR=$RPM_BUILD_ROOT \
217 install -d $RPM_BUILD_ROOT%{_mandir}/man1
218 cp -p %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE8} %{SOURCE9} \
219 $RPM_BUILD_ROOT%{_mandir}/man1
221 %{__rm} $RPM_BUILD_ROOT%{_bindir}/acpiexamples
224 rm -rf $RPM_BUILD_ROOT
227 %defattr(644,root,root,755)
228 %doc changes.txt source/compiler/new_table.txt
229 %attr(755,root,root) %{_bindir}/acpibin
230 %attr(755,root,root) %{_bindir}/acpidump
231 %attr(755,root,root) %{_bindir}/acpiexec
232 %attr(755,root,root) %{_bindir}/acpihelp
233 %attr(755,root,root) %{_bindir}/acpisrc
234 %attr(755,root,root) %{_bindir}/acpixtract
235 %attr(755,root,root) %{_bindir}/iasl
236 %{_mandir}/man1/acpibin.1*
237 %{_mandir}/man1/acpidump.1*
238 %{_mandir}/man1/acpiexec.1*
239 %{_mandir}/man1/acpihelp.1*
240 %{_mandir}/man1/acpisrc.1*
241 %{_mandir}/man1/acpixtract.1*
242 %{_mandir}/man1/iasl.1*