念のため、
%define version 1.0 %define release 0 Summary: Hack Kit release file Summary(ja): Hack Kit リリースファイル Name: hack-release Version: %{version} Release: %{release} Copyright: BSD Group: System Environment/Base Distribution: Hack Kit Vendor: Yasunari Yamashita Packager: Yasunari Yamashitasrc.rpm と noarch.rpm を作成するBuildRoot: /tmp/hackkit-release-root BuildArchitectures: noarch %description Hack Kit release file %description -l ja Hack Kit リリースファイル %install mkdir -p ${RPM_BUILD_ROOT}/etc echo "Hack Kit %{version}" > ${RPM_BUILD_ROOT}/etc/hackkit-release %files %defattr(-,root,root) /etc/hackkit-release %changelog * Wed Mar 3 2004 Yasunari Yamashita - initial release
linkstationVine# rpm -ba hack-release.spec Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.10602 + umask 022 + cd /home/yamasita/yasunari/rpm/BUILD + mkdir -p /tmp/hackkit-release-root/etc + echo 'Hack Kit 1.0' + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip + /usr/lib/rpm/brp-strip-comment-note Processing files: hack-release-1.0-0 Finding Provides: (using /usr/lib/rpm/find-provides)... Finding Requires: (using /usr/lib/rpm/find-requires)... Wrote: /home/yamasita/yasunari/rpm/SRPMS/hack-release-1.0-0.src.rpm Wrote: /home/yamasita/yasunari/rpm/RPMS/noarch/hack-release-1.0-0.noarch.rpmhack-release-1.0-0.src.rpm と hack-release-1.0-0.noarch.rpm とが 作成された。