source: projects/specs/trunk/a/acpica-tools/acpica-tools-vl.spec @ 12372

Revision 12372, 14.1 KB checked in by tomop, 4 years ago (diff)

updated 14 packages

acpica-tools-20190509-1

ethtool-5.4-1

flac-1.3.3-1

iproute-5.6.0-1

libcap-ng-0.7.10-1

libestr-0.1.11-2

libfastjson-0.99.8-4

libproxy-0.4.15-2

libpwquality-1.4.2-1

libunistring-0.9.10-2

mdadm-4.1-1

python-six-1.14.0-1

rsyslog-8.2002.0-1

speexdsp-1.2-0.16.rc3

Line 
1Name:           acpica-tools
2Version:        20190509
3Release:        1%{?_dist_release}
4Summary:        ACPICA tools for the development and debug of ACPI tables
5Group:          Development/Languages
6
7License:        GPLv2
8URL:            https://www.acpica.org/
9
10Source0:        https://acpica.org/sites/acpica/files/acpica-unix2-%{version}.tar.gz
11Source1:        https://acpica.org/sites/acpica/files/acpitests-unix-%{version}.tar.gz
12Source2:        README.Fedora
13Source3:        iasl.1
14Source4:        acpibin.1
15Source5:        acpidump.1
16Source6:        acpiexec.1
17Source7:        acpihelp.1
18Source8:        acpinames.1
19Source9:        acpisrc.1
20Source10:       acpixtract.1
21Source11:       acpiexamples.1
22Source12:       badcode.asl.result
23Source13:       grammar.asl.result
24Source14:       converterSample.asl.result
25Source15:       run-misc-tests.sh
26Source16:       COPYING
27
28Patch0:         big-endian.patch
29Patch1:         unaligned.patch
30Patch2:         OPT_LDFLAGS.patch
31Patch3:         int-format.patch
32Patch4:         f23-harden.patch
33Patch5:         template.patch
34Patch6:         ppc64le.patch
35Patch7:         arm7hl.patch
36Patch8:         big-endian-v2.patch
37Patch9:         simple-64bit.patch
38Patch10:        mips-be-fix.patch
39Patch11:        cve-2017-13693.patch
40Patch12:        cve-2017-13694.patch
41Patch13:        cve-2017-13695.patch
42Patch14:        str-trunc-warn.patch
43Patch15:        ptr-cast.patch
44Patch16:        aslcodegen.patch
45Patch17:        facp.patch
46
47BuildRequires:  bison patchutils flex
48
49# The previous iasl package contained only a very small subset of these tools
50# and it produced only the iasl package listed below; further, the pmtools
51# package -- which provides acpidump -- also provides a /usr/sbin/acpixtract
52# that we don't really want to collide with
53Provides:       acpixtract >= 20120913-7
54Provides:       iasl = %{version}-%{release}
55Obsoletes:      iasl < 20120913-8
56
57# The pmtools package provides an obsolete and deprecated version of the
58# acpidump command from lesswatts.org which has now been taken off-line.
59# ACPICA, however, is providing a new version and we again do not want to
60# conflict with the command name.
61Provides:       acpidump >= 20100513-5
62Provides:       pmtools = %{version}-%{release}
63Obsoletes:      pmtools < 20100513-6
64
65%description
66The ACPI Component Architecture (ACPICA) project provides an OS-independent
67reference implementation of the Advanced Configuration and Power Interface
68Specification (ACPI).  ACPICA code contains those portions of ACPI meant to
69be directly integrated into the host OS as a kernel-resident subsystem, and
70a small set of tools to assist in developing and debugging ACPI tables.
71
72This package contains only the user-space tools needed for ACPI table
73development, not the kernel implementation of ACPI.  The following commands
74are installed:
75   -- iasl: compiles ASL (ACPI Source Language) into AML (ACPI Machine
76      Language), suitable for inclusion as a DSDT in system firmware.
77      It also can disassemble AML, for debugging purposes.
78   -- acpibin: performs basic operations on binary AML files (e.g.,
79      comparison, data extraction)
80   -- acpidump: write out the current contents of ACPI tables
81   -- acpiexec: simulate AML execution in order to debug method definitions
82   -- acpihelp: display help messages describing ASL keywords and op-codes
83   -- acpinames: display complete ACPI name space from input AML
84   -- acpisrc: manipulate the ACPICA source tree and format source files
85      for specific environments
86   -- acpixtract: extract binary ACPI tables from acpidump output (see
87      also the pmtools package)
88
89This version of the tools is being released under GPLv2 license.
90
91%prep
92%setup -q -n acpica-unix2-%{version}
93gzip -dc %{SOURCE1} | tar -x --strip-components=1 -f -
94
95%patch0 -p1 -b .big-endian
96%patch1 -p1 -b .unaligned
97%patch2 -p1 -b .OPT_LDFLAGS
98%patch3 -p1 -b .int-format
99%patch4 -p1 -b .f23-harden
100# do not preserve a backup for this patch; it alters the results
101# of the template test case and forces it to fail
102%patch5 -p1
103%patch6 -p1 -b .ppc64le
104%patch7 -p1 -b .arm7hl
105%patch8 -p1 -b .big-endian-v2
106%patch9 -p1 -b .simple-64bit
107%patch10 -p1 -b .mips-be-fix
108%patch11 -p1 -b .cve-2017-13693
109%patch12 -p1 -b .cve-2017-13694
110%patch13 -p1 -b .cve-2017-13695
111%patch14 -p1 -b .str-trunc-warn
112%patch15 -p1 -b .ptr-cast
113%patch16 -p1 -b .aslcodegen
114%patch17 -p1 -b .facp
115
116cp -p %{SOURCE2} README.Fedora
117cp -p %{SOURCE3} iasl.1
118cp -p %{SOURCE4} acpibin.1
119cp -p %{SOURCE5} acpidump.1
120cp -p %{SOURCE6} acpiexec.1
121cp -p %{SOURCE7} acpihelp.1
122cp -p %{SOURCE8} acpinames.1
123cp -p %{SOURCE9} acpisrc.1
124cp -p %{SOURCE10} acpixtract.1
125cp -p %{SOURCE11} acpiexamples.1
126cp -p %{SOURCE12} badcode.asl.result
127cp -p %{SOURCE13} grammar.asl.result
128cp -p %{SOURCE14} converterSample.asl.result
129cp -p %{SOURCE15} tests/run-misc-tests.sh
130chmod a+x tests/run-misc-tests.sh
131cp -p %{SOURCE16} COPYING
132
133# spurious executable permissions on text files in upstream
134chmod a-x changes.txt
135chmod a-x source/compiler/new_table.txt
136
137
138%build
139CWARNINGFLAGS="\
140    -std=c99\
141    -Wall\
142    -Wbad-function-cast\
143    -Wdeclaration-after-statement\
144    -Werror\
145    -Wformat=2\
146    -Wmissing-declarations\
147    -Wmissing-prototypes\
148    -Wstrict-aliasing=0\
149    -Wstrict-prototypes\
150    -Wswitch-default\
151    -Wpointer-arith\
152    -Wundef\
153    -Waddress\
154    -Waggregate-return\
155    -Winit-self\
156    -Winline\
157    -Wmissing-declarations\
158    -Wmissing-field-initializers\
159    -Wnested-externs\
160    -Wold-style-definition\
161    -Wno-format-nonliteral\
162    -Wredundant-decls\
163    -Wempty-body\
164    -Woverride-init\
165    -Wlogical-op\
166    -Wmissing-parameter-type\
167    -Wold-style-declaration\
168    -Wtype-limits"
169
170export OPT_CFLAGS="%{optflags} $CWARNINGFLAGS"
171make %{_smp_mflags}
172
173%install
174# Install the binaries
175mkdir -p %{buildroot}%{_bindir}
176install -pD generate/unix/bin*/* %{buildroot}%{_bindir}/
177
178# Install the man pages
179mkdir -p %{buildroot}%{_mandir}/man1
180install -pDm 0644 *.1 %{buildroot}%{_mandir}/man1/
181
182
183%check
184cd tests
185
186# ASL tests
187./aslts.sh                         # relies on non-zero exit
188[ $? -eq 0 ] || exit 1
189
190# misc tests
191./run-misc-tests.sh %{buildroot}%{_bindir} %{version}
192
193# Template tests
194cd templates
195make
196if [ -f diff.log ]
197then
198    if [ -s diff.log ]
199    then
200        exit 1                  # implies errors occurred
201    fi
202fi
203cd ..
204
205
206%pre
207if [ -e %{_bindir}/acpixtract-acpica ]
208then
209    alternatives --remove acpixtract %{_bindir}/acpixtract-acpica
210fi
211if [ -e %{_bindir}/acpidump-acpica ]
212then
213    alternatives --remove acpidump %{_bindir}/acpidump-acpica
214fi
215
216%postun
217if [ -e %{_bindir}/acpixtract-acpica ]
218then
219    alternatives --remove acpixtract %{_bindir}/acpixtract-acpica
220fi
221if [ -e %{_bindir}/acpidump-acpica ]
222then
223    alternatives --remove acpidump %{_bindir}/acpidump-acpica
224fi
225
226
227%files
228%license COPYING
229%doc changes.txt source/compiler/new_table.txt
230%doc README.Fedora
231%{_bindir}/*
232%{_mandir}/*/*
233
234
235%changelog
236* Sun Apr 12 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 20190509-1
237- new upstream release.
238
239* Tue Feb 20 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 20180105-1
240- new upstream release.
241- dropped Patch0-6.
242- imported Patch0-12 from rawhide.
243
244* Sun Jul 13 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 20140424-1
245- initial build for Vine Linux
246
247* Fri Jun 6 2014 Dan Horák <dan[at]danny.cz> - 20140424-3
248- refresh the big endian patch so it applies correctly, fixes build on big endians
249
250* Thu May 22 2014 Al Stone <ahs3@redhat.com> - 20140424-2
251- Add ppc64le as a 64-bit arch in run-misc-tests.sh.  Closes BZ#1098614.
252- Re-enable big-endian support in iasl.
253
254* Wed May 7 2014 Al Stone <ahs3@redhat.com> - 20140424-1
255- Update to latest upstream.  Closes BZ#1091189.
256
257* Fri Apr 4 2014 Al Stone <ahs3@redhat.com> - 20140325-1
258- Update to latest upstream.  Closes BZ#1080791.
259- Incorporated patch to fix broken symlinks.  Closes BZ#1074256.
260- Add patch to fix missing .o files in aapits tests.
261
262* Wed Feb 26 2014 Al Stone <ahs3@redhat.com> - 20140214-1
263- Update to latest upstream.  Closes BZ#1053396.
264- Remove temporary patch so that AAPITS will build and run.
265- Add patch to print asllookup.c warning properly on big endian;
266  Closes BZ#1069178.
267
268* Tue Jan 21 2014 Al Stone <ahs3@redhat.com> - 20140114-1
269- Update to latest upstream.  Closes BZ#1053396.
270- Remove temporary patch to add Makefile missing from upstream tarball.
271- Add temporary patch so that AAPITS will build and run.
272
273* Tue Jan 7 2014 Al Stone <ahs3@redhat.com> - 20131218-1
274- Update to latest upstream.  Closes BZ#1044951.
275- Add temporary patch to add Makefile missing from upstream tarball.
276
277* Mon Nov 25 2013 Al Stone <ahs3@redhat.com> - 20131115-1
278- Update to latest upstream.  Closes BZ#1031255.
279- Add a little code to workaround build problems that can occur (the tests
280  will fail) when a build starts before midnight, but ends after midnight
281- Remove patch to include Makefile.config that was missing from tarball.
282
283* Wed Oct 09 2013 Al Stone <ahs3@redhat.com> - 20130927-1
284- Update to latest upstream.  Closes BZ#1013090.
285- Add temporary patch to include Makefile.config being missing from tarball.
286
287* Fri Sep 13 2013 Michael Schwendt <mschwendt@fedoraproject.org> - 20130823-5
288- correct iasl obs_ver
289
290* Tue Sep 10 2013 Dean Nelson <dnelson@redhat.com> - 20130823-4
291- Fix run-misc-tests.sh script to properly set the number of BITS to 64
292  when run on a s390x system.
293
294* Tue Sep 10 2013 Michael Schwendt <mschwendt@fedoraproject.org> - 20130823-3
295- correct pmtools obs_ver
296
297* Tue Aug 27 2013 Al Stone <ahs3@redhat.com> - 20130823-2
298- Add in a copy of the GPLv2 text in order to comply with the requirement
299  to always redistribute the terms of the license.
300
301* Mon Aug 26 2013 Al Stone <ahs3@redhat.com> - 20130823-1
302- Update to latest upstream source.
303
304* Tue Aug 20 2013 Al Stone <ahs3@redhat.com> - 20130725-2
305- Fix several rpmlint items (listed below)
306- Add versions to explicit provides for acpixtract, acpidump
307- Not all setup steps used -q
308- Setup executable test script (run-misc-tests.sh) differently
309- Removed unneeded commented out line with macros in it
310- Removed mixed use of spaces and tabs (all spaces now)
311- Corrected source URLs (upstream moved)
312
313* Sun Aug 18 2013 Al Stone <ahs3@redhat.com> - 20130725-1
314- Update to latest upstream source.
315
316* Wed Jul 24 2013 Al Stone <ahs3@redhat.com> - 20130626-1
317- Update to latest upstream source.
318- Move acpidump to acpidump-acpica so it be an alternative properly
319- Add basic man page for acpidump
320- Enable use of AAPITS tests during the check step
321
322* Sun Jun 02 2013 Al Stone <ahs3@redhat.com> - 20130517-2
323- Correct an oversight: we provide an acpidump in conflict with the
324  version in pmtools (which appears to be dead upstream) but had not
325  made it an alternative before
326
327* Tue May 28 2013 Al Stone <ahs3@redhat.com> - 20130517-1
328- Update to latest upstream source.
329- Remove acpica-tools-config.patch -- now in upstream
330- Remove iasl-signed-char.patch -- now in upstream
331- Updated debian-big_endian.patch
332- Updated debian-unaligned.patch
333
334* Mon May 13 2013 Al Stone <ahs3@redhat.com> - 20130328-1
335- Update to latest upstream source.
336
337* Wed Mar 20 2013 Al Stone <ahs3@redhat.com> - 20130214-2
338- Incorporate use of optflags macro in the build.
339- Remove extraneous rm -rf of buildroot.
340- Remove extraneous use of defattr in the files section.
341- Incorporate use of parallel make.
342- Remove extraneous use of the clean section.
343- Use simpler globbing in the files section.
344- Use simpler globbing in the install section.
345- Remove obsolete git notes from README.Fedora.
346- Remove ExcludeArch restrictions.
347
348* Mon Feb 18 2013 Al Stone <ahs3@redhat.com> - 20130214-1
349- New upstream.
350- Remove most of the config file patch; still need to remove -m{32,64}.
351- Clarify the licensing; this source is dual-licensed and is being released
352  under the GPLv2 as allowed by the original Intel license.
353- Redo the misc tests so they compare results properly.
354
355* Wed Feb 06 2013 Al Stone <ahs3@redhat.com> - 20130117-6
356- Added a zero-fill to a date used in comparing testing results so that the
357  comparison would be correct on days numbered < 10.
358
359* Thu Jan 31 2013 Al Stone <ahs3@redhat.com> - 20130117-5
360- Simplify versioning scheme and revert to the original scheme in use by
361  iasl, which is use the latest official tarball date (2013017) as the
362  version and 1%{?dist} as the release, to be incremented for packaging
363  and bug fixes as needed.
364
365* Wed Jan 30 2013 Al Stone <ahs3@redhat.com> - 20130117-4
366- Do a little reset: go back to using just the original upstream tarball
367  instead of the latest git; the snapshot approach was more complicated
368  than needed.
369- Upstream tarballs split commands from test suites, so had to add the
370  test suite back in as another Source: file.
371- Change versioning scheme to include the APCI specification level (5.0),
372  the latest official tarball date (2013017) and a revision level  (the
373  .1 at the end) for packaging and bug fixes as needed.
374- Changed the License field to reflect the source tarball change; the release
375  tarball is dual-licensed, Intel ACPI or GPLv2.
376- Updated patches to apply cleanly as needed.
377- Corrected Obsoletes and Provides version numbers.
378
379* Mon Jan 28 2013 Al Stone <ahs3@redhat.com> - 20130117-3
380- Reconcile Fedora and Debian patches to be as alike as possible
381
382* Mon Jan 28 2013 Al Stone <ahs3@redhat.com> - 20130117-2
383- Verify ExcludeArch restrictions -- the architectures excluded can have
384  no use for these tools.  Hardware support for ACPI is simply not
385  implemented for them.
386- Corrected versioning to note this source came from a git pull.
387- Add License file as upstream has not yet provided one (and has not for
388  many years).
389- Insert properly versioned Provides and Obsoletes for iasl.
390- Corrected files to use man.1* (vs man.1.gz) to allow flexibility in the
391  compression being used.
392
393* Wed Jan 23 2013 Al Stone <ahs3@redhat.com> - 20130117-1
394- Clone from the current iasl package, with the intent of replacing it
395- Update source to latest upstream
396- NB: ACPICA documentation would normally be included in a source tarball.
397  But, since it is not clearly redistributable, it is not included in the
398  source RPM for this package.
399- Build all ACPICA tools, not just iasl (and hence the package replacement)
400- Add in brief man pages
401- Set up acpixtract from this package as an alternative to the same command
402  in the pmtools package
403- Run the check step once built
404
Note: See TracBrowser for help on using the repository browser.