|
@@ -2,7 +2,7 @@
|
|
%define prereq_ge() %(LC_ALL="C" rpm -q --queryformat 'PreReq:%%{NAME} >= %%{VERSION}' %1| grep -v "is not")
|
|
%define prereq_ge() %(LC_ALL="C" rpm -q --queryformat 'PreReq:%%{NAME} >= %%{VERSION}' %1| grep -v "is not")
|
|
%define emacsen_pkgdir /usr/lib/emacsen-common/packages
|
|
%define emacsen_pkgdir /usr/lib/emacsen-common/packages
|
|
%define origname php-mode
|
|
%define origname php-mode
|
|
-%define origver 1.2.0
|
|
|
|
|
|
+%define origver 1.5.0
|
|
%define release 1%{?_dist_release}
|
|
%define release 1%{?_dist_release}
|
|
|
|
|
|
Summary: PHP-mode for Emacsen
|
|
Summary: PHP-mode for Emacsen
|
|
@@ -10,15 +10,17 @@ Name: %{origname}
|
|
Version: %{origver}
|
|
Version: %{origver}
|
|
Release: %{release}
|
|
Release: %{release}
|
|
URL: http://sourceforge.net/projects/php-mode/
|
|
URL: http://sourceforge.net/projects/php-mode/
|
|
-Source0: http://prdownloads.sourceforge.net/php-mode/php-mode-%{version}.tgz
|
|
|
|
|
|
+Source0: http://prdownloads.sourceforge.net/php-mode/php-mode-%{version}.tar.gz
|
|
Source1: %{origname}-install.sh
|
|
Source1: %{origname}-install.sh
|
|
Source2: %{origname}-remove.sh
|
|
Source2: %{origname}-remove.sh
|
|
|
|
+Source3: vine-default-php-mode.el
|
|
|
|
+Source4: php-mode-init.el
|
|
License: GPL
|
|
License: GPL
|
|
Group: Applications/Editors/Emacs
|
|
Group: Applications/Editors/Emacs
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildArchitectures: noarch
|
|
BuildArchitectures: noarch
|
|
PreReq: emacsen
|
|
PreReq: emacsen
|
|
-Requires: emacsen
|
|
|
|
|
|
+Requires: emacsen texinfo
|
|
#Requires: speedbar
|
|
#Requires: speedbar
|
|
%prereq_ge emacsen-common
|
|
%prereq_ge emacsen-common
|
|
|
|
|
|
@@ -28,21 +30,23 @@ and indenting; Documentation browse and search functions; Support for
|
|
Imenu and SpeedBar; Customization options
|
|
Imenu and SpeedBar; Customization options
|
|
|
|
|
|
%prep
|
|
%prep
|
|
-%setup -q -c
|
|
|
|
|
|
+%setup -q
|
|
|
|
+makeinfo php-mode.texi
|
|
|
|
|
|
%install
|
|
%install
|
|
[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
|
|
[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
|
|
[ "${RPM_BUILD_ROOT}" != "/" ] && mkdir -p ${RPM_BUILD_ROOT}
|
|
[ "${RPM_BUILD_ROOT}" != "/" ] && mkdir -p ${RPM_BUILD_ROOT}
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/emacs/site-lisp/%{origname}
|
|
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/emacs/site-lisp/%{origname}
|
|
-#mkdir -p $RPM_BUILD_ROOT/%{_libdir}/emacsen-common/packages/install
|
|
|
|
-#mkdir -p $RPM_BUILD_ROOT/%{_libdir}/emacsen-common/packages/remove
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{emacsen_pkgdir}/install
|
|
mkdir -p $RPM_BUILD_ROOT/%{emacsen_pkgdir}/install
|
|
mkdir -p $RPM_BUILD_ROOT/%{emacsen_pkgdir}/remove
|
|
mkdir -p $RPM_BUILD_ROOT/%{emacsen_pkgdir}/remove
|
|
|
|
+mkdir -p $RPM_BUILD_ROOT/%{_infodir}
|
|
|
|
+
|
|
|
|
+install -m 0644 php-mode.info $RPM_BUILD_ROOT/%{_infodir}
|
|
|
|
|
|
###
|
|
###
|
|
# install el files
|
|
# install el files
|
|
-cp -a *.el ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname}
|
|
|
|
|
|
+cp -a *.el %{SOURCE3} %{SOURCE4} ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname}
|
|
|
|
|
|
###
|
|
###
|
|
# install script( bytecompile el and install elc , remove )
|
|
# install script( bytecompile el and install elc , remove )
|
|
@@ -78,6 +82,8 @@ rm -rf ${RPM_BUILD_DIR}/%{origname}-%{origver}
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
|
|
+%doc fdl.texi ChangeLog
|
|
|
|
+%{_infodir}/php-mode.info*
|
|
%{_datadir}/emacs/site-lisp/%{origname}/
|
|
%{_datadir}/emacs/site-lisp/%{origname}/
|
|
#%{_libdir}/emacsen-common/packages/install/%{origname}
|
|
#%{_libdir}/emacsen-common/packages/install/%{origname}
|
|
#%{_libdir}/emacsen-common/packages/remove/%{origname}
|
|
#%{_libdir}/emacsen-common/packages/remove/%{origname}
|
|
@@ -85,6 +91,14 @@ rm -rf ${RPM_BUILD_DIR}/%{origname}-%{origver}
|
|
%{emacsen_pkgdir}/remove/%{origname}
|
|
%{emacsen_pkgdir}/remove/%{origname}
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Mon Dec 21 2009 IWAI, Masaharu <iwai@alib.jp> 1.5.0-1
|
|
|
|
+- new upstream release
|
|
|
|
+- apply vine-default
|
|
|
|
+ - add vine-default-php-mode.el (Source3)
|
|
|
|
+ - add php-mode-init.el (Source4)
|
|
|
|
+ - update php-mode-{install,remove}.sh
|
|
|
|
+- add documents
|
|
|
|
+
|
|
* Thu Oct 09 2008 Shu KONNO <owa@bg.wakwak.com> 1.2.0-1vl5
|
|
* Thu Oct 09 2008 Shu KONNO <owa@bg.wakwak.com> 1.2.0-1vl5
|
|
- applied new versioning policy, spec in utf-8
|
|
- applied new versioning policy, spec in utf-8
|
|
- added macro %%emacsen_pkgdir
|
|
- added macro %%emacsen_pkgdir
|