Revision 129,
1.9 KB
checked in by yasumichi, 15 years ago
(diff) |
apply new examples
|
Rev | Line | |
---|
[129] | 1 | #---------SPEC ファイルの例 (#から始まる行は、コメント行です)-------- |
---|
| 2 | |
---|
| 3 | # 基本情報 |
---|
[122] | 4 | Summary: hoge is a harehare horehore |
---|
[129] | 5 | Summary(ja): hoge は harehare な horehore です。 |
---|
[122] | 6 | Name: hoge |
---|
| 7 | Version: 1.1 |
---|
[129] | 8 | Release: 1%{?_dist_release} |
---|
| 9 | License: GPL2 |
---|
[122] | 10 | Group: Local |
---|
[129] | 11 | URL: http://www.fugahogo.com/hogehoge.html |
---|
| 12 | Vendor: Project Vine |
---|
| 13 | Distribution: Vine Linux |
---|
| 14 | Packager: yourid,otherid |
---|
[122] | 15 | Packager: Jun Nishii <jun@vinelinux.org> |
---|
| 16 | |
---|
[129] | 17 | # パッケージの作成時に必要となる情報 |
---|
| 18 | Source: %{name}-%{version}.tar.gz |
---|
| 19 | Patch: %{name}.patch.gz |
---|
| 20 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 21 | |
---|
| 22 | # 依存情報 |
---|
| 23 | Requires: piyo |
---|
| 24 | BuildRequires: piyo-devel |
---|
| 25 | |
---|
| 26 | # 詳しい解説 |
---|
[122] | 27 | %description |
---|
| 28 | Hoge is a harehare horehore and convenient for fugafuga. |
---|
| 29 | Enjoy! |
---|
| 30 | |
---|
| 31 | %description -l ja |
---|
| 32 | hoge は harehare な horehore で、fugafuga するときなどとても便利なツー |
---|
| 33 | ルです。みんなでなかよく使いましょう。 |
---|
| 34 | |
---|
[129] | 35 | # スクリプト部 |
---|
[122] | 36 | %prep #rpmを構築する前の準備です。 |
---|
[129] | 37 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
[122] | 38 | |
---|
| 39 | %setup #ソースをBUILDに展開します。 |
---|
| 40 | %patch -p1 #パッチをあてます。 |
---|
| 41 | |
---|
| 42 | %build #makeのための手順を書きます。 |
---|
[129] | 43 | %{__make} |
---|
| 44 | (cd man; %{__make} man) |
---|
[122] | 45 | |
---|
| 46 | %install #installのための手順を書きます。 |
---|
[129] | 47 | %{__make} prefix=${RPM_BUILD_ROOT}/%{_prefix}/local install |
---|
| 48 | (cd man; %{__make} prefix=${RPM_BUILD_ROOT}/%{_prefix}/local install.man) |
---|
[122] | 49 | |
---|
| 50 | %clean #rpmを作ったあとの後始末です。 |
---|
[129] | 51 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
[122] | 52 | |
---|
[129] | 53 | # ファイルリスト部 -------------- |
---|
[122] | 54 | %files |
---|
| 55 | %defattr(-,root,root) |
---|
| 56 | %doc README |
---|
| 57 | %doc docs/ |
---|
[129] | 58 | %{_bindir}/hoge.bin |
---|
| 59 | %{_libdir}/hoge/ |
---|
| 60 | %{_mandir}/man1/hoge.1.gz |
---|
| 61 | %dir %{_libdir}/hoge/ |
---|
| 62 | %config %{_libdir}/hoge/fuga.conf |
---|
[122] | 63 | |
---|
[129] | 64 | # 更新履歴 |
---|
| 65 | %changelog |
---|
| 66 | * Tue Feb 16 1999 Jun Nishii <jun@vinelinux.org> 1.1-2 |
---|
| 67 | - added Japanese messages |
---|
| 68 | |
---|
| 69 | * Mon Feb 15 1999 Jun Nishii <jun@vinelinux.org> 1.1-1 |
---|
| 70 | - first release for version 1.1 |
---|
| 71 | |
---|
| 72 | #---------SPECファイルの例はここまで----------------------------------------- |
---|
Note: See
TracBrowser
for help on using the repository browser.