W załączniku spec do inteltool, buduje się z svn-a, wystarczy polecenie :
$ rpmbuild -bb inteltool.spec
Jeśli ktoś uzna to za stosowne, to niech przerobi na wersję "dropin".
-- 
Pozdrawiam,
Daniel Dawid Majewski
jabber:light-i/jid.pl
# $Revision:$, $Date:$
Summary:        Utility for recognize Intel HW (chipset/CPU) configuration 
information
Summary(pl.UTF-8):      Narzędzie do rozpoznawania informacji konfiguracyjnych 
w sprzęcie Intela (chipset/CPU)
Name:           inteltool
Version:        r4190.svn
Release:        1
License:        GPL v2
Group:          Applications/System
URL:            http://www.coreboot.org/Inteltool
BuildRequires:  pciutils-devel
BuildRequires:  rpm-build >= 4.3-0.20030610.21
BuildRequires:  subversion
BuildRequires:  zlib-devel
BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%define         _sbindir                /sbin
%define         _svn_url                
svn://coreboot.org/repos/trunk/util/inteltool
%define         _revision       %(echo %{version} | sed -e 
's/^r\\([[:digit:]]\\+\\)\\..*/\\1/')

%description
Inteltool is a small utility that provides some information about the
Intel CPU/chipset hardware configuration (register contents, MSRs
(need loading 'msr' kernel module), etc).

%description -l pl.UTF-8
Inteltool to podręczne narzędzie dostarczajace informacji o
konfiguracji sprzętowej chipsetu/CPU Intela (zawartość rejestrów,
MSR-y (potrzebne załadowanie modułu jądra 'msr') itp.).

%prep
%setup -q -c -T
_REV=%{_revision}
_SVN_LL=`svn log -l 1 %{_svn_url} | sed -n -e '2p'`
_LASTREV=`echo "$_SVN_LL" | sed -e 's/^r\\([[:digit:]]\\+\\)\\ .*/\\1/'`
_LASTREVD=`echo "$_SVN_LL" | awk '{print $5}'`
[ $_LASTREV -gt $_REV ] && echo "Newer revision found : r$_LASTREV from 
$_LASTREVD, notice to this spec !!!"
svn export --force -r $_REV %{_svn_url} ${PWD}

%build
%{__make} \
        CC='%{__cc}' \
        CFLAGS='%{rpmcflags}' \
        LDFLAGS='%{rpmldflags} -lpci -lz'

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8}
install %{name} $RPM_BUILD_ROOT%{_sbindir}
install %{name}.8 $RPM_BUILD_ROOT%{_mandir}/man8

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_sbindir}/%{name}
%{_mandir}/man8/%{name}.8*

%define date    %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <[email protected]>
All persons listed below can be reached at <cvs_login>@pld-linux.org

$Log:$
_______________________________________________
pld-devel-pl mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-devel-pl

Odpowiedź listem elektroniczym