]> git.pld-linux.org Git - packages/pgadmin3.git/commitdiff
- rel 2; add postgresql-module-pgadmin3 module auto/ac/pgadmin3-1_4_1-2
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 31 Jan 2006 19:41:02 +0000 (19:41 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    pgadmin3.spec -> 1.16

pgadmin3.spec

index 254b5d4cf3306359fff24d5d33c0a1ed455055f4..96cf8d52caae503920c14471ae32c524118fc407 100644 (file)
@@ -2,7 +2,7 @@ Summary:        Powerful administration and development platform for the PostgreSQL
 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
@@ -13,9 +13,12 @@ URL:         http://www.pgadmin.org/
 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
@@ -35,6 +38,15 @@ stronie serwera i wiele wi
 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
 
@@ -44,15 +56,21 @@ cp /usr/share/automake/config.sub config
        --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
@@ -64,3 +82,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/%{name}
 %{_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
This page took 0.077248 seconds and 4 git commands to generate.