Accepting request 1077193 from home:favogt:pgsqlbuild

- Include -mini in Name: to avoid conflicts in the source package
  name and OBS internal dependency tracking.

OBS-URL: https://build.opensuse.org/request/show/1077193
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql15?expand=0&rev=21
This commit is contained in:
Reinhard Max 2023-04-12 06:04:22 +00:00 committed by Git OBS Bridge
parent 5044ed6c94
commit 724b885144
2 changed files with 14 additions and 7 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Apr 4 10:57:41 UTC 2023 - Fabian Vogt <fvogt@suse.com>
- Include -mini in Name: to avoid conflicts in the source package
name and OBS internal dependency tracking.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Feb 9 11:38:35 UTC 2023 - Reinhard Max <max@suse.com> Thu Feb 9 11:38:35 UTC 2023 - Reinhard Max <max@suse.com>

View File

@ -41,13 +41,14 @@
%define requires_file() %( readlink -f '%*' | LC_ALL=C xargs -r rpm -q --qf 'Requires: %%{name} >= %%{epoch}:%%{version}\\n' -f | sed -e 's/ (none):/ /' -e 's/ 0:/ /' | grep -v "is not") %define requires_file() %( readlink -f '%*' | LC_ALL=C xargs -r rpm -q --qf 'Requires: %%{name} >= %%{epoch}:%%{version}\\n' -f | sed -e 's/ (none):/ /' -e 's/ 0:/ /' | grep -v "is not")
Name: %pgname
%if "@BUILD_FLAVOR@" == "mini" %if "@BUILD_FLAVOR@" == "mini"
%define devel devel-mini %define devel devel-mini
%define mini 1 %define mini 1
Name: %pgname-mini
%else %else
%define devel devel %define devel devel
%define mini 0 %define mini 0
Name: %pgname
%endif %endif
# Use Python 2 for for PostgreSQL 10 on SLE12. # Use Python 2 for for PostgreSQL 10 on SLE12.
@ -239,7 +240,7 @@ and functions.
This package provides the runtime library of the embedded SQL C This package provides the runtime library of the embedded SQL C
preprocessor for PostgreSQL. preprocessor for PostgreSQL.
%package %devel %package -n %pgname-%devel
Summary: PostgreSQL client development header files and libraries Summary: PostgreSQL client development header files and libraries
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Provides: postgresql-devel = %version-%release Provides: postgresql-devel = %version-%release
@ -302,7 +303,7 @@ C extensions that link into the PostgreSQL server. For building client
applications, see the postgresql%pgmajor-devel package. applications, see the postgresql%pgmajor-devel package.
%endif %endif
%description %devel %description -n %pgname-%devel
PostgreSQL is an advanced object-relational database management system PostgreSQL is an advanced object-relational database management system
that supports an extended subset of the SQL standard, including that supports an extended subset of the SQL standard, including
transactions, foreign keys, subqueries, triggers, and user-defined transactions, foreign keys, subqueries, triggers, and user-defined
@ -790,14 +791,14 @@ awk -v P=%buildroot '/^(%lang|[^%])/{print P $NF}' libpq.files libecpg.files | x
%fdupes %buildroot %fdupes %buildroot
%post %devel %post -n %pgname-%devel
/sbin/ldconfig /sbin/ldconfig
%if %{with server_devel} %if %{with server_devel}
%post server-devel %post server-devel
%endif %endif
/usr/share/postgresql/install-alternatives %pgmajor /usr/share/postgresql/install-alternatives %pgmajor
%postun %devel %postun -n %pgname-%devel
/sbin/ldconfig /sbin/ldconfig
%if %{with server_devel} %if %{with server_devel}
%postun server-devel %postun server-devel
@ -963,10 +964,10 @@ fi
%endif %endif
%if %buildlibs && %mini %if %buildlibs && %mini
%files %devel -f devel.files -f libpq.files -f libecpg.files %files -n %pgname-%devel -f devel.files -f libpq.files -f libecpg.files
%else %else
%files %devel -f devel.files %files -n %pgname-%devel -f devel.files
%endif %endif
%defattr(-,root,root) %defattr(-,root,root)