Make the spec file a tiny bit shorter
This commit is contained in:
parent
6b002d36f3
commit
37fe95796c
19
pypy3.spec
19
pypy3.spec
@ -260,7 +260,6 @@ CPU architecture.
|
|||||||
|
|
||||||
|
|
||||||
%package libs
|
%package libs
|
||||||
Group: Development/Languages
|
|
||||||
Summary: Run-time libraries used by PyPy implementations of Python 3
|
Summary: Run-time libraries used by PyPy implementations of Python 3
|
||||||
|
|
||||||
# We supply an emacs mode for the JIT viewer.
|
# We supply an emacs mode for the JIT viewer.
|
||||||
@ -274,7 +273,6 @@ Libraries required by the various PyPy implementations of Python 3.
|
|||||||
|
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Group: Development/Languages
|
|
||||||
Summary: Development tools for working with PyPy3
|
Summary: Development tools for working with PyPy3
|
||||||
Requires: pypy3%{?_isa} = %{version}-%{release}
|
Requires: pypy3%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
@ -284,7 +282,6 @@ Header files for building C extension modules against PyPy3
|
|||||||
|
|
||||||
%if 0%{with_stackless}
|
%if 0%{with_stackless}
|
||||||
%package stackless
|
%package stackless
|
||||||
Group: Development/Languages
|
|
||||||
Summary: Stackless Python interpreter built using PyPy3
|
Summary: Stackless Python interpreter built using PyPy3
|
||||||
Requires: pypy3-libs%{?_isa} = %{version}-%{release}
|
Requires: pypy3-libs%{?_isa} = %{version}-%{release}
|
||||||
%description stackless
|
%description stackless
|
||||||
@ -516,8 +513,8 @@ find \
|
|||||||
|
|
||||||
mkdir -p %{buildroot}/%{pypyprefix}/site-packages
|
mkdir -p %{buildroot}/%{pypyprefix}/site-packages
|
||||||
|
|
||||||
ln -s %{pypyprefix}/bin/pypy3 %{buildroot}/%{_bindir}/pypy3
|
|
||||||
ln -s %{pypyprefix}/bin/pypy3.3 %{buildroot}/%{_bindir}/pypy3.3
|
ln -s %{pypyprefix}/bin/pypy3.3 %{buildroot}/%{_bindir}/pypy3.3
|
||||||
|
ln -s pypy3.3 %{buildroot}/%{_bindir}/pypy3
|
||||||
|
|
||||||
# pypy uses .pyc files by default (--objspace-usepycfiles), but has a slightly
|
# pypy uses .pyc files by default (--objspace-usepycfiles), but has a slightly
|
||||||
# different bytecode format to CPython. It doesn't use .pyo files: the -O flag
|
# different bytecode format to CPython. It doesn't use .pyo files: the -O flag
|
||||||
@ -648,19 +645,17 @@ find \
|
|||||||
|
|
||||||
# Install the JIT trace mode for Emacs:
|
# Install the JIT trace mode for Emacs:
|
||||||
%if %{with_emacs}
|
%if %{with_emacs}
|
||||||
mkdir -p %{buildroot}/%{_emacs_sitelispdir}
|
install -m0644 -p -D -t %{buildroot}/%{_emacs_sitelispdir} \
|
||||||
cp -a rpython/jit/tool/pypytrace-mode.el %{buildroot}/%{_emacs_sitelispdir}/pypy3trace-mode.el
|
rpython/jit/tool/pypytrace-mode.{el,elc}
|
||||||
cp -a rpython/jit/tool/pypytrace-mode.elc %{buildroot}/%{_emacs_sitelispdir}/pypy3trace-mode.elc
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Install macros for rpm:
|
# Install macros for rpm:
|
||||||
mkdir -p %{buildroot}/%{_rpmconfigdir}/macros.d
|
install -m0644 -p -D -t %{buildroot}/%{_rpmconfigdir}/macros.d %{SOURCE2}
|
||||||
install -m 644 %{SOURCE2} %{buildroot}/%{_rpmconfigdir}/macros.d
|
|
||||||
|
|
||||||
# Remove files we don't want:
|
# Remove files we don't want:
|
||||||
rm -f %{buildroot}%{_libdir}//pypy3-5.2.0.tar.bz2
|
rm -f %{buildroot}%{_libdir}/pypy3-5.2.0.tar.bz2 \
|
||||||
rm -f %{buildroot}%{pypyprefix}/LICENSE
|
%{buildroot}%{pypyprefix}/LICENSE \
|
||||||
rm -f %{buildroot}%{pypyprefix}/README.rst
|
%{buildroot}%{pypyprefix}/README.rst
|
||||||
|
|
||||||
# wtf? This is probably masking some bigger problem, but let's do this for now
|
# wtf? This is probably masking some bigger problem, but let's do this for now
|
||||||
mv -v lib-python/3/test/regrtest.py-new lib-python/3/test/regrtest.py || :
|
mv -v lib-python/3/test/regrtest.py-new lib-python/3/test/regrtest.py || :
|
||||||
|
Loading…
Reference in New Issue
Block a user