Home
|
Content
|
検索
|
Navigation
|
ツールボックス
|
Actions
|
他の言語
openSUSE
Get Software
Wiki
Build Software
User Directory
Features
News
Forums
Shop
Discover it
プロジェクト概要
参加のしかた
ドキュメント
交流
サポートデータベース
連絡先
サイトマップ
ツールボックス
リンク元
関連ページの更新状況
最近更新したページ
特別ページ
ログインまたはアカウント作成
本文
ノート
ソースを表示
履歴
ソースを表示
出典: openSUSE
SUSE Linuxビルドのチュートリアル
のソース
以下に示された理由により、ページの編集を行うことができません:
この操作は、
登録利用者
のグループに属する利用者のみが実行できます。
このページのソースを閲覧し、コピーすることができます:
=== [[Perl Packages]] === Perl のパッケージはとても簡単でパッケージに似ています(訳注:意味不明)。というのも、それらのパッケージはほとんど、CPAN アーカイブのためにすでに作成されているからです。 Perl packages are quite easy and similar to package because they are almost already prepared for the CPAN archive. Name: perl-Curses Version: 1.12 Release: 1 # define the name from CPAN %define cpan_name Curses # do this package was known as "perl_cur" in old times. So we do need to Provide and Obsolete # this package. YaST will install this package during update instead of the old one in this way. Provides: %cpan_name # we better require the exact perl version, which was used to create this package Requires: perl = %{perl_version} Group: Development/Libraries/Perl License: Artistic License, Other License(s), see package URL: http://cpan.org/modules/by-module/Curses/ Summary: A Dynamic Loadable Curses Module for Perl5 Source: %cpan_name-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build<br> %description This is a dynamic loadable curses module for Perl5. This package can be found at any CPAN archive.<br> %prep %setup -q -n %cpan_name-%{version}<br> %build perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" make make test<br> %install make DESTDIR=$RPM_BUILD_ROOT install_vendor %perl_process_packlist<br> %clean # clean up the hard disc after build rm -rf $RPM_BUILD_ROOT<br> %files %defattr(-,root,root) %doc Artistic Copying README %doc %{_mandir}/man3/* %{perl_vendorarch}/%cpan_name.pm %{perl_vendorarch}/auto/%cpan_name /var/adm/perl-modules/%{name} -------------------------------------------------------------------------------
SUSE Linuxビルドのチュートリアル
に戻る。