- Use buildsystem variables to determine available Emacs version

This commit is contained in:
Michel Alexandre Salim 2008-12-14 04:04:37 +00:00
parent a2a9a03a83
commit 3ddad05a8d

View File

@ -1,5 +1,12 @@
%if %($(pkg-config emacs) ; echo $?)
%if 0%{?rhel}
%define emacs_version 21.4
%endif
%if 0%{?fedora} < 9
%define emacs_version 22.1
%else
%define emacs_version 22.2
%endif
%define emacs_lispdir %{_datadir}/emacs/site-lisp
%define emacs_startdir %{_datadir}/emacs/site-lisp/site-start.d
%else
@ -10,7 +17,7 @@
Name: vala
Version: 0.5.2
Release: 1%{?dist}
Release: 2%{?dist}
Summary: A modern programming language for GNOME
Group: Development/Languages
@ -173,12 +180,15 @@ rm -rf $RPM_BUILD_ROOT
%files -n emacs-vala
%defattr(-,root,root,-)
%{emacs_lispdir}/*
%{emacs_lispdir}/*.el*
%{emacs_startdir}/*
%changelog
* Sat Dec 13 2008 Michel Salim <salimma@fedoraproject.org> - 0.5.2-2
- Use buildsystem variables to determine available Emacs version
* Sat Dec 13 2008 Michel Salim <salimma@fedoraproject.org> - 0.5.2-1
- Update to 0.5.2