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.1.3
Release: alt1
Summary: Handle the adminstration of PostgreSQL over the web
License: GPL
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 -q
%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
Name: phpPgAdmin
Version: 4.1.3
Release: alt1
Summary: Handle the adminstration of PostgreSQL over the web
License: GPL
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 -q
%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