[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX-devel] Re: Upcoming 11.83 release

From: Reiner Steib
Subject: [AUCTeX-devel] Re: Upcoming 11.83 release
Date: Wed, 31 May 2006 16:05:39 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

On Wed, May 31 2006, David Kastrup wrote:

> Reiner Steib <address@hidden> writes:
>> [1] Before upgrading to the final 11.83 version, you need to "rpm -e"
>>     the pre-11.83 RPM.  "rpm -U" wont work (unless we bump the
>>     "Release" version in the spec file from 0 to 1 for the final RPM).
> If anybody has a clue about RPM macros and such: we'd want 11.83-1 for
> a version with a non-empty $Name: $ tag after keyword expansion,

I don't understand your intend.  Did you really mean "Name:" and not
"Release:" or something?

> and likely something like 0-20060529 otherwise.

Using a scheme like "0-20060529" (with "-") doesn't work (an
underscore is okay):

| error: line 16: Illegal char '-' in release: Release:   0-20060531.suse

The patch below seems[1] to allow the inclusion of the date from the
command line (or from the Makefile).

$ rpmbuild -ba --define "micro_version _20060531" auctex.spec
==> auctex-emacs-11.83-0_20060531.suse.noarch.rpm
==> auctex-11.83-0_20060531.suse.src.rpm

If "micro_version" is undefined (proper releases):

$ rpmbuild -ba auctex.spec
==> auctex-emacs-11.83-1.suse.noarch.rpm
==> auctex-11.83-1.suse.src.rpm

--8<---------------cut here---------------start------------->8---
--- auctex.spec 31 May 2006 00:24:36 +0200      1.44
+++ auctex.spec 31 May 2006 15:44:54 +0200      
@@ -13,7 +13,7 @@
 Summary:       Enhanced TeX modes for Emacsen
 Name:          auctex
 Version:       11.83
-Release:       0%{distri}
+Release:       %{?micro_version:%micro_version}%{!?micro_version:1}%{distri}
 License:       GPL
 Group:                 %{commongroup}
--8<---------------cut here---------------end--------------->8---

(Feel free to suggest a better name than "micro_version".)

If we want to have a scheme like...

  auctex*-x.y-0_YYYYMMDD*.rpm   =   Pre-Release RPM for x.y
                                    on date YYYYMMDD
  auctex*-x.y-N.*.rpm           =   N-th official RPM for x.y
                                    (N >= 1)

... I'd commit this.

Bye, Reiner.

[1]  Disclaimer: I don't claim to have a clue about RPM macros.  This
     was done by trial-and-error.
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |

reply via email to

[Prev in Thread] Current Thread [Next in Thread]