2007-01-16 00:32:44 +01:00
|
|
|
#
|
2011-06-07 10:37:43 +02:00
|
|
|
# spec file for package phpPgAdmin
|
2007-01-16 00:32:44 +01:00
|
|
|
#
|
2020-06-20 22:32:18 +02:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2007-01-16 00:32:44 +01:00
|
|
|
#
|
2009-02-09 10:43:28 +01:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-01-19 14:09:01 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:32:44 +01:00
|
|
|
#
|
|
|
|
|
2011-06-07 10:37:55 +02:00
|
|
|
|
2011-06-07 10:37:43 +02:00
|
|
|
Name: phpPgAdmin
|
2007-01-16 00:32:44 +01:00
|
|
|
|
2019-01-19 14:09:01 +01:00
|
|
|
%define lc_name phppgadmin
|
2011-06-07 10:37:43 +02:00
|
|
|
%define apxs %{_sbindir}/apxs2
|
|
|
|
%define ap_sysconfdir %(%{apxs} -q SYSCONFDIR)
|
|
|
|
%define ap_serverroot %(%{apxs} -q PREFIX)
|
|
|
|
%define ap_docroot %(%{apxs} -q PREFIX)/htdocs
|
|
|
|
%define ppa_config %{_sysconfdir}/%{name}/config.inc.php
|
2008-04-08 21:38:05 +02:00
|
|
|
|
2011-06-07 10:37:43 +02:00
|
|
|
Summary: Administration of PostgreSQL over the web
|
2019-01-19 14:09:01 +01:00
|
|
|
License: GPL-2.0-or-later
|
2007-01-16 00:32:44 +01:00
|
|
|
Group: Productivity/Databases/Tools
|
2020-06-20 22:32:18 +02:00
|
|
|
Version: 7.12.1
|
2012-03-29 17:13:15 +02:00
|
|
|
Release: 0
|
2020-06-20 22:32:18 +02:00
|
|
|
#define rel_version %(/usr/bin/sed -e "s/\./-/g" <<<%{version})
|
|
|
|
%define rel_version REL_7-12-1
|
|
|
|
URL: http://phppgadmin.sourceforge.net
|
|
|
|
Source0: https://github.com/%{lc_name}/%{lc_name}/releases/download/%{rel_version}/%{name}-%{version}.tar.bz2
|
2011-06-07 10:37:43 +02:00
|
|
|
Source1: %{name}.http
|
2020-06-20 22:32:18 +02:00
|
|
|
Patch0: %{name}-config.inc.patch
|
2008-04-08 21:38:05 +02:00
|
|
|
BuildArch: noarch
|
2011-06-07 10:37:43 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: apache2-devel
|
2012-03-29 17:13:15 +02:00
|
|
|
Requires: mod_php_any
|
2020-06-20 22:32:18 +02:00
|
|
|
Requires: php >= 7.1
|
2012-03-29 17:13:15 +02:00
|
|
|
Requires: php-pgsql
|
2007-01-16 00:32:44 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
phpPgAdmin is a web-based administration tool for PostgreSQL. It is
|
|
|
|
perfect for PostgreSQL DBAs, newbies and hosting services.
|
|
|
|
|
2011-06-07 10:37:43 +02:00
|
|
|
Features
|
|
|
|
|
|
|
|
* Administer multiple servers
|
2020-06-20 22:32:18 +02:00
|
|
|
* Support for PostgreSQL 9.x.x, 10.x, 11.x, 12.x
|
2011-06-07 10:37:43 +02:00
|
|
|
* Manage all aspects of:
|
2014-02-01 18:26:58 +01:00
|
|
|
o Users & groups
|
|
|
|
o Databases
|
|
|
|
o Schemas
|
|
|
|
o Tables, indexes, constraints, triggers, rules & privileges
|
2019-01-19 14:09:01 +01:00
|
|
|
o Views, sequences & functions
|
|
|
|
o Advanced objects
|
|
|
|
o Reports
|
2011-06-07 10:37:43 +02:00
|
|
|
* Easy data manipulation:
|
2014-02-01 18:26:58 +01:00
|
|
|
o Browse tables, views & reports
|
|
|
|
o Execute arbitrary SQL
|
|
|
|
o Select, insert, update and delete
|
2011-06-07 10:37:43 +02:00
|
|
|
* Dump table data in a variety of formats: SQL, COPY, XML, XHTML, CSV, Tabbed, pg_dump
|
|
|
|
* Import SQL scripts, COPY data, XML, CSV and Tabbed
|
|
|
|
* Supports the Slony master-slave replication engine
|
|
|
|
* Excellent language support:
|
2014-02-01 18:26:58 +01:00
|
|
|
o Available in 27 languages
|
|
|
|
o No encoding conflicts. Edit Russian data using a Japanese interface!
|
2020-06-20 22:32:18 +02:00
|
|
|
* Easy to install and configure
|
2007-01-16 00:32:44 +01:00
|
|
|
|
2011-06-07 10:37:43 +02:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2020-06-20 22:32:18 +02:00
|
|
|
%patch0
|
2007-01-16 00:32:44 +01:00
|
|
|
|
2011-06-07 10:37:43 +02:00
|
|
|
%build
|
2007-01-16 00:32:44 +01:00
|
|
|
|
2011-06-07 10:37:43 +02:00
|
|
|
%install
|
|
|
|
%{__install} -d %{buildroot}%{ap_docroot}/%{name}
|
2014-02-01 18:26:58 +01:00
|
|
|
%{__cp} -dR *.php *.js classes help images lang libraries plugins themes xloadtree \
|
|
|
|
%{buildroot}%{ap_docroot}/%{name}
|
2007-01-16 00:32:44 +01:00
|
|
|
|
2011-06-07 10:37:43 +02:00
|
|
|
# install config to config dir
|
|
|
|
%{__install} -D -m0640 conf/config.inc.php-dist \
|
2014-02-01 18:26:58 +01:00
|
|
|
%{buildroot}%{ppa_config}
|
2007-01-16 00:32:44 +01:00
|
|
|
|
2011-06-07 10:37:43 +02:00
|
|
|
# install config for apache
|
|
|
|
%{__install} -D -m0644 %{S:1} %{buildroot}%{ap_sysconfdir}/conf.d/%{name}.conf
|
2007-01-16 00:32:44 +01:00
|
|
|
|
2011-06-07 10:37:43 +02:00
|
|
|
# fix paths in http config
|
|
|
|
%{__sed} -i -e "s,@ap_docroot@,%{ap_docroot},g" -e "s,@name@,%{name},g" \
|
2014-02-01 18:26:58 +01:00
|
|
|
-e "s,@docdir@,%{_docdir},g" %{buildroot}%{ap_sysconfdir}/conf.d/%{name}.conf
|
2007-01-16 00:32:44 +01:00
|
|
|
|
2011-06-07 10:37:43 +02:00
|
|
|
# remove not needed files from lang/
|
|
|
|
for i in Makefile convert.awk langcheck php2po po2php synch; do
|
2014-02-01 18:26:58 +01:00
|
|
|
%{__rm} -f %{buildroot}%{ap_docroot}/%{name}/lang/${i}
|
2011-06-07 10:37:43 +02:00
|
|
|
done
|
2007-01-16 00:32:44 +01:00
|
|
|
|
2011-06-07 10:37:43 +02:00
|
|
|
%postun
|
|
|
|
%restart_on_update apache2
|
2007-01-16 00:32:44 +01:00
|
|
|
|
|
|
|
%clean
|
2011-06-07 10:37:43 +02:00
|
|
|
%{__rm} -rf %{buildroot}
|
2007-01-16 00:32:44 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(0644,root,root,0755)
|
2019-01-19 14:09:01 +01:00
|
|
|
%if 0%{?suse_version} >= 1500
|
|
|
|
%license LICENSE
|
|
|
|
%else
|
|
|
|
%doc LICENSE
|
|
|
|
%endif
|
|
|
|
%doc CREDITS DEVELOPERS FAQ HISTORY TODO TRANSLATORS
|
2011-06-07 10:37:43 +02:00
|
|
|
%{ap_docroot}/%{name}
|
|
|
|
%config(noreplace) %{ap_sysconfdir}/conf.d/%{name}.conf
|
|
|
|
%dir %attr(0750,wwwrun,root) %{_sysconfdir}/%{name}
|
|
|
|
%config(noreplace) %attr(0640,root,www) %{ppa_config}
|
2007-01-16 00:32:44 +01:00
|
|
|
|
2007-08-05 11:37:04 +02:00
|
|
|
%changelog
|