From 2f976deecf62d3fea092686fd8eadf01dafd4a86 Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Wed, 28 Nov 2007 02:13:54 +0000 Subject: [PATCH] import --- .cvsignore | 1 + nvsetenv | 10 +++++++++ powerpc-utils.spec | 53 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 65 insertions(+) create mode 100644 nvsetenv create mode 100644 powerpc-utils.spec diff --git a/.cvsignore b/.cvsignore index e69de29..ff05528 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +powerpc-utils-1.0.6.tar.gz diff --git a/nvsetenv b/nvsetenv new file mode 100644 index 0000000..dabaa15 --- /dev/null +++ b/nvsetenv @@ -0,0 +1,10 @@ +#!/bin/sh + +if [ -z "$1" ]; then + nvram --print-config +elif [ -z "$2" ]; then + nvram --print-config="$1" +else + nvram --update-config "$1"="$2" +fi +exit $? diff --git a/powerpc-utils.spec b/powerpc-utils.spec new file mode 100644 index 0000000..e7e01b0 --- /dev/null +++ b/powerpc-utils.spec @@ -0,0 +1,53 @@ +Name: powerpc-utils +Version: 1.0.6 +Release: 1%{?dist} +Summary: Utilities for PowerPC platforms + +Group: System Environment/Base +License: CPL +URL: http://powerpc-utils.ozlabs.org/ +Source0: http://powerpc-utils.ozlabs.org/releases/powerpc-utils-1.0.6.tar.gz +Source1: nvsetenv +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: doxygen +ExclusiveArch: ppc ppc64 + +%description +Utilities for PowerPC platforms. + +%prep +%setup -q +sed -i s/744/755/ rules.mk + +%build +make CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT FILES= +install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}/nvsetenv + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%{_sbindir}/nvsetenv +%{_sbindir}/nvram +%{_sbindir}/snap +%{_sbindir}/bootlist +%{_sbindir}/ofpathname +%{_sbindir}/ppc64_cpu +%{_mandir}/man8/nvram.8.gz +%{_mandir}/man8/snap.8.gz +%{_mandir}/man8/bootlist.8.gz +%{_mandir}/man8/ofpathname.8.gz +%doc README COPYRIGHT Changelog + + + +%changelog +* Fri Nov 23 2007 David Woodhouse 1.0.6-1 +- New package, split from ppc64-utils diff --git a/sources b/sources index e69de29..cbab764 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +33de4697b9dc36be070ae67d545fd4fe powerpc-utils-1.0.6.tar.gz