Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37843683
en ru br
ALT Linux repos
4.1: 4.2-alt1
4.0: 4.1.3-alt1
3.0: 3.5.4-alt1

Group :: System/Servers
RPM: phpPgAdmin

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define appdir %apache_htdocsdir/%name

Name: phpPgAdmin
Version: 4.2
Release: alt1

Summary: Handle the adminstration of PostgreSQL over the web
License: GPLv2+
Group: System/Servers

URL: http://phppgadmin.sourceforge.net/
Source0: http://dl.sourceforge.net/phppgadmin/phpPgAdmin-%version.tar.bz2
Source1: phpPgAdmin.localhost.htaccess

# we need macros defining html files location for apache

BuildPrereq: apache-devel

Requires: php-pgsql
BuildArch: noarch

%description
phpPgAdmin is a fully functional PostgreSQL administration utility. You can use
it to create and maintain multiple databases and even multiple servers.

%prep
%setup

%build
mv -f conf/config.inc.php-dist conf/config.inc.php

%install
%__subst 's|error_reporting(E_ALL);|error_reporting(E_ALL \& ~E_NOTICE);|' libraries/lib.inc.php

install -pD %SOURCE1 %buildroot%appdir/.htaccess
cp -aRf [^A-Z]* %buildroot%appdir/

# cleanup

pushd %buildroot%appdir
rm -f conf/.cvsignore
rm -rf sql
rm -f lang/Makefile lang/convert.awk lang/php2po lang/po2php lang/synch lang/langcheck
popd

# may be move config.inc.php to /etc/... out of web docroot? see mdk-contrib package

%files
%doc CREDITS DEVELOPERS FAQ HISTORY INSTALL TODO TRANSLATORS sql/*
%config(noreplace) %attr(0640,apache,webmaster) %appdir/conf/config.inc.php
%config(noreplace) %attr(0640,apache,webmaster) %appdir/.htaccess
%appdir/

%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