libpq/SPECS/libpq.spec

226 lines
6.9 KiB
RPMSpec
Raw Permalink Normal View History

2021-03-30 15:20:00 +00:00
%global majorversion 13
2020-07-28 13:44:01 +00:00
%global obsoletes_version %( echo $(( %majorversion + 1 )) )
2019-08-01 17:37:17 +00:00
Summary: PostgreSQL client library
Name: libpq
2023-10-19 08:34:29 +00:00
Version: %{majorversion}.11
2021-03-30 15:20:00 +00:00
Release: 1%{?dist}
2019-08-01 17:37:17 +00:00
License: PostgreSQL
Url: http://www.postgresql.org/
2020-07-28 13:44:01 +00:00
Source0: https://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2
Source1: https://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2.sha256
2019-08-01 17:37:17 +00:00
# Comments for these patches are in the patch files.
Patch1: libpq-10.3-rpm-pgsql.patch
Patch2: libpq-10.3-var-run-socket.patch
2023-10-19 08:34:29 +00:00
Patch3: libpq-12.1-symbol-versioning.patch
2019-08-01 17:37:17 +00:00
BuildRequires: gcc
BuildRequires: glibc-devel bison flex gawk
BuildRequires: zlib-devel
BuildRequires: openssl-devel
BuildRequires: krb5-devel
BuildRequires: openldap-devel
BuildRequires: gettext
BuildRequires: multilib-rpm-config
2023-10-19 08:34:29 +00:00
BuildRequires: make
2019-08-01 17:37:17 +00:00
2020-07-28 13:44:01 +00:00
Obsoletes: postgresql-libs < %obsoletes_version
Provides: postgresql-libs = %version-%release
2019-08-01 17:37:17 +00:00
%description
The libpq package provides the essential shared library for any PostgreSQL
client program or interface. You will need to install this package to use any
other PostgreSQL package or any clients that need to connect to a PostgreSQL
server.
%package devel
Summary: Development files for building PostgreSQL client tools
Requires: %name%{?_isa} = %version-%release
# Historically we had 'postgresql-devel' package which was used for building
# both PG clients and PG server modules; let's have this fake provide to cover
# most of the depending packages and the rest (those which want to build server
# modules) need to be fixed to require postgresql-server-devel package.
Provides: postgresql-devel = %version-%release
2020-07-28 13:44:01 +00:00
Obsoletes: postgresql-devel < %obsoletes_version
2019-08-01 17:37:17 +00:00
2020-07-28 13:44:01 +00:00
%description devel
2019-08-01 17:37:17 +00:00
The libpq package provides the essential shared library for any PostgreSQL
client program or interface. You will need to install this package to build any
package or any clients that need to connect to a PostgreSQL server.
%prep
2020-07-28 13:44:01 +00:00
( cd "$(dirname "%SOURCE1")" ; sha256sum -c "%SOURCE1" )
2023-10-19 08:34:29 +00:00
%autosetup -n postgresql-%version -p1
2019-08-01 17:37:17 +00:00
# remove .gitignore files to ensure none get into the RPMs (bug #642210)
find . -type f -name .gitignore | xargs rm
%build
2020-07-28 13:44:01 +00:00
# complements symbol-versioning patch
2019-08-01 17:37:17 +00:00
export SYMBOL_VERSION_PREFIX=RHPG_
2020-07-28 13:44:01 +00:00
# We don't build server nor client (e.g. /bin/psql) binaries in this package, so
# we can disable some configure options.
2019-08-01 17:37:17 +00:00
%configure \
2020-07-28 13:44:01 +00:00
--disable-rpath \
--with-ldap \
--with-openssl \
--with-gssapi \
--enable-nls \
--without-readline \
--datadir=%_datadir/pgsql
2019-08-01 17:37:17 +00:00
%global build_subdirs \\\
2020-07-28 13:44:01 +00:00
src/include \\\
src/common \\\
src/port \\\
src/interfaces/libpq \\\
src/bin/pg_config
2019-08-01 17:37:17 +00:00
for subdir in %build_subdirs; do
2020-07-28 13:44:01 +00:00
%make_build -C "$subdir"
2019-08-01 17:37:17 +00:00
done
%install
for subdir in %build_subdirs; do
2020-07-28 13:44:01 +00:00
%make_install -C "$subdir"
2019-08-01 17:37:17 +00:00
done
# remove files not to be packaged
2020-07-28 13:44:01 +00:00
find $RPM_BUILD_ROOT -name '*.a' -delete
2019-08-01 17:37:17 +00:00
rm -r $RPM_BUILD_ROOT%_includedir/pgsql/server
2020-07-28 13:44:01 +00:00
%multilib_fix_c_header --file "%_includedir/pg_config.h"
%multilib_fix_c_header --file "%_includedir/pg_config_ext.h"
2019-08-01 17:37:17 +00:00
find_lang_bins ()
{
2020-07-28 13:44:01 +00:00
lstfile=$1 ; shift
cp /dev/null "$lstfile"
for binary; do
%find_lang "$binary"-%majorversion
cat "$binary"-%majorversion.lang >>"$lstfile"
done
2019-08-01 17:37:17 +00:00
}
2020-07-28 13:44:01 +00:00
find_lang_bins %name.lst libpq5
find_lang_bins %name-devel.lst pg_config
2019-08-01 17:37:17 +00:00
2020-07-28 13:44:01 +00:00
%files -f %name.lst
2019-08-01 17:37:17 +00:00
%license COPYRIGHT
2023-10-19 08:34:29 +00:00
%_libdir/libpq.so.5*
2019-08-01 17:37:17 +00:00
%dir %_datadir/pgsql
%doc %_datadir/pgsql/pg_service.conf.sample
2020-07-28 13:44:01 +00:00
%files devel -f %name-devel.lst
2019-08-01 17:37:17 +00:00
%_bindir/pg_config
%_includedir/*
%_libdir/libpq.so
%_libdir/pkgconfig/libpq.pc
%changelog
2023-10-19 08:34:29 +00:00
* Mon May 29 2023 Dominik Rehák <drehak@redhat.com> - 13.11-1
- Update to 13.11
Resolves: #2171370
2022-03-29 14:03:20 +00:00
2023-10-19 08:34:29 +00:00
* Tue Nov 16 2021 Marek Kulik <mkulik@redhat.com> - 13.5-1
- Update to 13.5
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 13.2-4
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Wed Jun 16 2021 Mohan Boddu <mboddu@redhat.com> - 13.2-3
- Rebuilt for RHEL 9 BETA for openssl 3.0
Related: rhbz#1971065
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 13.2-2
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
2021-10-06 01:34:42 +00:00
2021-03-30 15:20:00 +00:00
* Tue Feb 16 2021 Honza Horak <hhorak@redhat.com> - 13.2-1
2023-10-19 08:34:29 +00:00
- Update to 13.2
* Mon Feb 08 2021 Patrik Novotný <panovotn@redhat.com> - 13.1-3
- Fix symbol versioning
2021-03-30 15:20:00 +00:00
2023-10-19 08:34:29 +00:00
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 13.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Mon Nov 16 2020 Patrik Novotný <panovotn@redhat.com> - 13.1-1
2021-03-30 15:20:00 +00:00
- Rebase to upstream release 13.1
2023-10-19 08:34:29 +00:00
* Mon Nov 02 2020 Patrik Novotný <panovotn@redhat.com> - 13.0-2
- Rebuild for symbol versioning fix
* Wed Oct 14 2020 Patrik Novotný <panovotn@redhat.com> - 13.0-1
- Rebase to upstream release 13.0
* Tue Aug 18 2020 Patrik Novotný <panovotn@redhat.com> - 12.4-1
2021-03-30 15:20:00 +00:00
- Rebase to upstream release 12.4
2023-10-19 08:34:29 +00:00
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 12.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2021-03-30 15:20:00 +00:00
2023-10-19 08:34:29 +00:00
* Mon May 18 2020 Patrik Novotný <panovotn@redhat.com> - 12.3-1
- Rebase to upstream release 12.3
2020-07-28 13:44:01 +00:00
2023-10-19 08:34:29 +00:00
* Mon Feb 17 2020 Patrik Novotný <panovotn@redhat.com> - 12.2-1
- Rebase to upstream release 12.2
2020-07-28 13:44:01 +00:00
2023-10-19 08:34:29 +00:00
* Tue Feb 04 2020 Patrik Novotný <panovotn@redhat.com> - 12.1-1
2020-07-28 13:44:01 +00:00
- Rebase to upstream release 12.1
2023-10-19 08:34:29 +00:00
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 11.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Mon Nov 25 2019 Patrik Novotný <panovotn@redhat.com> - 11.6-1
- Rebase to upstream version 11.6
* Wed Aug 07 2019 Petr Kubat <pkubat@redhat.com> - 11.5-1
- New upstream version 11.5
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 11.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Tue Jul 09 2019 Petr Kubat <pkubat@redhat.com> - 11.4-1
- New upstream version 11.4
* Fri May 10 2019 Pavel Raiskup <praiskup@redhat.com> - 11.3-2
- obsolete anything < %%majorversion+1
* Thu May 09 2019 Patrik Novotný <panovotn@redhat.com> - 11.3-1
- New upstream version 11.3
* Mon Feb 18 2019 Pavel Raiskup <praiskup@redhat.com> - 11.2-2
- fix dnf system-upgrade from f29 to f29+, rhbz#1677849
2020-07-28 13:44:01 +00:00
2023-10-19 08:34:29 +00:00
* Thu Feb 14 2019 Pavel Raiskup <praiskup@redhat.com> - 11.2-1
- latest upstream release, per release notes:
https://www.postgresql.org/docs/11/static/release-11-1.html
https://www.postgresql.org/docs/11/static/release-11-2.html
2020-07-28 13:44:01 +00:00
2023-10-19 08:34:29 +00:00
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 11.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2019-08-01 17:37:17 +00:00
2023-10-19 08:34:29 +00:00
* Tue Oct 16 2018 Pavel Raiskup <praiskup@redhat.com> - 11.0-1
- latest upstream release, per release notes:
https://www.postgresql.org/docs/11/static/release-11-0.html
2019-08-01 17:37:17 +00:00
2023-10-19 08:34:29 +00:00
* Tue Sep 04 2018 Pavel Raiskup <praiskup@redhat.com> - 10.5-4
- fix provides/obsoletes to final state
2019-08-01 17:37:17 +00:00
2023-10-19 08:34:29 +00:00
* Thu Aug 30 2018 Pavel Raiskup <praiskup@redhat.com> - 10.5-1
- libpq packaging for Fedora