最初のRPMを作成しようとしていますが、エラーが発生します。私の.rpmmarcosファイルは次のようになります。
%packager Your Name
%_topdir /home/snort/test
%_tmppath /home/snort/test/tmp
%_smp_mflags -j3
%__arch_install_post /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot
「rpmbuild-v-bbSPECS / test.spec」を実行すると、次のエラーが発生します:
+ STATUS = 0
+'[' 0 -ne 0']'
+ cd test-1 / home / snort / test / tmp / rpm-tmp.55712:行36:cd:test-1:そのようなファイルまたはディレクトリ
エラーはありません:/home/snort/test/tmp/rpm-tmp.55712(%prep)からの不正な終了ステータス
ファイルrpm-tmp.55712は次のように終了します。
cd '/home/snort/test/BUILD'
rm -rf 'test-1'
/bin/gzip -dc '/home/snort/test/SOURCES/test-1.c55.tar.gz' | tar -xvvf -
STATUS=$?
if [ $STATUS -ne 0 ]; then
exit $STATUS
fi
cd 'test-1'
rpmbuildは「rm-rf'test-1'」を実行して古い/不要なディレクトリを削除し、次にtest-1.c55.tar.gzファイルをuntarしてから、「cdtest-1」を試行すると思います。 "しかし、untarコマンドはディレクトリを作成しないため、スクリプトはエラーになります。今何をしたらいいのかわからない。
私のスペックファイル:more SPECS / test.spec
Name: test
Version: 1
Release: .c55
Summary: Just a Test
Group: MyJunk
License: GPL
URL: http://www.somesite.com
Source0: test-1.c55.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
This is just a test
<br>
%prep
%setup BUILD
%build<br>
%configure<br>
make %{?_smp_mflags}<br>
%install<br>
rm -rf $RPM_BUILD_ROOT<br>
make install DESTDIR=$RPM_BUILD_ROOT
<br>
%clean<br>
rm -rf $RPM_BUILD_ROOT<br>
%files
%defattr(-,root,root,-)
%doc
%changelog
何か案は?
ヘルプ
ゲイリーをありがとう