SPECS (POSTGRESQL_8_3): postgresql.spec - add contrib subpackage
radek
radek at pld-linux.org
Sat Sep 8 23:21:35 CEST 2007
Author: radek Date: Sat Sep 8 21:21:35 2007 GMT
Module: SPECS Tag: POSTGRESQL_8_3
---- Log message:
- add contrib subpackage
---- Files affected:
SPECS:
postgresql.spec (1.390.2.1 -> 1.390.2.2)
---- Diffs:
================================================================
Index: SPECS/postgresql.spec
diff -u SPECS/postgresql.spec:1.390.2.1 SPECS/postgresql.spec:1.390.2.2
--- SPECS/postgresql.spec:1.390.2.1 Sat Sep 8 22:19:00 2007
+++ SPECS/postgresql.spec Sat Sep 8 23:21:30 2007
@@ -80,6 +80,8 @@
%define _ulibdir /usr/lib
+%define contrib_modules adminpack btree_gist chkpass dblink hstore intagg intarray isn lo ltree oid2name pageinspect pgbench pg_buffercache pgcrypto pg_freespacemap pgrowlocks pgstattuple pg_trgm sslinfo tablefunc tsearch2 vacuumlo xml2
+
%description
PostgreSQL Data Base Management System (formerly known as Postgres,
then as Postgres95).
@@ -736,7 +738,6 @@
Ten moduĹ dostarcza funkcje i klasy do rozpoznawania podobnych tekstĂłw
w oparciu o dopasowywanie trigramowe (trigram matching).
-
%package module-xml2
Summary: XML-handling functions for PostgreSQL
Summary(pl.UTF-8): Funkcje do obsĹugi XML-a dla PostgreSQL-a
@@ -753,6 +754,15 @@
funkcjonalnoĹÄ XSLT. Jest takĹźe nowa funkcja tabelowa pozwalajÄ
ca na
bezpoĹrednie zwracanie wielu wynikĂłw XML.
+%package contrib
+Summary: Misc PostgreSQL contrib modules
+#Summary(pl.UTF-8):
+Group: Applications/Databases
+Requires: %{name} = %{version}-%{release}
+
+%description contrib
+Misc PostgreSQL contrib modules.
+
%prep
%setup -q -n %{name}-snapshot
%patch0 -p1
@@ -792,13 +802,11 @@
--without-docdir
%{__make}
-%{__make} -C contrib/dblink
-%{__make} -C contrib/lo
-%{__make} -C contrib/pgcrypto
-%{__make} -C contrib/tablefunc
-%{__make} -C contrib/tsearch2
-%{__make} -C contrib/pg_trgm
-%{__make} -C contrib/xml2
+
+for mod in %{contrib_modules}; do \
+ %{__make} -C contrib/$mod
+done
+
%{__make} -C src/tutorial \
NO_PGXS=1
@@ -824,26 +832,10 @@
DESTDIR=$RPM_BUILD_ROOT
%endif
-%{__make} -C contrib/dblink install \
- DESTDIR=$RPM_BUILD_ROOT
-
-%{__make} -C contrib/lo install \
- DESTDIR=$RPM_BUILD_ROOT
-
-%{__make} -C contrib/pgcrypto install \
- DESTDIR=$RPM_BUILD_ROOT
-
-%{__make} -C contrib/tablefunc install \
- DESTDIR=$RPM_BUILD_ROOT
-
-%{__make} -C contrib/tsearch2 install \
- DESTDIR=$RPM_BUILD_ROOT
-
-%{__make} -C contrib/pg_trgm install \
- DESTDIR=$RPM_BUILD_ROOT
-
-%{__make} -C contrib/xml2 install \
- DESTDIR=$RPM_BUILD_ROOT
+for mod in %{contrib_modules}; do \
+ %{__make} -C contrib/$mod install \
+ DESTDIR=$RPM_BUILD_ROOT
+done
touch $RPM_BUILD_ROOT/var/log/pgsql
@@ -1139,12 +1131,63 @@
%attr(755,root,root) %{_pgmoduledir}/pgxml.so
%{_pgsqldir}/*pgxml.sql
+%files contrib
+%defattr(644,root,root,755)
+%{_bindir}/oid2name
+%{_bindir}/pgbench
+%{_bindir}/vacuumlo
+%attr(755,root,root) %{_pgmoduledir}/_int.so
+%attr(755,root,root) %{_pgmoduledir}/adminpack.so
+%attr(755,root,root) %{_pgmoduledir}/btree_gist.so
+%attr(755,root,root) %{_pgmoduledir}/chkpass.so
+%attr(755,root,root) %{_pgmoduledir}/hstore.so
+%attr(755,root,root) %{_pgmoduledir}/int_aggregate.so
+%attr(755,root,root) %{_pgmoduledir}/isn.so
+%attr(755,root,root) %{_pgmoduledir}/ltree.so
+%attr(755,root,root) %{_pgmoduledir}/pageinspect.so
+%attr(755,root,root) %{_pgmoduledir}/pg_buffercache.so
+%attr(755,root,root) %{_pgmoduledir}/pg_freespacemap.so
+%attr(755,root,root) %{_pgmoduledir}/pgrowlocks.so
+%attr(755,root,root) %{_pgmoduledir}/pgstattuple.so
+%attr(755,root,root) %{_pgmoduledir}/sslinfo.so
+%{_pgsqldir}/_int.sql
+%{_pgsqldir}/adminpack.sql
+%{_pgsqldir}/btree_gist.sql
+%{_pgsqldir}/chkpass.sql
+%{_pgsqldir}/hstore.sql
+%{_pgsqldir}/int_aggregate.sql
+%{_pgsqldir}/isn.sql
+%{_pgsqldir}/ltree.sql
+%{_pgsqldir}/pageinspect.sql
+%{_pgsqldir}/pg_buffercache.sql
+%{_pgsqldir}/pg_freespacemap.sql
+%{_pgsqldir}/pgrowlocks.sql
+%{_pgsqldir}/pgstattuple.sql
+%{_pgsqldir}/sslinfo.sql
+%{_pgsqldir}/uninstall__int.sql
+%{_pgsqldir}/uninstall_adminpack.sql
+%{_pgsqldir}/uninstall_btree_gist.sql
+%{_pgsqldir}/uninstall_chkpass.sql
+%{_pgsqldir}/uninstall_hstore.sql
+%{_pgsqldir}/uninstall_int_aggregate.sql
+%{_pgsqldir}/uninstall_isn.sql
+%{_pgsqldir}/uninstall_ltree.sql
+%{_pgsqldir}/uninstall_pageinspect.sql
+%{_pgsqldir}/uninstall_pg_buffercache.sql
+%{_pgsqldir}/uninstall_pg_freespacemap.sql
+%{_pgsqldir}/uninstall_pgrowlocks.sql
+%{_pgsqldir}/uninstall_pgstattuple.sql
+%{_pgsqldir}/uninstall_sslinfo.sql
+
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback at pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.390.2.2 2007/09/08 21:21:30 radek
+- add contrib subpackage
+
Revision 1.390.2.1 2007/09/08 20:19:00 radek
- version 8.3.0 snap 20070908
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/postgresql.spec?r1=1.390.2.1&r2=1.390.2.2&f=u
More information about the pld-cvs-commit
mailing list