Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 77216 - spec file won't proper work in case of "snapshot"
Summary: spec file won't proper work in case of "snapshot"
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: postfix
Version: 8.0
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: John Dennis
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2002-11-03 12:48 UTC by Peter Bieringer
Modified: 2007-04-18 16:48 UTC (History)
0 users

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Last Closed: 2004-01-22 00:27:11 UTC

Attachments (Terms of Use)

Description Peter Bieringer 2002-11-03 12:48:07 UTC
Description of problem:
There are some minor bugs regarding to "snapshot" mode in spec file

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
Edit spec file
1. %define official 0
2. %define releasedate 20021029
3. try build

Actual Results:  Some errors

Expected Results:  Clean build

Additional info:

Following patches will solve the issue:

--- postfix-1.1.11-5.spec       Wed Sep 11 15:47:59 2002
+++ postfix-1.1.11-5fixed.spec  Sun Nov  3 13:44:35 2002
@@ -10,15 +10,15 @@
 %define POSTDROP_GID 90

 # If set to 1 if official version, 0 if snapshot
-%define official 1
+%define official 0
 %define ver 1.1.11
-%define releasedate 20020624
+%define releasedate 20021029
 %define alternatives 1
 %if %{official}
 Version: %{ver}
 %define ftp_directory official
-Version: %{ver}-%{releasedate}
+Version: %{ver}.%{releasedate}
 %define ftp_directory experimental

@@ -48,7 +48,11 @@
 Provides: MTA smtpd smtpdaemon /usr/bin/newaliases
 Release: 5
 Summary: Postfix Mail Transport Agent
+%if %{official}
 Source3: postfix-etc-init.d-postfix
 Source5: postfix-aliases
 Source6: postfix-chroot-setup.awk
@@ -104,7 +108,12 @@
 umask 022

+%if %{official}
 %setup -q -a 9
+%setup -q -a 9 -n %{name}-%{ver}-%{releasedate}
 # Apply the TLS patch, must be at first, because the changes of
 %if %{TLS}
 patch -p1 <%{tlsno}/pfixtls.diff
@@ -508,6 +517,9 @@

+* Wed Nov 03 2002 Dr. Peter Bieringer <>
+- fix spec file for use with snapshot 1.1.11-20021029
 * Wed Jul 24 2002 Karsten Hopp <>
 - make aliases.db config(noreplace) (#69612)

Comment 1 John Dennis 2004-01-22 00:27:11 UTC
Done. Better late than never :-) Thanks!

Note You need to log in before you can comment on or make changes to this bug.