aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mandriva.org>2005-05-12 06:36:03 +0000
committerOlivier Thauvin <nanardon@mandriva.org>2005-05-12 06:36:03 +0000
commit061562218c7f480fb8da80c47534d62f72e89bd8 (patch)
treea03ded3c97acd692fb598c53c9aed64a6ace7341
parent54c4b2bd261a97d92cddaf7add38f95442c65cdb (diff)
downloadrpm-setup-061562218c7f480fb8da80c47534d62f72e89bd8.tar
rpm-setup-061562218c7f480fb8da80c47534d62f72e89bd8.tar.gz
rpm-setup-061562218c7f480fb8da80c47534d62f72e89bd8.tar.bz2
rpm-setup-061562218c7f480fb8da80c47534d62f72e89bd8.tar.xz
rpm-setup-061562218c7f480fb8da80c47534d62f72e89bd8.zip
- 0.7 (provide emacs spec mode)v0_70.7
-rw-r--r--ChangeLog4
-rw-r--r--configure.ac2
-rw-r--r--rpm-mandriva-setup.spec36
3 files changed, 40 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index c818d2e..6a87dcc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-05-10 12:06 Olivier Thauvin <thauvin@aerov.jussieu.fr>
+
+ * configure.ac, rpm-mandriva-setup.spec: - 0.6
+
2005-05-10 06:03 Olivier Thauvin <thauvin@aerov.jussieu.fr>
* macros.in: - %_libexecdir == %_libdir
diff --git a/configure.ac b/configure.ac
index ed9fdca..7e1237c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4,7 +4,7 @@
# $Id$
AC_PREREQ(2.59)
-AC_INIT(rpm-mandriva-setup, 0.6, nanardon@mandriva.org)
+AC_INIT(rpm-mandriva-setup, 0.7, nanardon@mandriva.org)
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE(1.9)
AC_CONFIG_SRCDIR
diff --git a/rpm-mandriva-setup.spec b/rpm-mandriva-setup.spec
index f84c0d2..5eab50e 100644
--- a/rpm-mandriva-setup.spec
+++ b/rpm-mandriva-setup.spec
@@ -1,7 +1,18 @@
%define name rpm-mandriva-setup
-%define version 0.6
+%define version 0.7
%define release %mkrel 1
+# This can be usefull for backport as rpm-4.2
+# provide the emacs-spec mode
+%define have_emacsmodespec 1
+
+%if %mdkversion < 200600
+%define have_emacsmodespec 0
+%endif
+
+%{?_with_emacsspecmode: %define have_emacsmodespec 1}
+%{?_without_emacsspecmode: %define have_emacsmodespec 1}
+
Summary: The Mandriva rpm configuration and scripts
Name: %{name}
Version: %{version}
@@ -12,6 +23,9 @@ Group: System/Configuration/Packaging
Url: http://cvs.mandriva.com/cgi-bin/cvsweb.cgi/soft/rpm-setup/
BuildRoot: %{_tmppath}/%{name}-buildroot
Requires: spec-helper >= 0.6-5mdk
+%if have_emacsmodespec
+Conflicts: rpm < 4.4.1
+%endif
%description
The Mandriva rpm configuration and scripts
@@ -29,6 +43,18 @@ rm -rf $RPM_BUILD_ROOT
mkdir -p %buildroot%{_sysconfdir}/rpm/macros.d
+%if have_emacsmodespec
+# spec mode for emacs
+install -d $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/
+install -m644 rpm-spec-mode.el $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/
+
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/emacs/site-start.d
+cat <<EOF >$RPM_BUILD_ROOT%{_sysconfdir}/emacs/site-start.d/%{name}.el
+(setq auto-mode-alist (cons '("\\\\.spec$" . rpm-spec-mode) auto-mode-alist))
+(autoload 'rpm-spec-mode "rpm-spec-mode" "RPM spec mode (mandrakized)." t)
+EOF
+%endif
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -38,7 +64,15 @@ rm -rf $RPM_BUILD_ROOT
%_prefix/lib/rpm/mandriva
%dir %{_sysconfdir}/rpm/macros.d
+%if have_emacsmodespec
+%{_datadir}/emacs/site-lisp/rpm-spec-mode.el
+%config(noreplace) %{_sysconfdir}/emacs/site-start.d/%{name}.el
+%endif
+
%changelog
+* Thu May 12 2005 Olivier Thauvin <nanardon@mandriva.org> 0.7-1mdk
+- 0.7 (integrate spec mode for emacs)
+
* Tue May 10 2005 Olivier Thauvin <nanardon@mandriva.org> 0.6-1mdk
- 0.6 %_libexecdir