]> git.pld-linux.org Git - packages/phpMyAdmin.git/blob - phpMyAdmin.spec
- updated to 2.5.2-rc2
[packages/phpMyAdmin.git] / phpMyAdmin.spec
1
2 %define         _rc     rc2
3 Summary:        phpMyAdmin - web-based MySQL administration
4 Summary(pl):    phpMyAdmin - administracja bazami MySQL przez WWW
5 Name:           phpMyAdmin
6 Version:        2.5.2
7 Release:        0.%{_rc}.1
8 License:        GPL v2
9 Group:          Applications/Databases/Interfaces
10 Source0:        http://dl.sourceforge.net/phpmyadmin/%{name}-%{version}-%{_rc}-php.tar.bz2
11 # Source0-md5:  15fed9a92d6d9b79eb9fb7bbc0f0f81e
12 Patch0:         %{name}-config.patch
13 URL:            http://www.phpmyadmin.net/
14 BuildRequires:  rpm-php-pearprov
15 Requires:       mysql
16 Requires:       php-mysql
17 Requires:       php
18 Requires:       webserver
19 Buildarch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %define         _myadmindir     /home/services/httpd/html/myadmin
23
24 %description
25 phpMyAdmin can administer a whole MySQL-server (needs a super-user)
26 but also a single database. To accomplish the latter you'll need a
27 properly set up MySQL-user who can read/write only the desired
28 database. It's up to you to look up the appropiate part in the MySQL
29 manual. Currently phpMyAdmin can:
30   - create and drop databases
31   - create, copy, drop and alter tables
32   - delete, edit and add fields
33   - execute any SQL-statement, even batch-queries
34   - manage keys on fields
35   - load text files into tables
36   - create (*) and read dumps of tables
37   - export (*) and import data to CSV values
38   - administer multiple servers and single databases
39   - communicate in more than 20 different languages
40
41 %description -l pl
42 phpMyAdmin potrafi zarz±dzaæ ca³ymi bazami MySQL (potrzebne
43 uprawnienia super-user'a) jak i pojedynczymi bazami danych. Bêdziesz
44 potrzebowa³ u¿ytkownika, który ma prawa zapisu/odczytu tylko tych baz,
45 którymi chcesz administrowaæ (zajrzyj do odpowiedniej czê¶ci manual'a
46 MySQL). Aktualnie phpMyAdmin potrafi:
47   - tworzyæ i usuwaæ bazy
48   - create, copy, drop oraz alter na tabelach
49   - dodawaæ, usuwaæ i edytowaæ pola
50   - wykonywaæ dowolne zapytania SQL
51   - zarz±dzaæ kluczami na rekordach
52   - wczytywaæ tekst z plików do tabel
53   - obs³ugiwaæ ponad 20 jêzyków
54   - zarz±dzaæ wieloma serwerami i pojedyñczymi bazami danych
55   - eksportowaæ i importowaæ dane do warto¶ci CSV
56   - tworzyæ i czytaæ zrzuty tabel
57
58 %prep
59 %setup -q -n %{name}-%{version}-%{_rc}
60 %patch -p1
61
62 %install
63 rm -rf $RPM_BUILD_ROOT
64 install -d $RPM_BUILD_ROOT%{_myadmindir}/{css,lang,images,libraries/{auth,export}}
65
66 install *.php *.html *.css badwords.txt $RPM_BUILD_ROOT%{_myadmindir}
67 install images/*.{gif,png} $RPM_BUILD_ROOT%{_myadmindir}/images
68 install lang/*.php $RPM_BUILD_ROOT%{_myadmindir}/lang
69 install css/* $RPM_BUILD_ROOT%{_myadmindir}/css
70 install libraries/*.{js,php} $RPM_BUILD_ROOT%{_myadmindir}/libraries
71 install libraries/auth/*.php $RPM_BUILD_ROOT%{_myadmindir}/libraries/auth
72 install libraries/export/*.php $RPM_BUILD_ROOT%{_myadmindir}/libraries/export
73
74 %clean
75 rm -rf $RPM_BUILD_ROOT
76
77 %files
78 %defattr(644,root,root,755)
79 %doc Documentation.txt ANNOUNCE.txt README TODO ChangeLog
80 %attr(640,root,http) %config(noreplace) %verify(not size mtime md5) %{_myadmindir}/config.inc.php
81 %dir %{_myadmindir}
82 %{_myadmindir}/css
83 %{_myadmindir}/images
84 %{_myadmindir}/lang
85 %{_myadmindir}/libraries
86 %{_myadmindir}/badwords.txt
87 %{_myadmindir}/*.css
88 %{_myadmindir}/*.html
89 %{_myadmindir}/[!c]*.php
90 %{_myadmindir}/c[!o]*.php
This page took 0.03139 seconds and 4 git commands to generate.