Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37754433
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 rev8070
Name: pgadmin3
Version: 1.10.0.%snapshot
Release: alt1

Summary: Powerful administration and development platform for PostgreSQL.
License: BSD
Group: Databases
Packager: PostgreSQL Maintainers Team <pgsql at packages.altlinux.org>

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

# temporary hack until something after 1.10.0 comes out.

Source: %name-1.10.0.tar.bz2

Requires: %name-docs-en_US

BuildRequires: gcc-c++ libssl-devel libxslt-devel postgresql-devel subversion
BuildRequires: 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 runs 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 nterface 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.

%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
sed -i "s,SUBDIRS = src pkg,SUBDIRS = src," Makefile.am
sed -i "s,suse,," pkg/Makefile.am
/bin/sh bootstrap

%build
%configure --enable-precomp CXXFLAGS="-I../include"

touch pgadmin/include/svnversion.cpp
echo "#define VERSION_SVN \"%snapshot\"" > pgadmin/include/svnversion.h

%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
%_datadir/%name/*.ini
%_iconsdir/%name.xpm
%_datadir/applications/%name.desktop

%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

%changelog

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

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