]> git.pld-linux.org Git - packages/pgadmin3.git/blob - pgadmin3.spec
- pl
[packages/pgadmin3.git] / pgadmin3.spec
1 Summary:        Powerful administration and development platform for the PostgreSQL
2 Summary(pl):    Potê¿na platforma do administrowania i programowania bazy PostgreSQL
3 Name:           pgadmin3
4 Version:        1.4.1
5 Release:        2
6 Epoch:          0
7 License:        Artistic
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:  bf78696c72acd782d63feb2bd5ce6f48
11 Source1:        %{name}.desktop
12 URL:            http://www.pgadmin.org/
13 BuildRequires:  automake
14 BuildRequires:  openssl-devel
15 BuildRequires:  postgresql-devel
16 BuildRequires:  postgresql-backend-devel
17 BuildRequires:  wxGTK2-unicode-gl-devel >= 2.6.0
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         _pgmoduledir            %{_libdir}/postgresql
21
22 %description
23 pgAdmin III is designed to answer the needs of all users, from writing
24 simple SQL queries to developing complex databases. The graphical
25 interface supports all PostgreSQL features and makes administration
26 easy. The application also includes a query builder, an SQL editor, a
27 server-side code editor and much more. pgAdmin III is released with an
28 installer and does not require any additional driver to communicate
29 with the database server.
30
31 %description -l pl
32 pgAdmin III zosta³ zaprojektowany jako odpowied¼ na potrzeby
33 wszystkich u¿ytkowników, od pisania prostych zapytañ SQL do tworzenia
34 skomplikowanych baz danych. Graficzny interfejs obs³uguje wszystkie
35 mo¿liwo¶ci PostgreSQL-a i u³atwia administrowanie. Aplikacja zawiera
36 tak¿e narzêdzie do budowania zapytañ, edytor SQL, edytor kodu po
37 stronie serwera i wiele wiêcej. pgAdmin III zosta³ wydany z
38 instalatorem i nie wymaga ¿adnego dodatkowego sterownika do
39 komunikowania z serwerem baz danych.
40
41 %package -n postgresql-module-pgadmin3
42 Summary:        Full instrumentation when using PgAdmin
43 Summary(pl):    Pe³na obs³uga dla funkcjonalno¶ci PgAdmina
44 Group:          Applications/Databases
45 Requires:       postgresql >= 8.1
46
47 %description -n postgresql-module-pgadmin3
48 Module which implements a number of support functions which PgAdmin
49 will use to provide additional functionality if installed on a server.
50
51 %description -n postgresql-module-pgadmin3 -l pl
52 Ten modu³ implementuje wiele funkcji pomocniczych, które u¿ywa PgAdmin
53 do zapewnienia dodatkowej funkcjonalno¶ci.
54
55 %prep
56 %setup -q
57
58 %build
59 cp /usr/share/automake/config.sub config
60 %configure \
61         --with-wx-config=wx-gtk2-unicode-config
62 %{__make}
63
64 sed 's#MODULE_PATHNAME#%{_pgmoduledir}/admin81#g' xtra/admin81/admin81.sql.in > xtra/admin81/admin81.sql
65 %{__cc} %{rpmcflags} -fpic -I. -I%{_includedir}/postgresql/server -c -o xtra/admin81/admin81.o xtra/admin81/admin81.c -MMD
66 %{__cc} -shared %{rpmldflags} -o xtra/admin81/admin81.so xtra/admin81/admin81.o
67
68 %install
69 rm -rf $RPM_BUILD_ROOT
70 install -d \
71         $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_pgmoduledir}}
72
73 %{__make} install \
74         DESTDIR=$RPM_BUILD_ROOT
75 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
76 install src/include/images/pgAdmin3.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/pgadmin3.xpm
77
78 install xtra/admin81/admin81.so $RPM_BUILD_ROOT%{_pgmoduledir}
79
80 %clean
81 rm -rf $RPM_BUILD_ROOT
82
83 %files
84 %defattr(644,root,root,755)
85 %doc LICENCE.txt README.txt
86 %attr(755,root,root) %{_bindir}/*
87 %{_datadir}/%{name}
88 %{_desktopdir}/pgadmin3.desktop
89 %{_pixmapsdir}/pgadmin3.xpm
90
91 %files -n postgresql-module-pgadmin3
92 %defattr(644,root,root,755)
93 %doc xtra/admin81/README* xtra/admin81/*.sql
94 %attr(755,root,root) %{_pgmoduledir}/*.so
This page took 0.036517 seconds and 4 git commands to generate.