SHA256
1
0
forked from pool/emacs
Dr. Werner Fink 2023-09-26 13:11:54 +00:00 committed by Git OBS Bridge
parent ccf687afe2
commit 83d1090eef

View File

@ -544,24 +544,30 @@ for i in $(find site-lisp/ -name '*.el'); do
done
cp -p src/emacs src/emacs-nox
cp -p src/emacs.pdmp src/emacs-nox.pdmp
%if %{with nativecomp}
find native-lisp -type d -exec mkdir -p "${parking}%{_libdir}/emacs/%{version}/{}" \;
find native-lisp -type f -exec install -m 0644 "{}" "${parking}%{_libdir}/emacs/%{version}/{}" \;
%endif
make distclean
#
CFLAGS="$CFLAGS -DPDMP_BASE='\"emacs-x11\"'" ./configure ${COMP} ${PREFIX} ${X11} ${SYS} --with-dumping=pdumper
%make_build
cp -p src/emacs src/emacs-x11
cp -p src/emacs.pdmp src/emacs-x11.pdmp
%if %{with nativecomp}
find native-lisp -type d -exec mkdir -p "${parking}%{_libdir}/emacs/%{version}/{}" \;
find native-lisp -type f -exec install -m 0644 "{}" "${parking}%{_libdir}/emacs/%{version}/{}" \;
%endif
make distclean
#
CFLAGS="$CFLAGS -DPDMP_BASE='\"emacs-gtk\"'" ./configure ${COMP} ${PREFIX} ${GTK} ${SYS} --with-dumping=pdumper
%make_build
cp src/emacs src/emacs-gtk
cp src/emacs.pdmp src/emacs-gtk.pdmp
%if %{with nativecomp}
find native-lisp -type d -exec mkdir -p "${parking}%{_libdir}/emacs/%{version}/{}" \;
find native-lisp -type f -exec install -m 0644 "{}" "${parking}%{_libdir}/emacs/%{version}/{}" \;
%endif
make distclean
#
CFLAGS="$CFLAGS -DPDMP_BASE='\"emacs-wayland\"'" ./configure ${COMP} ${PREFIX} ${GTK//--without-pgtk/--with-pgtk} ${SYS} --with-dumping=pdumper
@ -593,19 +599,23 @@ mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_libexecdir}/emacs/%{version}/${configuration}
make install DESTDIR=%{buildroot} systemdunitdir=%{_userunitdir}
rm -vf %{buildroot}%{_libexecdir}/emacs/%{version}/${configuration}/*.pdmp
%if %{with nativecomp}
pushd native-lisp/
ln -sf ../parking.*/usr/lib64/emacs/29.1/native-lisp/* .
popd
%endif
for pdmp in emacs-nox emacs-gtk emacs-x11 emacs-wayland
do
install -m 0755 src/${pdmp} %{buildroot}%{_bindir}
install -m 0644 src/${pdmp}.pdmp %{buildroot}%{_libexecdir}/emacs/%{version}/${configuration}/
ln -sf ${pdmp}.pdmp %{buildroot}%{_libexecdir}/emacs/%{version}/${configuration}/${pdmp}-$(src/${pdmp} --fingerprint).pdmp
done
%if %{with nativecomp}
pushd parking.*/%{_libdir}/emacs/%{version}/
find native-lisp -type d -exec mkdir -p "%{buildroot}%{_libdir}/emacs/%{version}/{}" \;
find native-lisp -type f -exec install -m 0644 "{}" "%{buildroot}%{_libdir}/emacs/%{version}/{}" \;
popd
%endif
rm -rf parking.*
rm -vf %{buildroot}/usr/bin/emacs
rm -vf %{buildroot}%{_libexecdir}/emacs/%{version}/${configuration}/emacs.pdmp