From 92abed8b370e0571b498c8e34496d8d757c422ef Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Apr 10 2018 05:32:24 +0000 Subject: import emacs-php-mode-1.18.2-1.el7 --- diff --git a/.emacs-php-mode.metadata b/.emacs-php-mode.metadata new file mode 100644 index 0000000..202e5a8 --- /dev/null +++ b/.emacs-php-mode.metadata @@ -0,0 +1 @@ +601331294476551cbc261a4fc9fa6d0aef43a503 SOURCES/php-mode-1.18.2.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..63f7df3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/php-mode-1.18.2.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/php-mode-init.el b/SOURCES/php-mode-init.el new file mode 100644 index 0000000..f9269dd --- /dev/null +++ b/SOURCES/php-mode-init.el @@ -0,0 +1,9 @@ +;; Use php-mode for .php,.php3,.php4 and .phtml files + +(autoload 'php-mode "php-mode" "Major mode for editing PHP code." t) + +(eval-after-load 'php-mode + '(require 'php-ext)) + +(add-to-list 'auto-mode-alist '("\\.php\\(3\\|4\\)?$" . php-mode)) +(add-to-list 'auto-mode-alist '("\\.phtml$" . php-mode)) diff --git a/SPECS/emacs-php-mode.spec b/SPECS/emacs-php-mode.spec new file mode 100644 index 0000000..588e35d --- /dev/null +++ b/SPECS/emacs-php-mode.spec @@ -0,0 +1,58 @@ +Name: emacs-php-mode +Version: 1.18.2 +Release: 1%{?dist} +Summary: Major GNU Emacs mode for editing PHP code +Group: Applications/Editors +License: GPLv3+ +URL: http://github.com/ejmr/php-mode +Source0: https://github.com/ejmr/php-mode/archive/v%{version}.tar.gz#/php-mode-%{version}.tar.gz +Source1: php-mode-init.el +BuildArch: noarch +BuildRequires: emacs emacs-el texinfo +Requires: emacs(bin) >= %{_emacs_version} +Requires(post): /sbin/install-info +Requires(preun): /sbin/install-info + +%description +Major GNU Emacs mode for editing PHP code. + +%prep +%setup -q -n php-mode-%{version} + +%build +make %{?_smp_mflags} all +# Temporarily provide php-mode.elc into skeleton/ just so everything there compiles correctly. +ln -s ../php-mode.elc skeleton/php-mode.elc +%{_emacs_bytecompile} skeleton/*.el +rm -f skeleton/php-mode.elc + +%install +mkdir -p %{buildroot}/%{_emacs_sitelispdir}/php-mode +install -p -m 644 *.el{,c} %{buildroot}/%{_emacs_sitelispdir}/php-mode/ +install -p -m 644 skeleton/*.el{,c} %{buildroot}/%{_emacs_sitelispdir}/php-mode/ + +# Install php-mode-init.el +mkdir -p %{buildroot}%{_emacs_sitestartdir} +install -p -m 644 %SOURCE1 %{buildroot}%{_emacs_sitestartdir} + +%check +make test + +%post +/sbin/install-info %{_infodir}/php-mode.info %{_infodir}/dir 2> /dev/null || : + +%preun +if [ "$1" = 0 ]; then + /sbin/install-info --delete %{_infodir}/php-mode.info %{_infodir}/dir 2> /dev/null || : +fi + +%files +%doc Changelog.md +%license LICENSE +%{_emacs_sitestartdir}/php-mode-init.el +%dir %{_emacs_sitelispdir}/php-mode +%{_emacs_sitelispdir}/php-mode/* + +%changelog +* Wed Sep 20 2017 Jan Synacek - 1.18.2-1 +- initial import