SPECS: pgadmin3.spec - rel 2; add postgresql-module-pgadmin3 module
arekm
arekm at pld-linux.org
Tue Jan 31 20:41:07 CET 2006
Author: arekm Date: Tue Jan 31 19:41:07 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- rel 2; add postgresql-module-pgadmin3 module
---- Files affected:
SPECS:
pgadmin3.spec (1.15 -> 1.16)
---- Diffs:
================================================================
Index: SPECS/pgadmin3.spec
diff -u SPECS/pgadmin3.spec:1.15 SPECS/pgadmin3.spec:1.16
--- SPECS/pgadmin3.spec:1.15 Wed Dec 21 17:52:11 2005
+++ SPECS/pgadmin3.spec Tue Jan 31 20:41:02 2006
@@ -3,7 +3,7 @@
Summary(pl): Potężna platforma do administrowania i programowania bazy PostgreSQL
Name: pgadmin3
Version: 1.4.1
-Release: 1
+Release: 2
Epoch: 0
License: Artistic
Group: Applications/Databases
@@ -14,9 +14,12 @@
BuildRequires: automake
BuildRequires: openssl-devel
BuildRequires: postgresql-devel
+BuildRequires: postgresql-backend-devel
BuildRequires: wxGTK2-unicode-gl-devel >= 2.6.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define _pgmoduledir %{_libdir}/postgresql
+
%description
pgAdmin III is designed to answer the needs of all users, from writing
simple SQL queries to developing complex databases. The graphical
@@ -36,6 +39,15 @@
instalatorem i nie wymaga żadnego dodatkowego sterownika do
komunikowania z serwerem baz danych.
+%package -n postgresql-module-pgadmin3
+Summary: Full instrumentation when using PgAdmin
+Group: Applications/Databases
+Requires: postgresql >= 8.1
+
+%description -n postgresql-module-pgadmin3
+Module which implements a number of support functions which pgAdmin
+will use to provide additional functionality if installed on a server.
+
%prep
%setup -q
@@ -45,15 +57,21 @@
--with-wx-config=wx-gtk2-unicode-config
%{__make}
+sed 's#MODULE_PATHNAME#%{_pgmoduledir}/admin81#g' xtra/admin81/admin81.sql.in > xtra/admin81/admin81.sql
+%{__cc} %{rpmcflags} -fpic -I. -I%{_includedir}/postgresql/server -c -o xtra/admin81/admin81.o xtra/admin81/admin81.c -MMD
+%{__cc} -shared %{rpmldflags} -o xtra/admin81/admin81.so xtra/admin81/admin81.o
+
%install
rm -rf $RPM_BUILD_ROOT
install -d \
- $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
+ $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_pgmoduledir}}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
-cp -f ./src/include/images/pgAdmin3.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/pgadmin3.xpm
+install src/include/images/pgAdmin3.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/pgadmin3.xpm
+
+install xtra/admin81/admin81.so $RPM_BUILD_ROOT%{_pgmoduledir}
%clean
rm -rf $RPM_BUILD_ROOT
@@ -66,12 +84,20 @@
%{_desktopdir}/pgadmin3.desktop
%{_pixmapsdir}/pgadmin3.xpm
+%files -n postgresql-module-pgadmin3
+%defattr(644,root,root,755)
+%doc xtra/admin81/README* xtra/admin81/*.sql
+%attr(755,root,root) %{_pgmoduledir}/*.so
+
%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.16 2006/01/31 19:41:02 arekm
+- rel 2; add postgresql-module-pgadmin3 module
+
Revision 1.15 2005/12/21 16:52:11 zawadaa
- up to 1.4.1
- STBR
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/pgadmin3.spec?r1=1.15&r2=1.16&f=u
More information about the pld-cvs-commit
mailing list