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: https://github.com/ejmr/php-mode Source0: https://github.com/ejmr/php-mode/archive/v%{version}.tar.gz Source1: php-mode-init.el Patch0: 0001-Fix-Ignore-warnings-on-syntax-begin-function.patch Patch1: 0002-Fix-warning-about-imenu-make-index-alist-not-defined.patch Patch2: 0003-Byte-compile-skeleton-files-as-well.patch Patch3: 0004-Treat-compilation-warnings-as-errors.patch Patch4: 0005-Remove-sitestart-code-from-library.patch BuildArch: noarch BuildRequires: emacs Requires: emacs(bin) >= %{_emacs_version} %description Major GNU Emacs mode for editing PHP code. %prep %setup -q -n php-mode-%{version} %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %build make %{?_smp_mflags} all %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 %files %doc Changelog.md %license LICENSE %{_emacs_sitestartdir}/php-mode-init.el %dir %{_emacs_sitelispdir}/php-mode %{_emacs_sitelispdir}/php-mode/* %changelog * Tue Sep 12 2017 Tim Landscheidt - 1.18.2-1 - Package v1.18.2. - Remove php-ext-path.patch that has been merged upstream. - Don't try to install non-existing info file. - Incorporate two upstream patches. - Accidentally work around #1420129 by moving byte-compilation of skeleton/*.el to Makefile. - Fail on byte-compilation warnings. - Escape changelog entry for 1.17.0-3. * Wed Jul 26 2017 Fedora Release Engineering - 1.17.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 1.17.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Feb 03 2016 Fedora Release Engineering - 1.17.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Dec 18 2015 Petr Hracek - 1.17.0-5 - set php-ext-path by default - include all skeletons on request - Resolves #1289860 * Mon Dec 14 2015 Petr Hracek - 1.17.0-4 - Add php-ext.el{,c} files - Resolves #1289860 * Thu Dec 10 2015 Petr Hracek - 1.17.0-3 - Add -p to install command - remove %%_emacs_bytecompile php-mode.el * Wed Dec 09 2015 Petr Hracek - 1.17.0-2 - Remove 'auto-mode-alist from php-mode-init.el * Wed Dec 09 2015 Petr Hracek - 1.17.0-1 - Use -p in install commands - Change Source0 from sourceforge to github * Wed Dec 09 2015 Petr Hracek - 1.5.0-1 - Initial package (#1289860)