[PATCH] librep: spec file update for Emacs
- From: "Kim B. Heino" <b bbbs net>
- To: sawfish-list gnome org
- Subject: [PATCH] librep: spec file update for Emacs
- Date: Sun, 3 Jan 2010 14:56:02 +0200
> This patch uses %{_kde4_appsdir} macro instead of `kde4-config
> --install data`. If it is missing we fallback to
> %{_datadir}/kde4/apps.
Here's the same for librep and %{_emacs_sitelispdir}.
--- librep/librep.spec.in.orig 2010-01-03 14:50:28.000000000 +0200
+++ librep/librep.spec.in 2010-01-03 14:52:27.000000000 +0200
@@ -10,10 +10,10 @@
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: gmp-devel gdbm-devel readline-devel texinfo libffi-devel
-%if %($(pkg-config emacs) ; echo $?)
-%define emacs_lispdir %{_datadir}/emacs/site-lisp
+%if %{?_emacs_sitelispdir:1}%{!?_emacs_sitelispdir:0}
+%define emacs_lispdir %{_emacs_sitelispdir}
%else
-%define emacs_lispdir %(pkg-config emacs --variable sitepkglispdir)
+%define emacs_lispdir %{_datadir}/emacs/site-lisp
%endif
%description
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]