Byte compile Emacs lisp files, require emacs-filesystem for dir ownership.

http://fedoraproject.org/wiki/Packaging:Emacs
This commit is contained in:
Ville Skyttä 2011-05-29 23:44:17 +03:00
parent 60c012ae35
commit 97cb5d881f

View File

@ -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ä <ville.skytta@iki.fi> - 1.22-2
- Byte compile Emacs lisp files, require emacs-filesystem for dir ownership.
* Thu May 05 2011 Miroslav Lichvar <mlichvar@redhat.com> - 1.22-1
- update to 1.22