%global pkg emacs-goodies %global pkgname Emacs-goodies %global goodies_dir %{buildroot}%{_emacs_sitelispdir}/goodies/ %global gnus_dir %{buildroot}%{_emacs_sitelispdir}/gnus-bonus/ %global installinfo /sbin/install-info Name: %{pkg} Version: 33.5 Release: 1%{?dist} Summary: Miscellaneous add on for Emacs Group: Applications/Editors License: GPLv2+ and GPLv3 URL: http://packages.debian.org/sid/lisp/emacs-goodies-el Source0: http://snapshot.debian.org/archive/debian/20100512T095212Z/pool/main/e/emacs-goodies-el/emacs-goodies-el_33.5.tar.gz Source1: gnus-bonus-init.el #Patch which adjusts debian specific information to fedora in texi file #Patch is irrelevant to upstream as it is specific to Fedora Patch0: emacs-goodies-el.texi.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: emacs texinfo Requires: emacs(bin) >= %{_emacs_version} %description This is %{pkgname} %{version} which provides numerous add on for GNU Emacs and Gnus. %package el Summary: Elisp source files for %{pkgname} Group: Applications/Editors Requires: %{name} = %{version}-%{release} %description el This package contains the Elisp source files for %{pkgname}. You do not need to install this package to use %{pkgname}. %prep %setup -q -n %{pkg}-el-%{version} %patch0 -p1 -b .fix %{__cp} debian/patches/* . while read -r line do patch -p1 <$line done < series %{__rm} -rf elisp/debian-el/ %{__rm} -rf elisp/dpkg-dev-el/ %{__rm} -rf elisp/devscripts-el/ %{__rm} -rf elisp/emacs-goodies-el/color-theme* %build %{__mkdir} -p elisp/%{pkg}-el/info cd elisp/%{pkg}-el/ %{__chmod} +x %{pkg}-loaddefs.make ./%{pkg}-loaddefs.make %{_emacs_bytecompile} *.el makeinfo emacs-goodies-el.texi iconv -f iso8859-1 -t utf-8 info/emacs-goodies > info/emacs-goodies.utf %{__mv} info/emacs-goodies.utf info/emacs-goodies cd ../gnus-bonus-el/ %{_emacs_bytecompile} *.el %install %{__rm} -rf %{buildroot} %{__install} -pm 755 -d %{goodies_dir} %{__install} -pm 755 -d %{buildroot}%{_emacs_sitestartdir} %{__install} -pm 644 elisp/%{pkg}-el/%{pkg}-loaddefs.el %{buildroot}%{_emacs_sitestartdir} %{__install} -pm 644 elisp/%{pkg}-el/*.elc %{goodies_dir} %{__install} -pm 644 elisp/%{pkg}-el/*.el %{goodies_dir} %{__install} -pm 755 -d %{gnus_dir} %{__install} -pm 644 elisp/gnus-bonus-el/*.elc %{gnus_dir} %{__install} -pm 644 elisp/gnus-bonus-el/*.el %{gnus_dir} %{__install} -pm 644 %{SOURCE1} %{buildroot}%{_emacs_sitestartdir} %{__install} -pm 755 -d %{buildroot}%{_infodir}/ %{__install} -pm 644 elisp/%{pkg}-el/info/%{pkg} %{buildroot}%{_infodir}/ %clean %{__rm} -rf %{buildroot} %post %{installinfo} %{_infodir}/%{pkg} %{_infodir}/dir %preun if [ "$1" = 0 ]; then %{installinfo} --delete %{_infodir}/%{pkg} %{_infodir}/dir fi %files %defattr(-,root,root,-) %{_emacs_sitelispdir}/goodies/*.elc %{_emacs_sitestartdir}/emacs-goodies-loaddefs.el %{_emacs_sitestartdir}/gnus-bonus-init.el %{_emacs_sitelispdir}/gnus-bonus/*.elc %{_infodir}/%{pkg}.gz %dir %{_emacs_sitelispdir}/goodies %dir %{_emacs_sitelispdir}/gnus-bonus %files el %defattr(-,root,root,-) %doc COPYING-GPL-v2 COPYING-GPL-v3 %{_emacs_sitelispdir}/goodies/*.el %{_emacs_sitelispdir}/gnus-bonus/*.el %changelog * Sat May 29 2010 Arun S.A.G - 33.5-1 - Updated to emacs-goodies 33.5-1 * Sun May 16 2010 Arun S.A.G - 31.5-2 - Bumping version to match F12 * Fri Apr 2 2010 Arun S.A.G - 31.5-1 - Updated to version 31.5 * Sun Mar 14 2010 Jonathan G. underwood - 31.4-2 - Update spec file to comply with Emacs add-on packaging guidelines * Wed Jan 13 2010 Arun SAG - 31.4-1 - Removed patch1 as it is integrated into source by the upstream - Made gnus to be autoloaded using source1 - Updated to version 31.4 * Wed Dec 16 2009 Arun SAG - 31.2-3 - License adjusted to GPLv2+ and GPLv3 * Mon Dec 14 2009 Arun SAG - 31.2-2 - Comment on patches added * Fri Dec 4 2009 Arun SAG - 31.2-1 - Updated to version 31.2-1 * Thu Nov 26 2009 Arun SAG - 31.1-1 - Updated to version 31.1-1 * Sun Nov 15 2009 Arun SAG - 30.11-1 - Updated to version 30.11-1 * Fri Oct 30 2009 Arun SAG - 30.8-2 - Upstream patches are applied * Thu Oct 22 2009 Arun SAG - 30.8-1 - Updated to 30.8-1 - License corrected to GPLv2+ * Tue Sep 15 2009 Arun SAG - 30.5-1 - Initial release 30.5-1