Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %define major_version 3.8
- %define version 3.8.0
- Name: python3
- Version: %{version}
- Release: cooper
- Summary: Building latest %{major_version} Python
- License: PSFL
- URL: https://github.com/python/cpython
- Source0: Python-%{version}.tgz
- AutoReq: no
- BuildRequires: openssl-devel libffi-devel sqlite-devel zlib-devel
- # Requires:
- %description
- Building the latest and greatest Python
- # This is needed to prevent python byte code compilation errors on CentOS
- %global __os_install_post \
- /usr/lib/rpm/redhat/brp-compress \
- %{!?__debug_package:\
- /usr/lib/rpm/redhat/brp-strip %{__strip} \
- /usr/lib/rpm/redhat/brp-strip-comment-note %{__strip} %{__objdump} \
- } \
- /usr/lib/rpm/redhat/brp-strip-static-archive %{__strip} \
- %{!?__jar_repack:/usr/lib/rpm/redhat/brp-java-repack-jars} \
- %{nil}
- %prep
- zcat $RPM_SOURCE_DIR/Python-%{version}.tgz | tar -xvf -
- %build
- cd Python-%{version}
- %configure --enable-optimizations --enable-ipv6 --enable-loadable-sqlite-extensions --with-ensurepip=upgrade
- make -j 4
- %install
- cd Python-%{version}
- %make_install -j 4
- %clean
- %{__rm} -rf %{buildroot}
- %files
- /usr/bin/*
- /usr/include/python%{major_version}m/*
- /usr/lib/python%{major_version}/*
- /usr/lib64/*
- /usr/share/man/man1/*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement