Change actually numbers of version and release to macros

This commit is contained in:
chengzihan2 2020-09-02 09:38:19 +08:00
parent 929e7f188e
commit 53ffdf9c9c

View File

@ -1,6 +1,6 @@
Name: libpq
Version: 11.2
Release: 4
Release: 5
Summary: A share library of PostgreSQL
License: PostgreSQL
Url: http://www.postgresql.org/
@ -11,7 +11,7 @@ Patch0003: libpq-10.4-symbol-versioning.patch
BuildRequires: gcc glibc-devel bison flex gawk zlib-devel openssl-devel
BuildRequires: krb5-devel openldap-devel gettext multilib-rpm-config
Obsoletes: postgresql-libs < 11
Provides: postgresql-libs = 11.2-3
Provides: postgresql-libs = %{version}-%{release}
%description
PostgreSQL is a powerful, open source object-relational database system
that uses and extends the SQL language combined with many features that
@ -21,13 +21,13 @@ or interface.
%package devel
Summary: Development files for building PostgreSQL client tools
Requires: libpq%{?_isa} = 11.2-3%{?dist}
Provides: postgresql-devel = 11.2-3
Requires: libpq%{?_isa} = %{version}-%{release}
Provides: postgresql-devel = %{version}-%{release}
Obsoletes: postgresql-devel < 11
%description devel
The development package of libpq
%prep
%autosetup -n postgresql-11.2 -p1
%autosetup -n postgresql-%{version} -p1
%build
export SYMBOL_VERSION_PREFIX=RHPG_
@ -70,6 +70,9 @@ cat pg_config-11.lang >>libpq-devel.lst
%_libdir/pkgconfig/libpq.pc
%changelog
* Wed Sep 2 2020 chengzihan <chengzihan2@huawei.com> - 11.2-5
- Change actually numbers of version and release to macros
* Wed Aug 26 2020 chengzihan <chengzihan2@huawei.com> - 11.2-4
- Fix installing problem of libpq-devel