|
|
3a58fc |
Name: emacs-php-mode
|
|
|
3a58fc |
Version: 1.18.2
|
|
|
3a58fc |
Release: 1%{?dist}
|
|
|
3a58fc |
Summary: Major GNU Emacs mode for editing PHP code
|
|
|
3a58fc |
Group: Applications/Editors
|
|
|
3a58fc |
License: GPLv3+
|
|
|
3a58fc |
URL: http://github.com/ejmr/php-mode
|
|
|
3a58fc |
Source0: https://github.com/ejmr/php-mode/archive/v%{version}.tar.gz#/php-mode-%{version}.tar.gz
|
|
|
3a58fc |
Source1: php-mode-init.el
|
|
|
3a58fc |
BuildArch: noarch
|
|
|
3a58fc |
BuildRequires: emacs emacs-el texinfo
|
|
|
3a58fc |
Requires: emacs(bin) >= %{_emacs_version}
|
|
|
3a58fc |
Requires(post): /sbin/install-info
|
|
|
3a58fc |
Requires(preun): /sbin/install-info
|
|
|
3a58fc |
|
|
|
3a58fc |
%description
|
|
|
3a58fc |
Major GNU Emacs mode for editing PHP code.
|
|
|
3a58fc |
|
|
|
3a58fc |
%prep
|
|
|
3a58fc |
%setup -q -n php-mode-%{version}
|
|
|
3a58fc |
|
|
|
3a58fc |
%build
|
|
|
3a58fc |
make %{?_smp_mflags} all
|
|
|
3a58fc |
# Temporarily provide php-mode.elc into skeleton/ just so everything there compiles correctly.
|
|
|
3a58fc |
ln -s ../php-mode.elc skeleton/php-mode.elc
|
|
|
3a58fc |
%{_emacs_bytecompile} skeleton/*.el
|
|
|
3a58fc |
rm -f skeleton/php-mode.elc
|
|
|
3a58fc |
|
|
|
3a58fc |
%install
|
|
|
3a58fc |
mkdir -p %{buildroot}/%{_emacs_sitelispdir}/php-mode
|
|
|
3a58fc |
install -p -m 644 *.el{,c} %{buildroot}/%{_emacs_sitelispdir}/php-mode/
|
|
|
3a58fc |
install -p -m 644 skeleton/*.el{,c} %{buildroot}/%{_emacs_sitelispdir}/php-mode/
|
|
|
3a58fc |
|
|
|
3a58fc |
# Install php-mode-init.el
|
|
|
3a58fc |
mkdir -p %{buildroot}%{_emacs_sitestartdir}
|
|
|
3a58fc |
install -p -m 644 %SOURCE1 %{buildroot}%{_emacs_sitestartdir}
|
|
|
3a58fc |
|
|
|
3a58fc |
%check
|
|
|
3a58fc |
make test
|
|
|
3a58fc |
|
|
|
3a58fc |
%post
|
|
|
3a58fc |
/sbin/install-info %{_infodir}/php-mode.info %{_infodir}/dir 2> /dev/null || :
|
|
|
3a58fc |
|
|
|
3a58fc |
%preun
|
|
|
3a58fc |
if [ "$1" = 0 ]; then
|
|
|
3a58fc |
/sbin/install-info --delete %{_infodir}/php-mode.info %{_infodir}/dir 2> /dev/null || :
|
|
|
3a58fc |
fi
|
|
|
3a58fc |
|
|
|
3a58fc |
%files
|
|
|
3a58fc |
%doc Changelog.md
|
|
|
3a58fc |
%license LICENSE
|
|
|
3a58fc |
%{_emacs_sitestartdir}/php-mode-init.el
|
|
|
3a58fc |
%dir %{_emacs_sitelispdir}/php-mode
|
|
|
3a58fc |
%{_emacs_sitelispdir}/php-mode/*
|
|
|
3a58fc |
|
|
|
3a58fc |
%changelog
|
|
|
3a58fc |
* Wed Sep 20 2017 Jan Synacek <jsynacek@redhat.com> - 1.18.2-1
|
|
|
3a58fc |
- initial import
|