[libodb] Using %{base_version} so it only has to be changed in one place
Dave Johansen
daveisfera at fedoraproject.org
Thu Feb 12 03:57:16 UTC 2015
commit ac77183bb3e18a2f19b187f8edf8b4dc14290375
Author: Dave Johansen <davejohansen at gmail.com>
Date: Wed Feb 11 20:57:03 2015 -0700
Using %{base_version} so it only has to be changed in one place
libodb.spec | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/libodb.spec b/libodb.spec
index 8a27e0a..0a85d13 100644
--- a/libodb.spec
+++ b/libodb.spec
@@ -1,12 +1,15 @@
+# The base of the version (just major and minor without point)
+%global base_version 2.4
+
Name: libodb
-Version: 2.4.0
+Version: %{base_version}.0
Release: 1%{?dist}
Summary: Common ODB runtime library from Code Synthesis
Group: System Environment/Libraries
License: GPLv2
URL: http://www.codesynthesis.com/products/odb/
-Source0: http://www.codesynthesis.com/download/odb/2.4/%{name}-%{version}.tar.bz2
+Source0: http://www.codesynthesis.com/download/odb/%{base_version}/%{name}-%{version}.tar.bz2
# Set BuildRoot for compatibility with EPEL <= 5
# See: http://fedoraproject.org/wiki/EPEL:Packaging#BuildRoot_tag
@@ -64,7 +67,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%doc GPLv2
%doc LICENSE
-%{_libdir}/libodb-2.3.so
+%{_libdir}/libodb-%{base_version}.so
# Exclude the documentation that doesn't need to be packaged
%exclude %{_datadir}/doc/libodb/GPLv2
%exclude %{_datadir}/doc/libodb/LICENSE
More information about the scm-commits
mailing list