[libodb-pgsql] Using %{base_version} so it only has to be changed in one place
Dave Johansen
daveisfera at fedoraproject.org
Thu Feb 12 04:04:27 UTC 2015
commit 90344d9ed7ffd84749b846b8f9bc8de4b524953f
Author: Dave Johansen <davejohansen at gmail.com>
Date: Wed Feb 11 21:04:15 2015 -0700
Using %{base_version} so it only has to be changed in one place
libodb-pgsql.spec | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/libodb-pgsql.spec b/libodb-pgsql.spec
index 71e0a89..5736ef0 100644
--- a/libodb-pgsql.spec
+++ b/libodb-pgsql.spec
@@ -1,19 +1,22 @@
+# The base of the version (just major and minor without point)
+%global base_version 2.3
+
Name: libodb-pgsql
-Version: 2.3.1
+Version: %{base_version}.1
Release: 3%{?dist}
Summary: PostgreSQL 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.3/%{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
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# Uses libodb from Code Synthesis
-BuildRequires: libodb-devel >= 2.3.0
+BuildRequires: libodb-devel >= %{base_version}
# Uses PostgreSQL
BuildRequires: postgresql-devel
# Uses pkgconfig
@@ -68,7 +71,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%doc GPLv2
%doc LICENSE
-%{_libdir}/libodb-pgsql-2.3.so
+%{_libdir}/libodb-pgsql-%{base_version}.so
# Exclude the documentation that doesn't need to be packaged
%exclude %{_datadir}/doc/libodb-pgsql/GPLv2
%exclude %{_datadir}/doc/libodb-pgsql/LICENSE
More information about the scm-commits
mailing list