Name: bemacs Version: 8.9.5 Release: 1%{?dist} Summary: Barry's Emacs License: ASL 2.0 URL: http://barrys-emacs.org/ Source0: http://barrys-emacs.org/source_kits/%{name}-%{version}.tar.gz Source1: sqlite-amalgamation-3280000.zip Source2: pycxx-7.1.7.tar.gz Requires: bemacs-cli = %{version}-%{release} Requires: bemacs-gui = %{version}-%{release} Requires: python3 BuildRequires: gcc-c++ BuildRequires: hunspell BuildRequires: hunspell-devel BuildRequires: python3 >= 3.4 BuildRequires: python3-devel >= 3.4 BuildRequires: python3-qt5 BuildRequires: unzip %prep # unpack Source0 %setup mkdir -p Imports/sqlite unzip -j "%_sourcedir/sqlite-amalgamation-3280000.zip" -d Imports/sqlite gunzip -c "%_sourcedir/pycxx-7.1.7.tar.gz" | tar xf - -C Imports %build true %install echo Info: Install PWD $( pwd ) export BUILDER_TOP_DIR=$( pwd ) export PYTHON=/usr/bin/python3 cd ${BUILDER_TOP_DIR}/Builder export DESTDIR=%{buildroot} /usr/bin/python3 build_bemacs.py gui '--default-font-name=DejaVu Sans Mono' '--no-sftp' '--no-warnings-as-errors' '--pyqt-version=5' '--system-hunspell' # creating the debug info RPM uses objcopy that needs the files to be writeable. if [ -e %{buildroot}/usr/bin/bemacs_server ] then chmod +w %{buildroot}/usr/bin/bemacs chmod +w %{buildroot}/usr/bin/bemacs_server chmod +w %{buildroot}/usr/lib/bemacs/_bemacs.so fi chmod +w %{buildroot}/usr/bin/bemacs-cli mkdir -p %{buildroot}%{_mandir}/man1 gzip -c ${BUILDER_TOP_DIR}/Kits/Linux/bemacs.1 > %{buildroot}%{_mandir}/man1/bemacs.1.gz mkdir -p %{buildroot}/usr/share/bemacs cp ${BUILDER_TOP_DIR}/Editor/PyQt6/org.barrys-emacs.editor.png %{buildroot}/usr/share/bemacs/org.barrys-emacs.editor.png mkdir -p %{buildroot}/usr/share/applications cp ${BUILDER_TOP_DIR}/Kits/Linux/org.barrys-emacs.editor.desktop %{buildroot}/usr/share/applications/org.barrys-emacs.editor.desktop %description Barry's Emacs * Easy to get started with Emacs * Uses original MockLisp extension language * UI implemented using Python3 and PyQt Built from 4f1c46b4261d5c3efd97e4a792895b33b2cf0f28 %package gui Summary: Barry's Emacs GUI version Group: Applications/Editors Requires: bemacs-common = %{version}-%{release} Requires: dejavu-sans-mono-fonts Requires: hunspell Requires: python3 >= 3.4 Requires: python3-qt5 %description gui Barry's Emacs * Easy to get started with Emacs * Uses original MockLisp extension language * UI implemented using Python3 and PyQt Built from 4f1c46b4261d5c3efd97e4a792895b33b2cf0f28 %package cli Summary: Barry's Emacs CLI version Group: Applications/Editors Requires: bemacs-common = %{version}-%{release} Requires: hunspell %description cli Barry's Emacs * Easy to get start with Emacs * Uses original MockLisp extension language * Command line version for terminal Built from 4f1c46b4261d5c3efd97e4a792895b33b2cf0f28 %package common Summary: Barry's Emacs common files Group: Applications/Editors %description common Barry's Emacs common files used by bemacs-gui and bemacs-cli %files %files gui %defattr(-, root, root, -) /usr/bin/bemacs /usr/bin/bemacs_server /usr/lib/bemacs/*.py /usr/lib/bemacs/_bemacs.so /usr/lib/bemacs/__pycache__/* /usr/share/bemacs/org.barrys-emacs.editor.png /usr/share/applications/org.barrys-emacs.editor.desktop %files cli %defattr(-, root, root, -) /usr/bin/bemacs-cli %files common %defattr(-, root, root, -) /usr/share/doc/bemacs/* /usr/lib/bemacs/*.db /usr/lib/bemacs/*.ml %attr(0644,root,root) %{_mandir}/man1/bemacs.1.gz %changelog * Mon May 01 2023 Barry Scott - 8.9.5-1 - Specfile create by package_bemacs.py