On Wed, May 31 2006, David Kastrup wrote:
> Reiner Steib <[EMAIL PROTECTED]> 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}
URL: http://www.gnu.org/software/auctex/
--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.
Footnotes:
[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 | http://rsteib.home.pages.de/
_______________________________________________
auctex-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/auctex-devel