checkinstallがインストールされている前提。
$ tar zxvf rubygems-1.0.1.tgz
$ cd rubygems-1.0.1
$ su
Password:
# checkinstall --fstrans=no -R "ruby setup.rb"
$ cd rubygems-1.0.1
$ su
Password:
# checkinstall --fstrans=no -R "ruby setup.rb"
入力を求められたり、内容を変更する場合があるので、以下出力を参考まで。ただし、出力内容は途中まで。
--- (ここから) ---
checkinstall 1.6.0, Copyright 2002 Felipe Eduardo Sanchez Diaz Duran
This software is released under the GNU GPL.
checkinstall 1.6.0, Copyright 2002 Felipe Eduardo Sanchez Diaz Duran
This software is released under the GNU GPL.
The package documentation directory ./doc-pak does not exist.
Should I create a default set of package docs? [y]: y
Preparing package documentation...OK
Please write a description for the package.
End your description with an empty line or EOF.
>>
End your description with an empty line or EOF.
>>
**************************************
**** RPM package creation selected ***
**************************************
**** RPM package creation selected ***
**************************************
This package will be built according to these values:
1 - Summary: [ Package created with checkinstall 1.6.0 ]
2 - Name: [ rubygems ]
3 - Version: [ 1.0.1 ]
4 - Release: [ 1 ]
5 - License: [ GPL ]
6 - Group: [ Applications/System ]
7 - Architecture: [ x86_64 ]
8 - Source location: [ rubygems-1.0.1 ]
9 - Alternate source location: [ ]
10 - Requires: [ ]
11 - Provides: [ rubygems ]
2 - Name: [ rubygems ]
3 - Version: [ 1.0.1 ]
4 - Release: [ 1 ]
5 - License: [ GPL ]
6 - Group: [ Applications/System ]
7 - Architecture: [ x86_64 ]
8 - Source location: [ rubygems-1.0.1 ]
9 - Alternate source location: [ ]
10 - Requires: [ ]
11 - Provides: [ rubygems ]
Enter a number to change any of them or press ENTER to continue: 4
Enter the additional requirements:
>> el4
Enter the additional requirements:
>> el4
This package will be built according to these values:
1 - Summary: [ Package created with checkinstall 1.6.0 ]
2 - Name: [ rubygems ]
3 - Version: [ 1.0.1 ]
4 - Release: [ el4 ]
5 - License: [ GPL ]
6 - Group: [ Applications/System ]
7 - Architecture: [ x86_64 ]
8 - Source location: [ rubygems-1.0.1 ]
9 - Alternate source location: [ ]
10 - Requires: [ ]
11 - Provides: [ rubygems ]
2 - Name: [ rubygems ]
3 - Version: [ 1.0.1 ]
4 - Release: [ el4 ]
5 - License: [ GPL ]
6 - Group: [ Applications/System ]
7 - Architecture: [ x86_64 ]
8 - Source location: [ rubygems-1.0.1 ]
9 - Alternate source location: [ ]
10 - Requires: [ ]
11 - Provides: [ rubygems ]
Enter a number to change any of them or press ENTER to continue: 11 <- 10と11が逆になっている Enter the additional requirements: >> ruby
This package will be built according to these values:
1 - Summary: [ Package created with checkinstall 1.6.0 ]
2 - Name: [ rubygems ]
3 - Version: [ 1.0.1 ]
4 - Release: [ el4 ]
5 - License: [ GPL ]
6 - Group: [ Applications/System ]
7 - Architecture: [ x86_64 ]
8 - Source location: [ rubygems-1.0.1 ]
9 - Alternate source location: [ ]
10 - Requires: [ ruby ]
11 - Provides: [ rubygems ]
2 - Name: [ rubygems ]
3 - Version: [ 1.0.1 ]
4 - Release: [ el4 ]
5 - License: [ GPL ]
6 - Group: [ Applications/System ]
7 - Architecture: [ x86_64 ]
8 - Source location: [ rubygems-1.0.1 ]
9 - Alternate source location: [ ]
10 - Requires: [ ruby ]
11 - Provides: [ rubygems ]
Enter a number to change any of them or press ENTER to continue:
--- (ここまで(実際にはさらに続く)) ---
--- (ここまで(実際にはさらに続く)) ---
これで
/usr/src/redhat/RPMS/x86_64
等にRPMファイルが生成される。
0 件のコメント:
コメントを投稿