forked from pool/acpica
104 lines
3.5 KiB
RPMSpec
104 lines
3.5 KiB
RPMSpec
#
|
|
# spec file for package acpica (Version 20090320)
|
|
#
|
|
# Copyright (c) 2009 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: acpica
|
|
Url: http://acpica.org
|
|
Version: 20090320
|
|
Release: 1
|
|
License: Intel ACPICA
|
|
%define src_dir acpica-unix-%{version}
|
|
Group: Development/Tools/Debuggers
|
|
Summary: This is a set of tools to display and debug your BIOS ACPI tables.
|
|
Source: %{src_dir}.tar.bz2
|
|
Patch1: acpica-override-CFLAGS.diff
|
|
Patch2: acpidump-override-CFLAGS.patch
|
|
Patch3: unaligned_acpidump.patch
|
|
Patch4: acpidump-cleanup.diff
|
|
Patch5: acpidump_adjust_to_new_acpica_headers.patch
|
|
Source2: acpidump.tar.bz2
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
ExclusiveArch: %ix86 ia64 x86_64
|
|
BuildRequires: bison flex
|
|
|
|
%description
|
|
The included tools share the same code as it is used in the ACPI
|
|
implementation of the kernel. The code of the acpica project is exactly
|
|
the same as the ACPI parser and interpreter code of the kernel and the
|
|
code gets synced regularly from the acpica project into the kernel.
|
|
E.g. if you identify bugs in the kernel's ACPI implementation it might
|
|
be easier to debug them in userspace if possible. If the bug is part of
|
|
the acpica code, it has to be submitted to the acpica project to get
|
|
merged into the mainline kernel sources.
|
|
|
|
iasl compiles ASL (ACPI Source Language) into AML (ACPI Machine
|
|
Language). This AML is suitable for inclusion as a DSDT in system
|
|
firmware. It also can disassemble AML, for debugging purposes.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
"Moore, Robert" <robert.moore@intel.com>
|
|
and other Intel people
|
|
|
|
%prep
|
|
%setup -n %{src_dir} -a 2
|
|
%patch1 -p1
|
|
%patch2 -p1
|
|
%patch3 -p1
|
|
%patch4 -p1
|
|
%patch5 -p1
|
|
|
|
%build
|
|
make -C acpidump CFLAGS="$RPM_OPT_FLAGS"
|
|
make -C compiler CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
|
make -C tools/acpisrc CFLAGS="$RPM_OPT_FLAGS"
|
|
make -C tools/acpixtract CFLAGS="$RPM_OPT_FLAGS"
|
|
# this needs total recompilation with other flags
|
|
cp compiler/iasl .
|
|
make clean -C compiler CFLAGS="$RPM_OPT_FLAGS"
|
|
make -C tools/acpiexec CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
|
|
|
%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
|
|
install -Dm 755 iasl %{buildroot}/usr/bin/iasl
|
|
install -Dm 755 tools/acpisrc/acpisrc %{buildroot}/usr/sbin/acpisrc
|
|
install -Dm 755 tools/acpiexec/acpiexec %{buildroot}/usr/bin/acpiexec
|
|
install -Dm 755 tools/acpixtract/acpixtract %{buildroot}/usr/bin/acpixtract
|
|
install -Dm 644 README %{buildroot}/%{_docdir}/%{name}/README
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
#/usr/sbin/acpidump
|
|
/usr/bin/iasl
|
|
/usr/bin/acpiexec
|
|
/usr/bin/acpixtract
|
|
/usr/sbin/acpisrc
|
|
/usr/sbin/acpidump
|
|
%doc %{_docdir}/%{name}
|
|
#/%{_mandir}/man8/*
|
|
|
|
%changelog
|
|
* Wed Apr 08 2009 trenn@suse.de
|
|
- Initial check-in: Version 20090320
|