OBS User autobuild 2011-05-27 09:30:52 +00:00 committed by Git OBS Bridge
parent 368bec0747
commit 0515484f9c
2 changed files with 28 additions and 6 deletions

View File

@ -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,6 +15,8 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: postgresql-libs
%define _name postgresql
%define libpq libpq5
@ -26,7 +28,7 @@ BuildRequires: krb5-devel libxslt-devel
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

View File

@ -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
@ -33,7 +35,7 @@ BuildRequires: krb5-devel libxslt-devel
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