From 97cb5d881f525773486746bed22e6583a139dc05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sun, 29 May 2011 23:44:17 +0300 Subject: [PATCH] Byte compile Emacs lisp files, require emacs-filesystem for dir ownership. http://fedoraproject.org/wiki/Packaging:Emacs --- libidn.spec | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/libidn.spec b/libidn.spec index 70729b8..0f2932b 100644 --- a/libidn.spec +++ b/libidn.spec @@ -1,13 +1,14 @@ Summary: Internationalized Domain Name support library Name: libidn Version: 1.22 -Release: 1%{?dist} +Release: 2%{?dist} URL: http://www.gnu.org/software/libidn/ License: LGPLv2+ and GPLv3+ and GFDL Source0: http://ftp.gnu.org/gnu/libidn/libidn-%{version}.tar.gz Group: System Environment/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: pkgconfig, gettext +BuildRequires: pkgconfig, gettext, emacs +Requires: emacs-filesystem Requires(post): /sbin/install-info /sbin/ldconfig Requires(preun): /sbin/install-info Requires(postun): /sbin/ldconfig @@ -71,6 +72,8 @@ ln -sf ../../%{_lib}/`basename ${lib}` $RPM_BUILD_ROOT%{_libdir}/libidn.so sed -i 's,^libdir=.*$,libdir=%{_libdir},' \ $RPM_BUILD_ROOT%{_libdir}/pkgconfig/libidn.pc +%{_emacs_bytecompile} $RPM_BUILD_ROOT%{_emacs_sitelispdir}/*.el + %find_lang %{name} %post @@ -92,7 +95,8 @@ rm -rf %{buildroot} %doc AUTHORS NEWS FAQ README THANKS COPYING* %{_bindir}/idn %{_mandir}/man1/idn.1* -%{_datadir}/emacs/site-lisp +%{_emacs_sitelispdir}/*.el +%{_emacs_sitelispdir}/*.elc /%{_lib}/libidn.so.* %{_infodir}/%{name}.info.gz @@ -105,6 +109,9 @@ rm -rf %{buildroot} %{_mandir}/man3/* %changelog +* Sun May 29 2011 Ville Skyttä - 1.22-2 +- Byte compile Emacs lisp files, require emacs-filesystem for dir ownership. + * Thu May 05 2011 Miroslav Lichvar - 1.22-1 - update to 1.22