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 Source0: https://acpica.org/sites/acpica/files/%{name}-unix-%{version}.tar.gz
13 # Source0-md5: 7888f1e1e67f1bbaf33f1a869d1f0482
14 Source1: https://acpica.org/sites/acpica/files/acpitests-unix-%{version}.tar.gz
15 # Source1-md5: 69cb94daf85cd5d5bd374c077cf66499
24 Patch0: debian-big_endian.patch
25 Patch1: debian-unaligned.patch
26 Patch6: int-format.patch
28 Patch9: template.patch
29 Patch11: ppc64le.patch
31 Patch13: armv7-str-fixes.patch
32 Patch14: big-endian-v2.patch
33 Patch16: mips-be-fix.patch
34 Patch17: cve-2017-13693.patch
35 Patch18: cve-2017-13694.patch
36 Patch19: cve-2017-13695.patch
37 Patch20: str-trunc-warn.patch
38 Patch21: ptr-cast.patch
39 Patch22: aslcodegen.patch
40 URL: https://acpica.org/
43 BuildRequires: sed >= 4.0
46 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49 ACPI Component Architecture - an assembler and disassembler for DSDT
52 %description -l pl.UTF-8
53 Pakiet ACPI Component Architecture zawiera asembler i disasembler do
57 %setup -q -n %{name}-unix-%{version}
58 tar -x --strip-components=1 -f %{SOURCE1}
80 OPT_CFLAGS="%{rpmcflags}" \\\
81 OPT_LDFLAGS="%{rpmcflags} %{rpmldflags}"
86 %{__make} %{makeopts} -C tests/templates
91 ./aslts.sh # relies on non-zero exit
92 [ $? -eq 0 ] || exit 1
95 #./run-misc-tests.sh $RPM_BUILD_ROOT%{_bindir} %{version}
99 if [ -f diff.log ]; then
100 if [ -s diff.log ]; then
101 # implies errors occurred
109 rm -rf $RPM_BUILD_ROOT
112 DESTDIR=$RPM_BUILD_ROOT
114 install -d $RPM_BUILD_ROOT%{_mandir}/man1
115 cp -p %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} %{SOURCE9} \
116 $RPM_BUILD_ROOT%{_mandir}/man1
118 %{__rm} $RPM_BUILD_ROOT%{_bindir}/acpiexamples
121 rm -rf $RPM_BUILD_ROOT
124 %defattr(644,root,root,755)
125 %doc changes.txt source/compiler/new_table.txt
126 %attr(755,root,root) %{_bindir}/acpibin
127 %attr(755,root,root) %{_bindir}/acpidump
128 %attr(755,root,root) %{_bindir}/acpiexec
129 %attr(755,root,root) %{_bindir}/acpihelp
130 %attr(755,root,root) %{_bindir}/acpinames
131 %attr(755,root,root) %{_bindir}/acpisrc
132 %attr(755,root,root) %{_bindir}/acpixtract
133 %attr(755,root,root) %{_bindir}/iasl
134 %{_mandir}/man1/acpibin.1*
135 %{_mandir}/man1/acpidump.1*
136 %{_mandir}/man1/acpiexec.1*
137 %{_mandir}/man1/acpihelp.1*
138 %{_mandir}/man1/acpinames.1*
139 %{_mandir}/man1/acpisrc.1*
140 %{_mandir}/man1/acpixtract.1*
141 %{_mandir}/man1/iasl.1*