|
如题,在RPMS下找不到.rpm包,编译好的二进制文件是可以用的。
打包命令是: rpmbuild -ba SPECS/py3.spec
spec文件是:
%define _topdir /root/py3
%define _rpmdir /root/py3/RPMS
%define name Python
%define release 3
%define version 3.1.2
%define buildroot %{_topdir}/%{name}-%{version}-root
BuildRoot: %{buildroot}
Summary: GNU Python
License: GPL
Name: %{name}
Version: %{version}
Release: %{release}
Source: %{name}-%{version}.tar.bz2
Prefix: /usr
Group: Development/Tools
%description
Python 3.1.2
%prep
%setup -q
%build
./configure
make
%install
make install prefix=$RPM_BUILD_ROOT/usr
%files
%defattr(-,root,root)
/usr/local/bin/python3
%doc %attr(0444,root,root) /usr/local/share/man/man1/python3.1
参考: https://www.ibm.com/developerworks/library/l-rpm1/ |
|