]> git.pld-linux.org Git - packages/acpica.git/blob - acpica.spec
- updated to 20200430
[packages/acpica.git] / acpica.spec
1 #
2 # Conditional build:
3 %bcond_with     tests           # ASL tests
4
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
7 Name:           acpica
8 Version:        20200430
9 Release:        1
10 License:        GPL v2
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
16 Source2:        iasl.1
17 Source3:        acpibin.1
18 Source4:        acpidump.1
19 Source5:        acpiexec.1
20 Source6:        acpihelp.1
21 Source7:        acpinames.1
22 Source8:        acpisrc.1
23 Source9:        acpixtract.1
24 Patch0:         debian-big_endian.patch
25 Patch1:         debian-unaligned.patch
26 Patch6:         int-format.patch
27 Patch8:         facp.patch
28 Patch9:         template.patch
29 Patch11:        ppc64le.patch
30 Patch12:        arm7hl.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/
41 BuildRequires:  bison
42 BuildRequires:  flex
43 BuildRequires:  sed >= 4.0
44 Provides:       iasl
45 Obsoletes:      iasl
46 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47
48 %description
49 ACPI Component Architecture - an assembler and disassembler for DSDT
50 tables.
51
52 %description -l pl.UTF-8
53 Pakiet ACPI Component Architecture zawiera asembler i disasembler do
54 tablic DSDT.
55
56 %prep
57 %setup -q -n %{name}-unix-%{version}
58 tar -x --strip-components=1 -f %{SOURCE1}
59 %patch0 -p1
60 %patch1 -p1
61 %patch6 -p1
62 %patch8 -p1
63 %patch9 -p1
64 %patch11 -p1
65 %patch12 -p1
66 %patch13 -p1
67 %patch14 -p1
68 %patch16 -p1
69 %patch17 -p1
70 %patch18 -p1
71 %patch19 -p1
72 %patch20 -p1
73 %patch21 -p1
74 %patch22 -p1
75
76 %build
77 %define makeopts \\\
78         HOST=_LINUX \\\
79         CC="%{__cc}" \\\
80         OPT_CFLAGS="%{rpmcflags}" \\\
81         OPT_LDFLAGS="%{rpmcflags} %{rpmldflags}"
82
83 %{__make} %{makeopts}
84
85 %if %{with tests}
86 %{__make} %{makeopts} -C tests/templates
87
88 cd tests
89
90 # ASL tests
91 ./aslts.sh # relies on non-zero exit
92 [ $? -eq 0 ] || exit 1
93
94 # misc tests
95 #./run-misc-tests.sh $RPM_BUILD_ROOT%{_bindir} %{version}
96
97 # Template tests
98 cd templates
99 if [ -f diff.log ]; then
100         if [ -s diff.log ]; then
101                 # implies errors occurred
102                 exit 1
103         fi
104 fi
105 cd ..
106 %endif
107
108 %install
109 rm -rf $RPM_BUILD_ROOT
110
111 %{__make} install \
112         DESTDIR=$RPM_BUILD_ROOT
113
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
117
118 %{__rm} $RPM_BUILD_ROOT%{_bindir}/acpiexamples
119
120 %clean
121 rm -rf $RPM_BUILD_ROOT
122
123 %files
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*
This page took 0.087443 seconds and 4 git commands to generate.