acpica-tools-vl.spec 13 KB

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