Add pypy2 and pypy2.7 symlinks
This commit is contained in:
parent
84ccc6fd72
commit
fbf6c298e1
17
pypy.spec
17
pypy.spec
@ -1,8 +1,6 @@
|
||||
%define ver_name %{name}2
|
||||
|
||||
Name: pypy
|
||||
Version: 5.9.0
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: Python implementation with a Just-In-Time compiler
|
||||
|
||||
Group: Development/Languages
|
||||
@ -126,6 +124,8 @@ ExcludeArch: aarch64 s390
|
||||
%global pypy_include_dir %{pypyprefix}/include
|
||||
%global pypyprefix %{_libdir}/%{name}-%{version}
|
||||
%global pylibver 2.7
|
||||
%global pymajorlibver 2
|
||||
%global ver_name %{name}%{pymajorlibver}
|
||||
|
||||
# We refer to this subdir of the source tree in a few places during the build:
|
||||
%global goal_dir pypy/goal
|
||||
@ -564,8 +564,12 @@ cp -a rpython/jit/tool/pypytrace-mode.el %{buildroot}/%{_emacs_sitelispdir}/%{na
|
||||
cp -a rpython/jit/tool/pypytrace-mode.elc %{buildroot}/%{_emacs_sitelispdir}/%{name}trace-mode.elc
|
||||
%endif
|
||||
|
||||
# Create executables pypy, pypy2 and pypy2.7
|
||||
ln -sf %{pypyprefix}/bin/%{name} %{buildroot}%{_bindir}/%{name}%{pylibver}
|
||||
ln -sf %{_bindir}/%{name}%{pylibver} %{buildroot}%{_bindir}/%{name}%{pymajorlibver}
|
||||
ln -sf %{_bindir}/%{name}%{pymajorlibver} %{buildroot}%{_bindir}/%{name}
|
||||
|
||||
# Move files to the right places and remove unnecessary files
|
||||
ln -sf %{pypyprefix}/bin/%{name} %{buildroot}/%{_bindir}/%{name}
|
||||
mv %{buildroot}/%{pypyprefix}/bin/libpypy-c.so %{buildroot}/%{_libdir}
|
||||
rm -rf %{buildroot}/%{_libdir}/%{name}-%{version}.tar.bz2
|
||||
rm -rf %{buildroot}/%{pypyprefix}/LICENSE
|
||||
@ -732,6 +736,8 @@ CheckPyPy %{name}-c-stackless
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
%{_bindir}/%{name}
|
||||
%{_bindir}/%{name}%{pylibver}
|
||||
%{_bindir}/%{name}%{pymajorlibver}
|
||||
%{pypyprefix}/bin/%{name}
|
||||
|
||||
%files devel
|
||||
@ -749,6 +755,9 @@ CheckPyPy %{name}-c-stackless
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Dec 08 2017 Michal Cyprian <mcyprian@redhat.com> - 5.9.0-3
|
||||
- Add pypy2 and pypy2.7 symlinks
|
||||
|
||||
* Thu Nov 30 2017 Miro Hrončok <mhroncok@redhat.com> - 5.9.0-2
|
||||
- Make sure to bytecompile the files and ship .pyc files (#1519238)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user