Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37786606
en ru br
ALT Linux repos
S:5.2.1-alt1
5.0: 3.1.1-alt1
4.1: 2.11.8.1-alt0.M41.1
4.0: 2.11.8.1-alt0.M40.1
3.0: 2.5.7-alt2pl1

Group :: Networking/WWW
RPM: phpMyAdmin

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: phpMyAdmin
Version: 2.5.7
Release: alt2pl1

%define origversion %version-pl1

Summary: phpMyAdmin - web-based MySQL administration
License: GPL
Group: Networking/WWW

Url: http://www.phpmyadmin.net
Source: http://prdownloads.sourceforge.net/phpmyadmin/%name-%origversion.tar.bz2
Source1: localhost.htaccess

Requires: mod_php php-mysql
Provides: phpmyadmin

BuildArch: noarch

#TODO: try again to let non-root webmaster edit the config file

#      (read: need web policy)

#define webmaster webmaster

%define apache_group apache
%define apache_home /var/www
%define pma_home %apache_home/html/%name
%define pma_doc %_docdir/%name-%version

%description
phpMyAdmin can administer a whole MySQL-server (needs a super-user)
but also a single database. To accomplish the latter you'll need a
properly set up MySQL-user who can read/write only the desired
database. It's up to you to look up the appropiate part in the MySQL
manual. Currently phpMyAdmin can:
 - create and drop databases
 - create, copy, drop and alter tables
 - delete, edit and add fields
 - execute any SQL-statement, even batch-queries
 - manage keys on fields
 - load text files into tables
 - create (*) and read dumps of tables
 - export (*) and import data to CSV values
 - administer multiple servers and single databases
 - communicate in more than 20 different languages

%prep
%setup -q -n %name-%origversion

%install
%__install -m755 -d %buildroot%pma_home/{lang,images,libraries{/auth,},css}
%__install -m644 *.php *.html *.css %buildroot%pma_home/
%__install -m644 images/*.{gif,png} %buildroot%pma_home/images/
%__install -m644 lang/*.php %buildroot%pma_home/lang/
%__install -m644 css/*.php %buildroot%pma_home/css/
%__install -m640 %SOURCE1 %buildroot%pma_home/.htaccess
%__cp -a libraries/ %buildroot%pma_home/

%files
%doc scripts/
%doc Documentation.txt README TODO ChangeLog CREDITS translators.*
%dir %pma_home/
%attr(0640,root,%apache_group) %config(noreplace) %verify(not size mtime md5) %pma_home/config.inc.php
%attr(0640,root,apache) %config(noreplace) %pma_home/.htaccess
%pma_home/images/
%pma_home/lang/
%pma_home/libraries/
%pma_home/css/
%pma_home/*.html
%pma_home/*.css
%pma_home/[^c]*.php
%pma_home/c[^o]*.php
%exclude %pma_home/phpinfo.php

# TODO:

# - translators.html goes in twice

%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