自分で作るRPMパッケージ

■パッケージ作成のrpmオプション

 最後に、パッケージを作成するときに使うrpmコマンドのオプションをまとめておきます。

-bp ソースの展開とパッチ当てまで行う
-bc makeまで実行
-bi インストールまで実行
-bb バイナリパッケージを作成
-bs ソースパッケージを作成
-ba バイナリパッケージとソースパッケージの両方を作成

各種リスト

Summary: A C programming language indexing and/or cross-reference tool.
Name: ctags
Version: 3.2
Release: 2
Copyright: GPL
Group: Development/Tools
Source: ftp://sunsite.unc.edu/pub/Linux/devel/lang/c/ctags-%{version}.tar.gz
Patch0: ctags-3.2-glibc.patch
Buildroot: /var/tmp/ctags-root

%description
Ctags generates an index (or tag) file of C language objects found in
C source and header files. The index makes it easy for text editors or
other utilities to locate the indexed items. Ctags can also generate a
cross reference file which lists information about the various objects
found in a set of C language files in human readable form. Exuberant
Ctags improves on ctags because it can find all types of C language tags,
including macro definitions, enumerated values (values inside enum{...}),
function and method definitions, enum/struct/union tags, external
function prototypes, typedef names and variable declarations. Exuberant
Ctags is far less likely to be fooled by code containing #if preprocessor
conditional constructs than ctags. Exuberant ctags supports output of
emacs style TAGS files and can be used to print out a list of selected
objects found in source files.

Install ctags if you are going to use your system for C programming.

%prep
%setup -q
%patch0 -p1

%build
autoconf
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"

%install
rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT/usr install-strip

%clean
rm -rf $RPM_BUILD_ROOT

%files
%doc FAQ INSTALL NEWS QUOTES README
/usr/bin/ctags
/usr/man/man1/ctags.1.gz

%changelog
* Sun Jan 14 2001 Shirou Sekino <shirou@atmarkit.co.jp>
- rewrite files section from ctags.1 to ctags.1.gz

* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
- auto rebuild in the new build environment (release 4)
- version 3.2

* Wed Feb 24 1999 Preston Brown <pbrown@redhat.com>
- Injected new description and group.

* Fri Apr 24 1998 Prospector System <bugs@redhat.com>
- translations modified for de, fr, tr

* Thu Apr 09 1998 Cristian Gafton <gafton@redhat.com>
- upgraded to 2.0.3

* Mon Nov 03 1997 Michael K. Johnson <johnsonm@redhat.com>
- removed etags. Emacs provides its own; and needs to support
more than just C.

* Thu Oct 23 1997 Donnie Barnes <djb@redhat.com>
- updated from 1.5 to 1.6

* Thu Jul 10 1997 Erik Troan <ewt@redhat.com>
- built against glibc
リスト1 ctags.spec

Amusements/Games
Amusements/Graphics
Applications/Archiving
Applications/Communications
Applications/Databases
Applications/Editors
Applications/Emulators
Applications/Engineering
Applications/File
Applications/Internet
Applications/Multimedia
Applications/Productivity
Applications/Publishing
Applications/System
Applications/Text
Development/Debuggers
Development/Languages
Development/Libraries
Development/System
Development/Tools
Documentation
System Environment/Base
System Environment/Daemons
System Environment/Kernel
System Environment/Libraries
System Environment/Shells
User Interface/Desktops
User Interface/X
User Interface/X Hardware Support
リスト2 rpm-3.05のグループ

3/3

Index
自分で作るRPMパッケージ
  RPMによる管理のメリット
  SRPMの利用
作業用ディレクトリの作成
SRPMのリビルド
  RPMパッケージの自作
パッケージ作成の下準備
specファイルの書き方
rpmコマンドの実行
Appendix
パッケージ作成のrpmオプション
各種リスト

Linux Square全記事インデックス


Linux & OSS フォーラム 新着記事
@ITメールマガジン 新着情報やスタッフのコラムがメールで届きます(無料)

注目のテーマ

Linux & OSS 記事ランキング

本日 月間