]> git.pld-linux.org Git - packages/pgadmin3.git/blob - pgadmin3.spec
- rel 2; add postgresql-module-pgadmin3 module
[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 Group:          Applications/Databases
44 Requires:       postgresql >= 8.1
45
46 %description -n postgresql-module-pgadmin3
47 Module which implements a number of support functions which pgAdmin
48 will use to provide additional functionality if installed on a server.
49
50 %prep
51 %setup -q
52
53 %build
54 cp /usr/share/automake/config.sub config
55 %configure \
56         --with-wx-config=wx-gtk2-unicode-config
57 %{__make}
58
59 sed 's#MODULE_PATHNAME#%{_pgmoduledir}/admin81#g' xtra/admin81/admin81.sql.in > xtra/admin81/admin81.sql
60 %{__cc} %{rpmcflags} -fpic -I. -I%{_includedir}/postgresql/server -c -o xtra/admin81/admin81.o xtra/admin81/admin81.c -MMD
61 %{__cc} -shared %{rpmldflags} -o xtra/admin81/admin81.so xtra/admin81/admin81.o
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65 install -d \
66         $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_pgmoduledir}}
67
68 %{__make} install \
69         DESTDIR=$RPM_BUILD_ROOT
70 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
71 install src/include/images/pgAdmin3.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/pgadmin3.xpm
72
73 install xtra/admin81/admin81.so $RPM_BUILD_ROOT%{_pgmoduledir}
74
75 %clean
76 rm -rf $RPM_BUILD_ROOT
77
78 %files
79 %defattr(644,root,root,755)
80 %doc LICENCE.txt README.txt
81 %attr(755,root,root) %{_bindir}/*
82 %{_datadir}/%{name}
83 %{_desktopdir}/pgadmin3.desktop
84 %{_pixmapsdir}/pgadmin3.xpm
85
86 %files -n postgresql-module-pgadmin3
87 %defattr(644,root,root,755)
88 %doc xtra/admin81/README* xtra/admin81/*.sql
89 %attr(755,root,root) %{_pgmoduledir}/*.so
This page took 0.053142 seconds and 4 git commands to generate.