# _without_emacs - without emacs autoconf-mode
# _without_xemacs - without XEmacs autoconf-mode
+%define _without_emacs yes
+
%include /usr/lib/rpm/macros.perl
Summary: GNU autoconf - source configuration tools
Summary(de): Ein GNU-Hilfsmittel für Quellencode automatisch konfigurieren
Summary(es): Una herramienta de GNU para automáticamente configurar código de fuente
Summary(fr): Un outil de GNU pour configurer automatiquement le code source
Summary(it): Uno strumento di GNU per automaticamente la configurazione del codice sorgente
+Summary(ko): ½º½º·Î ȯ°æ¿¡ µû¶ó ¼Ò½º Äڵ带 ¸ÂÃçÁÖ´Â GNU µµ±¸
Summary(pl): GNU autoconf - narzêdzie do automatycznego konfigurowania ¼róde³
Summary(pt_BR): GNU autoconf - ferramentas de configuração de fontes
Summary(ru): GNU autoconf - Á×ÔÏËÏÎÆÉÇÕÒÁÔÏÒ ÉÓÈÏÄÎÙÈ ÔÅËÓÔÏ×
Summary(uk): GNU autoconf - Á×ÔÏËÏÎƦÇÕÒÁÔÏÒ ×ÉȦÄÎÉÈ ÔÅËÓÔ¦×
Name: autoconf
Version: 2.57
-Release: 4
+Release: 5
License: GPL
Group: Development/Building
# stable releases:
%patch3 -p1
%build
-%configure %{!?_without_xemacs:EMACS=xemacs}
+%configure \
+ %{!?_without_xemacs:EMACS=xemacs}
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT \
+%if 0%{!?_without_xemacs:1}
+ lispdir=%{_datadir}/xemacs-packages/autoconf
+%endif
+
+%if 0%{!?_without_xemacs:1}
+xemacs -batch -no-autoloads -l autoload -f batch-update-directory \
+ $RPM_BUILD_ROOT%{_datadir}/xemacs-packages/autoconf
+xemacs -batch -vanilla -f batch-byte-compile \
+ $RPM_BUILD_ROOT%{_datadir}/xemacs-packages/autoconf/auto-autoloads.el \
+%endif
+
%if 0%{!?_without_emacs:%{!?_without_xemacs:1}}
rm lib/emacs/*.elc
%{__make} -C lib/emacs install-dist_lispLISP \
%if 0%{!?_without_emacs:1}
%files -n emacs-autoconf-mode-pkg
%defattr(644,root,root,755)
-%{_emacs_lispdir}/*.elc
+%{_emacs_lispdir}/autoconf/*.elc
%endif
%if 0%{!?_without_xemacs:1}
%files -n xemacs-autoconf-mode-pkg
%defattr(644,root,root,755)
-%{_xemacs_lispdir}/*.elc
+%dir %{_datadir}/xemacs-packages/autoconf
+%{_datadir}/xemacs-packages/autoconf/*.elc
%endif