Hello.spec

(Test.spec에서 넘어옴)

1 개요[ | ]

hello.spec
spec 파일 샘플

2 내용[ | ]

Name:           hello
Version:        1.0.0 
Release:        1%{?dist}
Summary:        A hello package
 
Group:          Testing
License:        GPL
URL:            http://jmnote.com/testing
Source0:        %{name}-%{version}.tar.gz
BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)

BuildRequires:  /bin/rm, /bin/mkdir, /bin/cp
Requires:       /bin/bash
 
%description
 A hello package
 
%prep
%setup -q
 
 
%build

#configure
#make %{?_smp_mflags}
 
%install
rm -rf $RPM_BUILD_ROOT
#make install DESTDIR=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/local/bin
cp hello $RPM_BUILD_ROOT/usr/local/bin

%clean
rm -rf $RPM_BUILD_ROOT
 
%files
%defattr(-,root,root,-)
#%doc
 
%attr(0755,root,root)/usr/local/bin/hello
 
%changelog
* Sat May 17 2014 Jmnote <jmnote@example.com> - 1.0.0
- Initial RPM

3 같이 보기[ | ]

4 참고[ | ]

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