Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37750890
en ru br
Репозитории ALT
S:1.23.0b-alt3
5.1: 1.10.0.rev8070-alt1
4.1: 1.9.0.rev7174-alt1
4.0: 1.8.0.rev6516-alt1
3.0: 1.2.1-alt2
www.altlinux.org/Changes

Группа :: Базы Данных
Пакет: pgadmin3

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

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

%define snapshot rev7174
Name: pgadmin3
Version: 1.9.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: pgadmin3-alt-build-flag-fix.patch

Requires: %name-docs-en_US

BuildPreReq: libstdc++4.1-devel-precompiled  gcc-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
%__subst "s,SUBDIRS = src pkg,SUBDIRS = src," Makefile.am
%__subst "s,suse,," pkg/Makefile.am
/bin/sh bootstrap

%build
%configure --enable-precomp CXXFLAGS="-I../include"
%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

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin