Spec 파일

(SPEC 파일에서 넘어옴)
  다른 뜻에 대해서는 스펙 문서를 참조하십시오.

1 개요[ | ]

RPM spec file; spec file; .spec
스펙 파일; SPEC 파일
  • RPM 패키지를 생성하기 위한 레시피 파일
  • 패키지 설명정보와 스크립트를 담고 있음

2 구조[ | ]

  • 서문 섹션: 패키지 정보 항목들 기록
  • %desciption 섹션: 자세한 설명
  • %prep 섹션: 사전작업 스크립트
  • %build 섹션: 빌드 스크립트 (예: make)
  • %install 섹션: 설치 스크립트(예: install)
  • %clean 섹션: 삭제 스크립트(예: rm)
  • %files 섹션: 패키지에 포함되는 파일 목록
  • %changelog 섹션: spec 파일의 변경 이력

3 예시[ | ]

Summary:            A program that ejects removable media using software control
Name:               eject
Version:            2.1.5
Release:            21%{?dist}
License:            GPLv2+
Group:              System Environment/Base
Source:             %{name}-%{version}.tar.gz
Patch1:             eject-2.1.1-verbose.patch
Patch2:             eject-timeout.patch
Patch3:             eject-2.1.5-opendevice.patch
Patch4:             eject-2.1.5-spaces.patch
Patch5:             eject-2.1.5-lock.patch
Patch6:             eject-2.1.5-umount.patch
URL:                http://www.pobox.com/~tranter
ExcludeArch:        s390 s390x
BuildRequires:      gettext
BuildRequires:      libtool

%description
The eject program allows the user to eject removable media (typically
CD-ROMs, floppy disks or Iomega Jaz or Zip disks) using software
control. Eject can also control some multi-disk CD changers and even
some devices' auto-eject features.

Install eject if you'd like to eject removable media using software
control.

%prep
%autosetup -n %{name}

%build
%configure
make %{?_smp_mflags}

%install
%make_install

install -m 755 -d %{buildroot}/%{_sbindir}
ln -s ../bin/eject %{buildroot}/%{_sbindir}

%find_lang %{name}

%files -f %{name}.lang
%doc README TODO COPYING ChangeLog
%{_bindir}/*
%{_sbindir}/*
%{_mandir}/man1/*

%changelog
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.5-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Fri Jul 02 2010 Kamil Dudka <kdudka@redhat.com> 2.1.5-20
- handle multi-partition devices with spaces in mount points properly (#608502)

4 같이 보기[ | ]

5 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}