]> git.pld-linux.org Git - packages/pgadmin3.git/blob - pgadmin3.spec
- Fixed BR
[packages/pgadmin3.git] / pgadmin3.spec
1 %define snap    beta5
2 Summary:        Powerful administration and development platform for the PostgreSQL
3 Summary(pl.UTF-8):      Potężna platforma do administrowania i programowania bazy PostgreSQL
4 Name:           pgadmin3
5 Version:        1.8.0
6 Release:        0.%{snap}.1
7 Epoch:          0
8 License:        Artistic
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)
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.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.
45
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
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.UTF-8
57 Ten moduł implementuje wiele funkcji pomocniczych, które używa PgAdmin
58 do zapewnienia dodatkowej funkcjonalności.
59
60 %prep
61 %setup -q -n %{name}-%{version}-%{snap}
62 %patch0 -p1
63
64 %build
65 rm -f config/*
66 %{__aclocal}
67 %{__autoconf}
68 %{__automake}
69 %configure \
70         --with-wx-config="%{_bindir}/wx-gtk2-unicode-config" \
71         --with-wx-version="2.8"
72 %{__make}
73
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
77
78 %install
79 rm -rf $RPM_BUILD_ROOT
80 install -d \
81         $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_pgmoduledir}}
82
83 %{__make} install \
84         DESTDIR=$RPM_BUILD_ROOT
85 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
86 install pkg/debian/pgadmin3.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/pgadmin3.xpm
87
88 install xtra/admin81/admin81.so $RPM_BUILD_ROOT%{_pgmoduledir}
89
90 %clean
91 rm -rf $RPM_BUILD_ROOT
92
93 %files
94 %defattr(644,root,root,755)
95 %doc LICENSE README
96 %attr(755,root,root) %{_bindir}/*
97 %{_datadir}/%{name}
98 %{_desktopdir}/pgadmin3.desktop
99 %{_pixmapsdir}/pgadmin3.xpm
100
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
This page took 0.031501 seconds and 4 git commands to generate.