[PATCH] librep: spec file update for Emacs

> 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}
-%define emacs_lispdir %(pkg-config emacs --variable sitepkglispdir)
+%define emacs_lispdir %{_datadir}/emacs/site-lisp

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]