From 0515484f9c074cbb6f6a07517851a89d82faeed92b2c54aba6cb265db957fe9e Mon Sep 17 00:00:00 2001 From: OBS User autobuild Date: Fri, 27 May 2011 09:30:52 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/postgresql?expand=0&rev=34 --- postgresql-libs.spec | 16 +++++++++++++--- postgresql.spec | 18 +++++++++++++++--- 2 files changed, 28 insertions(+), 6 deletions(-) diff --git a/postgresql-libs.spec b/postgresql-libs.spec index 34301ea..88a0778 100644 --- a/postgresql-libs.spec +++ b/postgresql-libs.spec @@ -1,5 +1,5 @@ # -# spec file for package postgresql +# spec file for package postgresql-libs # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -15,18 +15,20 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + + Name: postgresql-libs %define _name postgresql %define libpq libpq5 %define libecpg libecpg6 %define buildall 0 %if 0%{?suse_version} > 910 -BuildRequires: krb5-devel libxslt-devel +BuildRequires: krb5-devel libxslt-devel %endif BuildRequires: openldap2-devel openssl-devel Summary: Basic Clients and Utilities for PostgreSQL Version: 9.0.4 -Release: 2 +Release: 1 %define pg_minor_version %(echo %version | sed -r 's/^([0-9]+\\.[0-9]+).*/\\1/') License: BSD3c(or similar) Group: Productivity/Databases/Tools @@ -49,6 +51,7 @@ Patch5: postgresql-perl514.patch Url: http://www.postgresql.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-build Provides: postgresql = %pg_minor_version + %description PostgreSQL is an advanced object-relational database management system that supports an extended subset of the SQL standard, including @@ -62,6 +65,7 @@ HTML documentation for PostgreSQL can be found in the postgresql-docs package. %package -n %libpq + License: BSD3c(or similar) Summary: Shared Libraries Required for PostgreSQL Clients Group: Productivity/Databases/Clients @@ -82,6 +86,7 @@ This package provides the client library that most PostgreSQL client program or language bindings are using. %package -n %libecpg + License: BSD3c(or similar) Summary: Shared Libraries Required for PostgreSQL Clients Group: Productivity/Databases/Clients @@ -97,6 +102,7 @@ This package provides the runtime library of the embedded SQL C preprocessor for PostgreSQL. %package -n %_name-devel + License: BSD3c(or similar) Summary: PostgreSQL development header files and libraries Group: Productivity/Databases/Tools @@ -179,9 +185,13 @@ rm -f $(ls %buildroot/%_libdir/*.a | grep -F -v libpgport.a) %find_lang ecpglib6-%{pg_minor_version} %libecpg.lang %find_lang ecpg-%{pg_minor_version} %_name-devel.lang %find_lang pg_config-%{pg_minor_version} %_name-devel.lang + %post -n %libpq -p /sbin/ldconfig + %postun -n %libpq -p /sbin/ldconfig + %post -n %libecpg -p /sbin/ldconfig + %postun -n %libecpg -p /sbin/ldconfig %clean diff --git a/postgresql.spec b/postgresql.spec index a135280..3ad66da 100644 --- a/postgresql.spec +++ b/postgresql.spec @@ -15,8 +15,10 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + + Name: postgresql -BuildRequires: gettext-devel zlib-devel ncurses-devel readline-devel uuid-devel +BuildRequires: gettext-devel ncurses-devel readline-devel uuid-devel zlib-devel BuildRequires: pam-devel python-devel tcl-devel %if 0%{?suse_version} >= 1110 BuildRequires: fdupes @@ -28,12 +30,12 @@ BuildRequires: fdupes %define libecpg libecpg6 %define buildall 0 %if 0%{?suse_version} > 910 -BuildRequires: krb5-devel libxslt-devel +BuildRequires: krb5-devel libxslt-devel %endif BuildRequires: openldap2-devel openssl-devel Summary: Basic Clients and Utilities for PostgreSQL Version: 9.0.4 -Release: 2 +Release: 1 %define pg_minor_version %(echo %version | sed -r 's/^([0-9]+\\.[0-9]+).*/\\1/') License: BSD3c(or similar) Group: Productivity/Databases/Tools @@ -56,6 +58,7 @@ Patch5: postgresql-perl514.patch Url: http://www.postgresql.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-build Provides: postgresql = %pg_minor_version + %description PostgreSQL is an advanced object-relational database management system that supports an extended subset of the SQL standard, including @@ -69,6 +72,7 @@ HTML documentation for PostgreSQL can be found in the postgresql-docs package. %package -n %libpq + License: BSD3c(or similar) Summary: Shared Libraries Required for PostgreSQL Clients Group: Productivity/Databases/Clients @@ -89,6 +93,7 @@ This package provides the client library that most PostgreSQL client program or language bindings are using. %package -n %libecpg + License: BSD3c(or similar) Summary: Shared Libraries Required for PostgreSQL Clients Group: Productivity/Databases/Clients @@ -163,6 +168,7 @@ PostgreSQL server, which will in turn allow you to create and maintain PostgreSQL databases. %package -n %_name-devel + License: BSD3c(or similar) Summary: PostgreSQL development header files and libraries Group: Productivity/Databases/Tools @@ -381,9 +387,13 @@ exit 0 groupadd -g 26 -o -r postgres >/dev/null 2>/dev/null || : useradd -g postgres -o -r -d /var/lib/pgsql -s /bin/bash \ -c "PostgreSQL Server" -u 26 postgres 2>/dev/null || : + %post -n %libpq -p /sbin/ldconfig + %postun -n %libpq -p /sbin/ldconfig + %post -n %libecpg -p /sbin/ldconfig + %postun -n %libecpg -p /sbin/ldconfig %clean @@ -497,6 +507,7 @@ rm -f %my_provides %_libdir/postgresql/plpython*.so %if %buildall + %files -n %libpq -f %libpq.lang %defattr(-,root,root) %_libdir/libpq.so.* @@ -521,4 +532,5 @@ rm -f %my_provides %_datadir/postgresql/pg_service.conf.sample %endif + %changelog