rpms/emacs/devel emacs.spec,1.95,1.96
Charles Coldwell (coldwell)
fedora-extras-commits at redhat.com
Mon Aug 13 19:21:10 UTC 2007
Author: coldwell
Update of /cvs/pkgs/rpms/emacs/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv12532
Modified Files:
emacs.spec
Log Message:
* Mon Aug 13 2007 Chip Coldwell <coldwell at redhat.com> - 22.1-2
- add pkgconfig file for emacs-common and virtual provides (Resolves: bz242176)
- glibc-open-macro.patch to deal with glibc turning "open" into a macro.
- leave emacs info pages in default section (Resolves: bz199008)
Index: emacs.spec
===================================================================
RCS file: /cvs/pkgs/rpms/emacs/devel/emacs.spec,v
retrieving revision 1.95
retrieving revision 1.96
diff -u -r1.95 -r1.96
--- emacs.spec 26 Jun 2007 17:00:50 -0000 1.95
+++ emacs.spec 13 Aug 2007 19:20:38 -0000 1.96
@@ -3,7 +3,7 @@
Summary: GNU Emacs text editor
Name: emacs
Version: 22.1
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPL
URL: http://www.gnu.org/software/emacs/
Group: Applications/Editors
@@ -28,6 +28,7 @@
Source19: wrapper
Source20: igrep.el
Source21: igrep-init.el
+Patch0: glibc-open-macro.patch
Buildroot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: atk-devel, cairo-devel, freetype-devel, fontconfig-devel, giflib-devel, glibc-devel, gtk2-devel, libpng-devel
BuildRequires: libjpeg-devel, libtiff-devel, libX11-devel, libXau-devel, libXdmcp-devel, libXrender-devel, libXt-devel
@@ -36,12 +37,14 @@
Requires: xorg-x11-fonts-ISO8859-1-75dpi
Requires: emacs-common = %{version}-%{release}
Conflicts: gettext < 0.10.40
+Provides: emacs(bin)
# C and build patches
# Lisp and doc patches
%define paranoid 1
+%define expurgate 0
%description
Emacs is a powerful, customizable, self-documenting, modeless text
@@ -55,6 +58,7 @@
Summary: GNU Emacs text editor without X support
Group: Applications/Editors
Requires: emacs-common = %{version}-%{release}
+Provides: emacs(bin)
%description nox
Emacs is a powerful, customizable, self-documenting, modeless text
@@ -94,6 +98,7 @@
%prep
%setup -q
+%patch0 -p1 -b .glibc-open-macro
# install rest of site-lisp files
( cd site-lisp
@@ -110,6 +115,10 @@
rm -f tetris.el tetris.elc )
%endif
+%if %{expurgate}
+rm -f etc/sex.6 etc/condom.1 etc/celibacy.1 etc/COOKIES etc/future-bug etc/JOKES
+%endif
+
%build
export CFLAGS="-DMAIL_USE_LOCKF -DSYSTEM_PURESIZE_EXTRA=16777216 $RPM_OPT_FLAGS"
@@ -134,6 +143,16 @@
%__make %{?_smp_mflags} -C lisp updates
+# Create pkg-config file
+cat > emacs.pc << EOF
+sitepkglispdir=%{site_lisp}
+sitestartdir=%{site_lisp}/site-start.d
+
+Name: emacs
+Description: GNU Emacs text editor
+Version: %{version}
+EOF
+
%install
rm -rf $RPM_BUILD_ROOT
@@ -180,6 +199,10 @@
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/skel
install -m 0644 %SOURCE3 $RPM_BUILD_ROOT%{_sysconfdir}/skel/.emacs
+# install pkgconfig file
+mkdir -p %{buildroot}%{_datadir}/pkg-config
+install -m 0644 emacs.pc %{buildroot}%{_datadir}/pkg-config
+
# after everything is installed, remove info dir
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
rm $RPM_BUILD_ROOT%{_localstatedir}/games/emacs/*
@@ -226,15 +249,14 @@
%post common
for f in %{info_files}; do
- /sbin/install-info %{_infodir}/$f.gz %{_infodir}/dir --section="GNU Emacs" 2> /dev/null || :
+ /sbin/install-info %{_infodir}/$f.gz %{_infodir}/dir 2> /dev/null || :
done
alternatives --install %{_bindir}/etags etags %{_bindir}/etags.emacs 80
%preun common
if [ "$1" = 0 ]; then
for f in %{info_files}; do
- /sbin/install-info --delete %{_infodir}/$f.gz %{_infodir}/dir \
- --section="GNU Emacs" 2> /dev/null || :
+ /sbin/install-info --delete %{_infodir}/$f.gz %{_infodir}/dir 2> /dev/null || :
done
alternatives --remove etags %{_bindir}/etags.emacs
fi
@@ -273,10 +295,16 @@
%files -f el-filelist el
%defattr(-,root,root)
+%{_datadir}/pkg-config/emacs.pc
%dir %{_datadir}/emacs
%dir %{_datadir}/emacs/%{version}
%changelog
+* Mon Aug 13 2007 Chip Coldwell <coldwell at redhat.com> - 22.1-2
+- add pkgconfig file for emacs-common and virtual provides (Resolves: bz242176)
+- glibc-open-macro.patch to deal with glibc turning "open" into a macro.
+- leave emacs info pages in default section (Resolves: bz199008)
+
* Fri Jun 6 2007 Chip Coldwell <coldwell at redhat.com> - 22.1-1
- move alternatives install to posttrans scriptlet (Resolves: bz239745)
- new release tarball from FSF (Resolves: bz245303)
More information about the fedora-extras-commits
mailing list