2 Summary: Powerful administration and development platform for the PostgreSQL
3 Summary(pl.UTF-8): Potężna platforma do administrowania i programowania bazy PostgreSQL
9 Group: Applications/Databases
10 Source0: ftp://ftp6.pl.postgresql.org/pub/postgresql/pgadmin3/release/v%{version}-%{snap}/src/%{name}-%{version}-%{snap}.tar.gz
11 # Source0-md5: 2029ee47797f87d4fa086eb6e4ae1e9f
12 Source1: %{name}.desktop
13 Patch0: %{name}-m4.patch
14 URL: http://www.pgadmin.org/
15 BuildRequires: autoconf
16 BuildRequires: automake
17 BuildRequires: libxml2-devel >= 2.6.18
18 BuildRequires: libxslt-devel >= 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.
36 %description -l pl.UTF-8
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.UTF-8): 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.UTF-8
57 Ten moduł implementuje wiele funkcji pomocniczych, które używa PgAdmin
58 do zapewnienia dodatkowej funkcjonalności.
61 %setup -q -n %{name}-%{version}-%{snap}
70 --with-wx-config="%{_bindir}/wx-gtk2-unicode-config" \
71 --with-wx-version="2.8"
74 sed 's#MODULE_PATHNAME#%{_pgmoduledir}/admin81#g' xtra/admin81/admin81.sql.in > xtra/admin81/admin81.sql
75 %{__cc} %{rpmcflags} -fpic -I. -I%{_includedir}/postgresql/server -c -o xtra/admin81/admin81.o xtra/admin81/admin81.c -MMD
76 %{__cc} -shared %{rpmldflags} -o xtra/admin81/admin81.so xtra/admin81/admin81.o
79 rm -rf $RPM_BUILD_ROOT
81 $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_pgmoduledir}}
84 DESTDIR=$RPM_BUILD_ROOT
85 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
86 install pkg/debian/pgadmin3.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/pgadmin3.xpm
88 install xtra/admin81/admin81.so $RPM_BUILD_ROOT%{_pgmoduledir}
91 rm -rf $RPM_BUILD_ROOT
94 %defattr(644,root,root,755)
96 %attr(755,root,root) %{_bindir}/*
98 %{_desktopdir}/pgadmin3.desktop
99 %{_pixmapsdir}/pgadmin3.xpm
101 %files -n postgresql-module-pgadmin3
102 %defattr(644,root,root,755)
103 %doc xtra/admin81/README* xtra/admin81/*.sql
104 %attr(755,root,root) %{_pgmoduledir}/*.so