[packages/exim] Fixup versioning, so actual version is presented (as we patch base version with git branch patch)
arekm
arekm at pld-linux.org
Tue Feb 17 19:50:04 CET 2026
commit d7d8831c67e160f4ab05f39fb72ef4914150bb56
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Tue Feb 17 19:41:16 2026 +0100
Fixup versioning, so actual version is presented (as we patch base version with git branch patch)
exim.spec | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
---
diff --git a/exim.spec b/exim.spec
index d8dd8fa..2c71cdf 100644
--- a/exim.spec
+++ b/exim.spec
@@ -17,19 +17,21 @@
%undefine with_hiredis
%endif
+%define main_ver 4.99
+
Summary: University of Cambridge Mail Transfer Agent
Summary(pl.UTF-8): Agent Transferu Poczty Uniwersytetu w Cambridge
Summary(pt_BR.UTF-8): Servidor de correio eletrônico exim
Name: exim
-Version: 4.99
-Release: 9
+Version: %{main_ver}.1
+Release: 1
Epoch: 2
License: GPL v2+
Group: Networking/Daemons/SMTP
-Source0: https://ftp.exim.org/pub/exim/exim4/%{name}-%{version}.tar.bz2
+Source0: https://ftp.exim.org/pub/exim/exim4/%{name}-%{main_ver}.tar.bz2
# Source0-md5: 66b3c16e64bb62bc372369f201ea5c40
Source1: https://ftp.exim.org/pub/exim/exim4/%{name}-html-%{version}.tar.bz2
-# Source1-md5: 1347946146a59c7e871d8bd49889b98d
+# Source1-md5: 848bc924e560829878b8eba830071a1b
Source2: %{name}.init
Source3: %{name}.cron.db
Source4: %{name}4.conf
@@ -48,7 +50,7 @@ Source15: %{name}4-smtp.pamd
Source16: %{name}on.png
# sh branch.sh
Patch100: %{name}-git.patch
-# Patch100-md5: 981e1e070ab173163d77c44b82429090
+# Patch100-md5: 975532c68d5c3d1378945fb1045d7c86
Patch0: %{name}4-EDITME.patch
Patch1: %{name}4-monitor-EDITME.patch
Patch2: %{name}4-cflags.patch
@@ -170,7 +172,7 @@ Pliki nagłówkowe dla Exima.
%{?with_dynamic:%global dynamic_type 2}
%prep
-%setup -q -a1 -a7
+%setup -q -n %{name}-%{main_ver} -a1 -a7
%patch -P100 -p2
%patch -P0 -p1
%patch -P1 -p1
@@ -181,6 +183,10 @@ Pliki nagłówkowe dla Exima.
%patch -P6 -p1
%patch -P7 -p2
+# fixup version
+sed -i 's/^[[:space:]]*#define[[:space:]]\+EXIM_RELEASE_VERSION[[:space:]]\+".*"/#define EXIM_RELEASE_VERSION "%{version}"/' src/version.h
+sed -i 's/^EXIM_RELEASE_VERSION=".*"/EXIM_RELEASE_VERSION="%{version}"/' src/version.sh
+
install %{SOURCE4} exim4.conf
install %{SOURCE14} doc/config.samples.tar.bz2
install -d Local
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/exim.git/commitdiff/d7d8831c67e160f4ab05f39fb72ef4914150bb56
More information about the pld-cvs-commit
mailing list