File prtconf.spec of Package prtconf

# spec file for package prtconf (Version 1.3)
# Copyright (c) 2010 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

Name:           prtconf
Version:        1.3
Release:        1
Group:          System/Console
Summary:        SPARC OpenPROM dump utility
License:        GPLv2+

Source:         prtconf-1.3.tar.xz

ExclusiveArch:  %sparc
BuildRequires:  xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

This utility will dump SPARC OpenPROM device tree in the format
similar to Solaris prtconf, that is, in a nicely readable compact

%setup -q

sed -i '/^CFLAGS/d' Makefile
make %{?_smp_mflags} CFLAGS="%optflags"

rm -Rf "$b"
mkdir "$b"
mkdir -p "$b/%_sbindir" "$b/%_mandir/man8"
install -pm0755 eeprom prtconf "$b/%_sbindir/"
install -pm0644 {eeprom,prtconf}.8 "$b/%_mandir/man8/"

%doc %_mandir/*/*