138 lines
3.9 KiB
RPMSpec
138 lines
3.9 KiB
RPMSpec
Name: libpq
|
|
Version: 15.13
|
|
Release: 1
|
|
Summary: PostgreSQL client library
|
|
License: PostgreSQL
|
|
Url: http://www.postgresql.org/
|
|
|
|
Source0: https://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2
|
|
Patch0001: libpq-10.3-rpm-pgsql.patch
|
|
Patch0002: libpq-10.3-var-run-socket.patch
|
|
Patch0003: libpq-12.1-symbol-versioning.patch
|
|
Patch0004: add-loongarch-support.patch
|
|
Patch0005: add-sw_64-support.patch
|
|
|
|
BuildRequires: gcc glibc-devel bison flex gawk zlib-devel openssl-devel
|
|
BuildRequires: krb5-devel openldap-devel gettext multilib-rpm-config
|
|
|
|
Obsoletes: postgresql-libs < 15
|
|
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
|
|
safely store and scale the most complicated data workloads. This package
|
|
provides the essential shared library for any PostgreSQL client program
|
|
or interface.
|
|
|
|
%package devel
|
|
Summary: Development files for building PostgreSQL client tools
|
|
Requires: libpq%{?_isa} = %{version}-%{release}
|
|
Provides: postgresql-devel = %{version}-%{release}
|
|
Obsoletes: postgresql-devel < 15
|
|
|
|
%description devel
|
|
The development package of libpq
|
|
|
|
%prep
|
|
%autosetup -n postgresql-%{version} -p1
|
|
|
|
%build
|
|
export SYMBOL_VERSION_PREFIX=RHPG_
|
|
%configure --disable-rpath --with-ldap --with-openssl --with-gssapi \
|
|
--enable-nls --without-readline --datadir=%_datadir/pgsql
|
|
%global build_subdirs \\\
|
|
src/port \\\
|
|
src/interfaces/libpq \\\
|
|
src/bin/pg_config \\\
|
|
src/include
|
|
for subdir in %build_subdirs; do
|
|
%make_build -C "$subdir"
|
|
done
|
|
|
|
%install
|
|
for subdir in %build_subdirs; do
|
|
%make_install -C "$subdir"
|
|
done
|
|
|
|
find $RPM_BUILD_ROOT -name '*.a' -delete
|
|
rm -r $RPM_BUILD_ROOT%_includedir/pgsql/server
|
|
|
|
%multilib_fix_c_header --file "%_includedir/pg_config.h"
|
|
%multilib_fix_c_header --file "%_includedir/pg_config_ext.h"
|
|
|
|
cp /dev/null libpq.lst
|
|
%find_lang libpq5-15
|
|
cat libpq5-15.lang >>libpq.lst
|
|
cp /dev/null libpq-devel.lst
|
|
%find_lang pg_config-15
|
|
cat pg_config-15.lang >>libpq-devel.lst
|
|
|
|
%files -f libpq.lst
|
|
%license COPYRIGHT
|
|
%_libdir/libpq.so.5*
|
|
%dir %_datadir/pgsql
|
|
%doc %_datadir/pgsql/pg_service.conf.sample
|
|
|
|
%files devel -f libpq-devel.lst
|
|
%_bindir/pg_config
|
|
%_includedir/*
|
|
%_libdir/libpq.so
|
|
%_libdir/pkgconfig/libpq.pc
|
|
|
|
%changelog
|
|
* Fri May 09 2025 Funda Wang <fundawang@yeah.net> - 15.13-1
|
|
- update to version 15.13
|
|
|
|
* Sat Mar 15 2025 mahailiang <mahailiang@uniontech.com> - 15.12-2
|
|
- add sw_64 support
|
|
|
|
* Thu Feb 20 2025 Funda Wang <fundawang@yeah.net> - 15.12-1
|
|
- update to 15.12 to fix CVE-2025-1094
|
|
|
|
* Fri Nov 15 2024 Funda Wang <fundawang@yeah.net> - 15.9-1
|
|
- update to 15.9
|
|
|
|
* Fri Aug 09 2024 Funda Wang <fundawang@yeah.net> - 15.8-1
|
|
- update to 15.8
|
|
|
|
* Fri May 10 2024 qz_cx wangqingzheng@kylinos.cn - 15.6-2
|
|
- Type:CVE
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC: fix CVE-2024-4317
|
|
|
|
* Wed Apr 3 2024 xiejing <xiejing@kylinos.cn> - 15.6-1
|
|
- upgrade libpq to 15.6
|
|
|
|
* Mon Nov 20 2023 dillon chen<dillon.chen@gmail.com> - 15.5-1
|
|
- upgrade libpq to 15.5
|
|
- CVE-2023-5868/5869/5870
|
|
|
|
* Wed Aug 16 2023 dillon chen<dillon.chen@gmail.com> - 15.4-1
|
|
- upgrade libpq to 15.4
|
|
|
|
* Tue Aug 8 2023 dillon chen<dillon.chen@gmail.com> - 15.3-1
|
|
- upgrade libpq to 15.3
|
|
|
|
* Tue Jun 27 2023 dillon chen<dillon.chen@gmail.com> - 15.0-1
|
|
- upgrade libpq to 15.0
|
|
|
|
* Thu Dec 1 2022 huajingyun <huajingyun@loongson.cn> - 13.7-2
|
|
- add loongarch support
|
|
|
|
* Mon Jun 13 2022 duyiwei <duyiwei@kylinos.cn> - 13.7-1
|
|
- upgrade libpq to 13.7,fix CVE-2021-32027,CVE-2022-1552
|
|
|
|
* Thu May 19 2022 yangweidong <yangweidong9@huawei.com> - 11.16-1
|
|
- Upgrade libpq to 11.16, fix CVES: CVE-2021-32028 CVE-2021-3677 CVE-2021-23222
|
|
|
|
* 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
|
|
|
|
* Tue Nov 26 2019 openEuler Buildteam <buildteam@openeuler.org> - 11.2-3
|
|
- Package init
|