シンプルなスペースファイル作成
5675 ワード
1.フォルダmkdir-p~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}の作成
2.ソースcd~/rpmbuild/SOURCES wgetをダウンロードhttp://ftp.gnu.org/gnu/hello/hello-2.10.tar.gz
3.spaceファイルcd~/rpmbuild/SPECS vim helloを編集する.spec
4.RPMパックrpm-ivh hello-2.10-1を取り付ける.el7.x86_64.rpm
2.ソースcd~/rpmbuild/SOURCES wgetをダウンロードhttp://ftp.gnu.org/gnu/hello/hello-2.10.tar.gz
3.spaceファイルcd~/rpmbuild/SPECS vim helloを編集する.spec
***
Name: hello
Version: 2.1
Release: 1%{?dist}
Summary: The "Hello World" program from GNU
Summary(zh_CN): GNU "Hello World"
License: GPLv3+
URL: http://ftp.gnu.org/gnu/hello
Source0: http://ftp.gnu.org/gnu/hello/%{name}-%{version}.tar.gz
%description
The "Hello World" program, done with all bells and whistles of a proper FOSS
project, including configuration, build, internationalization, help files, etc.
%description -l zh_CN
"Hello World" , FOSS , , , , .
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot}
%files
%doc
%changelog
* Sun Dec 4 2016 Your Name <youremail@xxx.xxx> - 2.10-1
- Update to 2.10
* Sat Dec 3 2016 Your Name <youremail@xxx.xxx> - 2.9-1
- Update to 2.9
******************
4.RPMパックrpm-ivh hello-2.10-1を取り付ける.el7.x86_64.rpm