!2 Change actually numbers of version and release to macros
Merge pull request !2 from 成子晗/master
This commit is contained in:
commit
fe1a743b70
13
libpq.spec
13
libpq.spec
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user