File pmtools.spec of Package pmtools
#
# spec file for package pmtools (Version 20071116)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: pmtools
Url: http://acpica.org/downloads
Version: 20071116
Release: 44
%define acpica acpica-unix-20081031
License: GPL v2 or later
Group: Development/Tools/Other
AutoReqProv: on
Summary: ACPI Debugging Tools
Source: %{name}-%{version}.tar.bz2
Patch1: acpica-resource_string_warning.diff
Patch2: acpica-override-CFLAGS.diff
Patch3: pmtools-override-CFLAGS.diff
Patch4: unaligned_acpidump.patch
Patch5: acpidump-cleanup.diff
Source2: dmidecode-2.9.tar.bz2
Source3: %{acpica}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: %ix86 ia64 x86_64
BuildRequires: bison flex
%description
This is a set of tools to display your BIOS ACPI tables.
%prep
%setup -a 2 -a 3
# mkdir acpica-unix
# %setup -n %{name}-%{version}/acpica-unix -D -T -a 3
pwd
pushd %{acpica}
%patch1
%patch2 -p1
popd
%patch3 -p1
%patch4 -p1
%patch5
%build
make all CFLAGS="$RPM_OPT_FLAGS"
make -C dmidecode* CFLAGS="$RPM_OPT_FLAGS"
make -C %{acpica}/compiler CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
make -C %{acpica}/tools/acpisrc CFLAGS="$RPM_OPT_FLAGS"
make -C %{acpica}/tools/acpixtract CFLAGS="$RPM_OPT_FLAGS"
# this needs total recompilation with other flags
cp %{acpica}/compiler/iasl %{acpica}
make clean -C %{acpica}/compiler CFLAGS="$RPM_OPT_FLAGS"
make -C %{acpica}/tools/acpiexec CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
make -C madt CFLAGS="$RPM_OPT_FLAGS"
%install
install -dm 755 %{buildroot}/usr/sbin
install -dm 755 %{buildroot}/usr/bin
install -m 755 acpidump/acpidump %{buildroot}/usr/sbin
install -dm 755 %{buildroot}/%{_mandir}/man8
%ifarch ia64
for i in dmidecode ; do
%else
for i in dmidecode vpddecode ownership biosdecode ; do
%endif
install -Dm 755 dmidecode*/$i %{buildroot}/usr/sbin/
install -Dm 644 dmidecode*/man/$i.8 %{buildroot}/%{_mandir}/man8/
done
install -Dm 755 %{acpica}/iasl %{buildroot}/usr/bin/iasl
install -Dm 755 %{acpica}/tools/acpisrc/acpisrc %{buildroot}/usr/sbin/acpisrc
install -Dm 755 %{acpica}/tools/acpiexec/acpiexec %{buildroot}/usr/bin/acpiexec
install -Dm 755 %{acpica}/tools/acpixtract/acpixtract %{buildroot}/usr/bin/acpixtract
install -Dm 755 madt/madt %{buildroot}/usr/sbin
install -Dm 644 README %{buildroot}/%{_docdir}/%{name}/README
install -Dm 644 madt/README %{buildroot}/%{_docdir}/%{name}/README.madt
%files
%defattr(-,root,root)
/usr/sbin/*
/usr/bin/*
%doc %{_docdir}/%{name}
/%{_mandir}/man8/*
%changelog
* Mon Dec 01 2008 trenn@suse.de
- Updated acpica-unix to 20081031
-> -e enhancements for the disassembler
Disassembling SSDT with crossreferences to the DSDT should work
now with iasl -e DSDT.dat SSDT.dat
* Tue Aug 05 2008 trenn@suse.de
- Update acpica-unix to 20080729
- Fix download URL in spec file, moved to acpica.org
* Wed Mar 19 2008 schwab@suse.de
- Don't strip binaries.
- Fix unaligned accesses.
- Fix code duplication.
* Thu Feb 14 2008 trenn@suse.de
- Update acpica-unix to 20080213
Update pmtools to 20071116
* Wed Oct 24 2007 trenn@suse.de
- Update acpica-unix to 20071019
Update pmtools to 20070511
* Fri Apr 20 2007 schwab@suse.de
- Fix unaligned accesses.
* Thu Mar 29 2007 coolo@suse.de
- BuildRequire flex and bison
* Mon Feb 26 2007 jdelvare@suse.de
- updated dmidecode from version 2.8 to 2.9
* Mon Dec 11 2006 trenn@suse.de
- updated to pmtools 20061006.
- Added ExclusiveArch statement for x86_64 i386 ia64 architectures
* Mon Sep 25 2006 trenn@suse.de
- update to acpica-unix-20060912
* Mon Jul 17 2006 trenn@suse.de
- update to acpica-unix-20060707 and pmtools-20060606
* Mon Jun 19 2006 trenn@suse.de
- update acpica-unix to ver. 20060608
* Sat May 27 2006 schwab@suse.de
- Don't strip binaries.
* Fri May 26 2006 trenn@suse.de
- Interpret/Disassemble IRQ Resource Templates correctly, even if
no interrupt is given at declaration time(#160671).
* Tue May 16 2006 trenn@suse.de
- avoid IO keyword nameclash when used as Field declaration
- exit gracefully if dsdt.dsl file cannot be created (#152112)
- updated pmtools to version 20051111
- updated dmidecode from version 2.7 to 2.8
- updated acpica from 20060127 to 20060512
- deleted old iasl compiler howto (was from 2002...)
* Mon Feb 13 2006 trenn@suse.de
- avoid dmidecode to do unaligned accesses on IA64
* Thu Feb 09 2006 trenn@suse.de
- make acpiexec use ACPI Rev2 tables and 64-bit safe
* Thu Feb 02 2006 trenn@suse.de
- updated acpica-unix to version 20060127
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Jan 11 2006 ak@suse.de
- include vpddecode, biosdecode, ownership tools in rpm.
* Tue Nov 08 2005 dmueller@suse.de
- don't build as root
* Wed Nov 02 2005 trenn@suse.de
- update acpica-unix to version 20050930
- move executables that do not need root rights necessarily to
/usr/bin
* Wed Oct 19 2005 dkukawka@suse.de
- updated dmidecode to new version 2.7
* Wed Sep 28 2005 meissner@suse.de
- also compile madt.c with optflags.
* Thu Sep 22 2005 trenn@suse.de
- make pmtools gcc 4.1 safe:
- added -fno-strict-aliasing in acpica CFLAGS
- add override keyword to all CFLAGS initialisations in all Makefiles
- moved #include(s) some lines up
* Thu Sep 08 2005 trenn@suse.de
- updated acpica to version 20050902 (was not available sooner)
* Fri Sep 02 2005 trenn@suse.de
- updated pmtools to version 20050823
- updated acpica to version 20050624
- still provide old acpidmp tool from 20050309
as this is probably more stable as the new acpidump
* Fri Mar 18 2005 trenn@suse.de
- updated acpica tools (iasl compiler) to 20050309
* Sat Mar 05 2005 trenn@suse.de
- updated dmidecode to version 2.6
- updated pmtools to version 20031219
* Wed Mar 02 2005 trenn@suse.de
- update acpica tools (iasl compiler) to 20050211
* Sun Feb 06 2005 trenn@suse.de
- updated iasl compiler to version: 20041203
* Thu Jul 01 2004 zoz@suse.de
- updated dmidecode to 2.4 (Bug 42498)
added manpage for dmidecode
* Wed Feb 25 2004 trenn@suse.de
- updated iasl again.
- Deleted iasl binary from iasl...tar.gz, that was confusing because the used binary is the compiled one from acpica...tar.gz.
* Wed Jan 21 2004 trenn@suse.de
- - update iasl to 20030919
* Tue Jul 15 2003 zoz@suse.de
- updated acpica to 20031619
- fixed patch for acpica-unix-20030619/compiler/aslcompiler.y
- merged acpica-unix-compile-fixes.dif into acpica-unix-20030619.dif
* Fri Mar 07 2003 aj@suse.de
- Fix 64-bit problems.
* Mon Feb 17 2003 zoz@suse.de
- added dmidecode from
ftp://ftp.uk.linux.org/pub/linux/alan/Software/System/DMI/
- added iasl and acpisrc from
http://www.intel.com/technology/iapc/acpi/downloads/acpica-unix-20030123.tar.gz
* Sat Feb 08 2003 zoz@suse.de
- initial package: version 20010730
- don't build pmtest