Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37583801
en ru br
ALT Linux repos
S:1.23.0b-alt3
5.0: 1.9.0.rev7510-alt1
4.1: 1.9.0.rev7174-alt1
4.0: 1.8.0.rev6516-alt1
3.0: 1.2.1-alt2

Group :: Databases
RPM: pgadmin3

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define __find /bin/find
%define __xargs /bin/xargs

%define snapshot rev6516
Name: pgadmin3
Version: 1.8.0.%snapshot
Release: alt1

Summary: pgAdmin III is a powerful administration and development platform for the PostgreSQL database.
License: Artistic
Group: Databases

Url: http://www.pgadmin.org/%name

Source: %name-%snapshot.tar.bz2

Patch: %name-alt-keywords.c-build-fix.patch
Patch1: %name-alt-misc.cpp-build-fix.patch

Requires: %name-docs-en_US

BuildPreReq: libstdc++4.1-devel-precompiled gcc4.1-c++

# Automatically added by buildreq on Mon Sep 04 2006

BuildRequires: fontconfig gcc-c++ libpango-devel libssl-devel libxslt-devel postgresql-devel subversion wxGTK-contrib-ogl-devel wxGTK-contrib-stc-devel wxGTK-devel

BuildRequires: findutils
%description
pgAdmin III is a powerful administration and development platform for the
PostgreSQL database, free for any use. The application is running under
GNU/Linux, FreeBSD and Windows 2000/XP.
pgAdmin III is designed to answer the needs of all users, from writing simple
SQL queries to developing complex databases. The graphical interface supports
all PostgreSQL features and makes administration easy. The application also
includes a query builder, an SQL editor, a server-side code editor and much more.
pgAdmin III is released with an installer and does not require any additional
driver to communicate with the database server.

%package pgagent
Summary: job scheduling agent for PostgreSQL
Group: Databases

%description pgagent
pgAgent is a job scheduling agent for PostgreSQL, capable of running multi-step
batch/shell and SQL tasks on complex schedules.

%package docs-en_US
Summary: US english docs for %name.
Group: Databases

%description docs-en_US
US english docs for %name.

%package docs-all
Summary: All docs for %name.
Group:          Databases

%description docs-all
All docs for %name.

%prep
%setup -q -n %name
%patch0 -p1
%patch1 -p1
%__subst "s,SUBDIRS = src pkg,SUBDIRS = src," Makefile.am
%__subst "s,suse,," pkg/Makefile.am
/bin/sh bootstrap

%build
%configure --enable-precomp
%make_build

%install
%makeinstall

%__rm -rf %buildroot/%_datadir/%name/docs/*
# make symlink for en_US docs.
%__ln_s %_defaultdocdir/%name-docs-en_US-%version/en_US %buildroot/%_datadir/%name/docs/
#make symlink for all docs.
%__ln_s %_defaultdocdir/%name-docs-all-%version/de_DE %buildroot/%_datadir/%name/docs/
%__ln_s %_defaultdocdir/%name-docs-all-%version/es_ES %buildroot/%_datadir/%name/docs/
%__ln_s %_defaultdocdir/%name-docs-all-%version/fr_FR %buildroot/%_datadir/%name/docs/
%__ln_s %_defaultdocdir/%name-docs-all-%version/sl_SI %buildroot/%_datadir/%name/docs/

%__mkdir_p %buildroot%_datadir/applications
%__cat >| %buildroot%_datadir/applications/%name.desktop << 'EOF'
[Desktop Entry]
Encoding=UTF-8
Name=pgadmin3
Name[en_CA]=pgadmin3
Name[en_GB]=pgadmin3
Name[ru]=pgadmin3
Comment=administration and development platform for the PostgreSQL.
Comment[en_CA]=administration and development platform for the PostgreSQL.
Comment[en_GB]=administration and development platform for the PostgreSQL.
Comment[ru]=Администрирование и разработка для PostgreSQL.
Exec=%_bindir/%name
Terminal=false
Type=Application
Icon=%_iconsdir/%name.xpm
Categories=Development;Database;
StartupNotify=true
EOF
%__mkdir_p %buildroot%_iconsdir
%__install -p -m644 ./pgadmin/include/images/elephant48.xpm %buildroot%_iconsdir/%name.xpm

%files
%_bindir/%name
%dir %_datadir/%name
%_datadir/%name/i18n
%_datadir/%name/branding
%_iconsdir/%name.xpm
%_datadir/applications/%name.desktop
%doc docs/en_US/tips.txt

%files pgagent
%_bindir/pgagent
%_datadir/%name/pgagent.sql

%files docs-en_US
%doc docs/en_US
%doc %_datadir/%name/docs/en_US

%files docs-all
%doc docs/de_DE
%doc docs/es_ES
%doc docs/fr_FR
%doc docs/sl_SI
%doc %_datadir/%name/docs/de_DE
%doc %_datadir/%name/docs/es_ES
%doc %_datadir/%name/docs/fr_FR
%doc %_datadir/%name/docs/sl_SI

%post
%update_menus

%postun
%clean_menus

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin