This commit is contained in:
parent
368bec0747
commit
0515484f9c
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package postgresql
|
# spec file for package postgresql-libs
|
||||||
#
|
#
|
||||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@ -15,18 +15,20 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Name: postgresql-libs
|
Name: postgresql-libs
|
||||||
%define _name postgresql
|
%define _name postgresql
|
||||||
%define libpq libpq5
|
%define libpq libpq5
|
||||||
%define libecpg libecpg6
|
%define libecpg libecpg6
|
||||||
%define buildall 0
|
%define buildall 0
|
||||||
%if 0%{?suse_version} > 910
|
%if 0%{?suse_version} > 910
|
||||||
BuildRequires: krb5-devel libxslt-devel
|
BuildRequires: krb5-devel libxslt-devel
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: openldap2-devel openssl-devel
|
BuildRequires: openldap2-devel openssl-devel
|
||||||
Summary: Basic Clients and Utilities for PostgreSQL
|
Summary: Basic Clients and Utilities for PostgreSQL
|
||||||
Version: 9.0.4
|
Version: 9.0.4
|
||||||
Release: 2
|
Release: 1
|
||||||
%define pg_minor_version %(echo %version | sed -r 's/^([0-9]+\\.[0-9]+).*/\\1/')
|
%define pg_minor_version %(echo %version | sed -r 's/^([0-9]+\\.[0-9]+).*/\\1/')
|
||||||
License: BSD3c(or similar)
|
License: BSD3c(or similar)
|
||||||
Group: Productivity/Databases/Tools
|
Group: Productivity/Databases/Tools
|
||||||
@ -49,6 +51,7 @@ Patch5: postgresql-perl514.patch
|
|||||||
Url: http://www.postgresql.org/
|
Url: http://www.postgresql.org/
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Provides: postgresql = %pg_minor_version
|
Provides: postgresql = %pg_minor_version
|
||||||
|
|
||||||
%description
|
%description
|
||||||
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
|
||||||
@ -62,6 +65,7 @@ HTML documentation for PostgreSQL can be found in the postgresql-docs
|
|||||||
package.
|
package.
|
||||||
|
|
||||||
%package -n %libpq
|
%package -n %libpq
|
||||||
|
|
||||||
License: BSD3c(or similar)
|
License: BSD3c(or similar)
|
||||||
Summary: Shared Libraries Required for PostgreSQL Clients
|
Summary: Shared Libraries Required for PostgreSQL Clients
|
||||||
Group: Productivity/Databases/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.
|
program or language bindings are using.
|
||||||
|
|
||||||
%package -n %libecpg
|
%package -n %libecpg
|
||||||
|
|
||||||
License: BSD3c(or similar)
|
License: BSD3c(or similar)
|
||||||
Summary: Shared Libraries Required for PostgreSQL Clients
|
Summary: Shared Libraries Required for PostgreSQL Clients
|
||||||
Group: Productivity/Databases/Clients
|
Group: Productivity/Databases/Clients
|
||||||
@ -97,6 +102,7 @@ This package provides the runtime library of the embedded SQL C
|
|||||||
preprocessor for PostgreSQL.
|
preprocessor for PostgreSQL.
|
||||||
|
|
||||||
%package -n %_name-devel
|
%package -n %_name-devel
|
||||||
|
|
||||||
License: BSD3c(or similar)
|
License: BSD3c(or similar)
|
||||||
Summary: PostgreSQL development header files and libraries
|
Summary: PostgreSQL development header files and libraries
|
||||||
Group: Productivity/Databases/Tools
|
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 ecpglib6-%{pg_minor_version} %libecpg.lang
|
||||||
%find_lang ecpg-%{pg_minor_version} %_name-devel.lang
|
%find_lang ecpg-%{pg_minor_version} %_name-devel.lang
|
||||||
%find_lang pg_config-%{pg_minor_version} %_name-devel.lang
|
%find_lang pg_config-%{pg_minor_version} %_name-devel.lang
|
||||||
|
|
||||||
%post -n %libpq -p /sbin/ldconfig
|
%post -n %libpq -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n %libpq -p /sbin/ldconfig
|
%postun -n %libpq -p /sbin/ldconfig
|
||||||
|
|
||||||
%post -n %libecpg -p /sbin/ldconfig
|
%post -n %libecpg -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n %libecpg -p /sbin/ldconfig
|
%postun -n %libecpg -p /sbin/ldconfig
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
|
@ -15,8 +15,10 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Name: postgresql
|
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
|
BuildRequires: pam-devel python-devel tcl-devel
|
||||||
%if 0%{?suse_version} >= 1110
|
%if 0%{?suse_version} >= 1110
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
@ -28,12 +30,12 @@ BuildRequires: fdupes
|
|||||||
%define libecpg libecpg6
|
%define libecpg libecpg6
|
||||||
%define buildall 0
|
%define buildall 0
|
||||||
%if 0%{?suse_version} > 910
|
%if 0%{?suse_version} > 910
|
||||||
BuildRequires: krb5-devel libxslt-devel
|
BuildRequires: krb5-devel libxslt-devel
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: openldap2-devel openssl-devel
|
BuildRequires: openldap2-devel openssl-devel
|
||||||
Summary: Basic Clients and Utilities for PostgreSQL
|
Summary: Basic Clients and Utilities for PostgreSQL
|
||||||
Version: 9.0.4
|
Version: 9.0.4
|
||||||
Release: 2
|
Release: 1
|
||||||
%define pg_minor_version %(echo %version | sed -r 's/^([0-9]+\\.[0-9]+).*/\\1/')
|
%define pg_minor_version %(echo %version | sed -r 's/^([0-9]+\\.[0-9]+).*/\\1/')
|
||||||
License: BSD3c(or similar)
|
License: BSD3c(or similar)
|
||||||
Group: Productivity/Databases/Tools
|
Group: Productivity/Databases/Tools
|
||||||
@ -56,6 +58,7 @@ Patch5: postgresql-perl514.patch
|
|||||||
Url: http://www.postgresql.org/
|
Url: http://www.postgresql.org/
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Provides: postgresql = %pg_minor_version
|
Provides: postgresql = %pg_minor_version
|
||||||
|
|
||||||
%description
|
%description
|
||||||
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
|
||||||
@ -69,6 +72,7 @@ HTML documentation for PostgreSQL can be found in the postgresql-docs
|
|||||||
package.
|
package.
|
||||||
|
|
||||||
%package -n %libpq
|
%package -n %libpq
|
||||||
|
|
||||||
License: BSD3c(or similar)
|
License: BSD3c(or similar)
|
||||||
Summary: Shared Libraries Required for PostgreSQL Clients
|
Summary: Shared Libraries Required for PostgreSQL Clients
|
||||||
Group: Productivity/Databases/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.
|
program or language bindings are using.
|
||||||
|
|
||||||
%package -n %libecpg
|
%package -n %libecpg
|
||||||
|
|
||||||
License: BSD3c(or similar)
|
License: BSD3c(or similar)
|
||||||
Summary: Shared Libraries Required for PostgreSQL Clients
|
Summary: Shared Libraries Required for PostgreSQL Clients
|
||||||
Group: Productivity/Databases/Clients
|
Group: Productivity/Databases/Clients
|
||||||
@ -163,6 +168,7 @@ PostgreSQL server, which will in turn allow you to create and maintain
|
|||||||
PostgreSQL databases.
|
PostgreSQL databases.
|
||||||
|
|
||||||
%package -n %_name-devel
|
%package -n %_name-devel
|
||||||
|
|
||||||
License: BSD3c(or similar)
|
License: BSD3c(or similar)
|
||||||
Summary: PostgreSQL development header files and libraries
|
Summary: PostgreSQL development header files and libraries
|
||||||
Group: Productivity/Databases/Tools
|
Group: Productivity/Databases/Tools
|
||||||
@ -381,9 +387,13 @@ exit 0
|
|||||||
groupadd -g 26 -o -r postgres >/dev/null 2>/dev/null || :
|
groupadd -g 26 -o -r postgres >/dev/null 2>/dev/null || :
|
||||||
useradd -g postgres -o -r -d /var/lib/pgsql -s /bin/bash \
|
useradd -g postgres -o -r -d /var/lib/pgsql -s /bin/bash \
|
||||||
-c "PostgreSQL Server" -u 26 postgres 2>/dev/null || :
|
-c "PostgreSQL Server" -u 26 postgres 2>/dev/null || :
|
||||||
|
|
||||||
%post -n %libpq -p /sbin/ldconfig
|
%post -n %libpq -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n %libpq -p /sbin/ldconfig
|
%postun -n %libpq -p /sbin/ldconfig
|
||||||
|
|
||||||
%post -n %libecpg -p /sbin/ldconfig
|
%post -n %libecpg -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n %libecpg -p /sbin/ldconfig
|
%postun -n %libecpg -p /sbin/ldconfig
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
@ -497,6 +507,7 @@ rm -f %my_provides
|
|||||||
%_libdir/postgresql/plpython*.so
|
%_libdir/postgresql/plpython*.so
|
||||||
|
|
||||||
%if %buildall
|
%if %buildall
|
||||||
|
|
||||||
%files -n %libpq -f %libpq.lang
|
%files -n %libpq -f %libpq.lang
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%_libdir/libpq.so.*
|
%_libdir/libpq.so.*
|
||||||
@ -521,4 +532,5 @@ rm -f %my_provides
|
|||||||
%_datadir/postgresql/pg_service.conf.sample
|
%_datadir/postgresql/pg_service.conf.sample
|
||||||
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user