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