]> git.pld-linux.org Git - packages/pgadmin3.git/blob - pgadmin3.spec
- rel 0.3
[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.6.1
5 Release:        0.3
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:  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)
24
25 %define         _pgmoduledir            %{_libdir}/postgresql
26
27 %description
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.
35
36 %description -l pl
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.
45
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
51
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.
55
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.
59
60 %prep
61 %setup -q
62 %patch0 -p1
63 %patch1 -p1
64
65 %build
66 rm -f config/*
67 %{__aclocal}
68 %{__autoconf}
69 %{__automake}
70 %configure \
71         --with-wx-config="%{_bindir}/wx-gtk2-unicode-config" \
72         --with-wx-version="2.8"
73 %{__make}
74
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
78
79 %install
80 rm -rf $RPM_BUILD_ROOT
81 install -d \
82         $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_pgmoduledir}}
83
84 %{__make} install \
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
88
89 install xtra/admin81/admin81.so $RPM_BUILD_ROOT%{_pgmoduledir}
90
91 %clean
92 rm -rf $RPM_BUILD_ROOT
93
94 %files
95 %defattr(644,root,root,755)
96 %doc LICENSE README
97 %attr(755,root,root) %{_bindir}/*
98 %{_datadir}/%{name}
99 %{_desktopdir}/pgadmin3.desktop
100 %{_pixmapsdir}/pgadmin3.xpm
101
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
This page took 0.032856 seconds and 4 git commands to generate.