1 Summary: Powerful administration and development platform for the PostgreSQL
2 Summary(pl): Potê¿na platforma do administrowania i programowania bazy PostgreSQL
8 Group: Applications/Databases
9 Source0: ftp://ftp6.pl.postgresql.org/pub/postgresql/pgadmin3/release/v%{version}/src/%{name}-%{version}.tar.gz
10 # Source0-md5: 0cdfffceb09e40787ead39541bcd5683
11 Source1: %{name}.desktop
12 Patch0: %{name}-m4.patch
13 Patch1: %{name}-wx.patch
14 URL: http://www.pgadmin.org/
15 BuildRequires: autoconf
16 BuildRequires: automake
17 BuildRequires: libxml2 >= 2.6.18
18 BuildRequires: libxslt >= 1.1
19 BuildRequires: openssl-devel
20 BuildRequires: postgresql-devel >= 7.4
21 BuildRequires: postgresql-backend-devel >= 7.4
22 BuildRequires: wxGTK2-unicode-gl-devel >= 2.8.0
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 %define _pgmoduledir %{_libdir}/postgresql
28 pgAdmin III is designed to answer the needs of all users, from writing
29 simple SQL queries to developing complex databases. The graphical
30 interface supports all PostgreSQL features and makes administration
31 easy. The application also includes a query builder, an SQL editor, a
32 server-side code editor and much more. pgAdmin III is released with an
33 installer and does not require any additional driver to communicate
34 with the database server.
37 pgAdmin III zosta³ zaprojektowany jako odpowied¼ na potrzeby
38 wszystkich u¿ytkowników, od pisania prostych zapytañ SQL do tworzenia
39 skomplikowanych baz danych. Graficzny interfejs obs³uguje wszystkie
40 mo¿liwo¶ci PostgreSQL-a i u³atwia administrowanie. Aplikacja zawiera
41 tak¿e narzêdzie do budowania zapytañ, edytor SQL, edytor kodu po
42 stronie serwera i wiele wiêcej. pgAdmin III zosta³ wydany z
43 instalatorem i nie wymaga ¿adnego dodatkowego sterownika do
44 komunikowania z serwerem baz danych.
46 %package -n postgresql-module-pgadmin3
47 Summary: Full instrumentation when using PgAdmin
48 Summary(pl): Pe³na obs³uga dla funkcjonalno¶ci PgAdmina
49 Group: Applications/Databases
50 Requires: postgresql >= 8.1
52 %description -n postgresql-module-pgadmin3
53 Module which implements a number of support functions which PgAdmin
54 will use to provide additional functionality if installed on a server.
56 %description -n postgresql-module-pgadmin3 -l pl
57 Ten modu³ implementuje wiele funkcji pomocniczych, które u¿ywa PgAdmin
58 do zapewnienia dodatkowej funkcjonalno¶ci.
71 --with-wx-config="%{_bindir}/wx-gtk2-unicode-config" \
72 --with-wx-version="2.8"
75 sed 's#MODULE_PATHNAME#%{_pgmoduledir}/admin81#g' xtra/admin81/admin81.sql.in > xtra/admin81/admin81.sql
76 %{__cc} %{rpmcflags} -fpic -I. -I%{_includedir}/postgresql/server -c -o xtra/admin81/admin81.o xtra/admin81/admin81.c -MMD
77 %{__cc} -shared %{rpmldflags} -o xtra/admin81/admin81.so xtra/admin81/admin81.o
80 rm -rf $RPM_BUILD_ROOT
82 $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_pgmoduledir}}
85 DESTDIR=$RPM_BUILD_ROOT
86 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
87 install src/include/images/pgAdmin3.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/pgadmin3.xpm
89 install xtra/admin81/admin81.so $RPM_BUILD_ROOT%{_pgmoduledir}
92 rm -rf $RPM_BUILD_ROOT
95 %defattr(644,root,root,755)
97 %attr(755,root,root) %{_bindir}/*
99 %{_desktopdir}/pgadmin3.desktop
100 %{_pixmapsdir}/pgadmin3.xpm
102 %files -n postgresql-module-pgadmin3
103 %defattr(644,root,root,755)
104 %doc xtra/admin81/README* xtra/admin81/*.sql
105 %attr(755,root,root) %{_pgmoduledir}/*.so