--- /dev/null
+%define _orig_name php-mode
+%define _emacs_version 21.2
+%define _php_mode_ver 1.0.2
+#%define _pack_ver %(echo %{_php_mode_ver} | sed -e "s/\.//g")
+
+Summary: The Emacs php-mode text editor for the X Window System
+Summary(de): GNU Emacs php-mode
+Summary(es): GNU Emacs php-mode
+Summary(fr): GNU Emacs php-mode
+Summary(pl): GNU Emacs php-mode - Kolorowanie sk³adni php
+Summary(pt_BR): GNU Emacs php-mode
+Summary(tr): GNU Emacs php-mode
+Name: emacs-el-%{_orig_name}
+Version: %{_php_mode_ver}
+Release: 1
+License: GPL v2
+Group: Applications/Editors/Emacs
+Source0: http://prdownloads.sourceforge.net/php-mode/%{_orig_name}-102.el
+URL: http://php-mode.sf.net/
+BuildRequires: sed
+Requires: emacs-el = %{_emacs_version}
+Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+php-mode - An Emacs major mode for editing PHP code. Features:
+ - Syntax coloring and indenting;
+ - Documentation browse and search functions;
+ - Support for Imenu and SpeedBar;
+ - Customization options.
+
+%description -l pl
+php-mode - rozszerzenie do Emacs'a u³atwiaj±ce edycjê plików php.
+Zalety:
+ - kolorowanie sk³adni i indexowanie;
+ - Przegl±danie dokumentów i szukanie funkcji;
+ - Wsparcie dla Imenu oraz SpeedBar;
+ - Opcje dostosowania do w³asnych potrzeb.
+
+%setup -q
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_datadir}/emacs/%{_emacs_version}/lisp/progmodes/
+install %{SOURCE0} $RPM_BUILD_ROOT%{_datadir}/emacs/%{_emacs_version}/lisp/progmodes/%{_orig_name}.el
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(644,root,root,755)
+%{_datadir}/emacs/%{_emacs_version}/lisp/progmodes/%{_orig_name}.el