]>
Commit | Line | Data |
---|---|---|
dbc4c53d | 1 | Summary: phpPgAdmin - web-based PostgreSQL administration |
2 | Summary(pl): phpPgAdmin - administracja bazami PostgreSQL przez WWW | |
43017019 | 3 | Name: phpPgAdmin |
a2c2c5c3 | 4 | Version: 2.4.1 |
04ae2781 | 5 | %define tar_version %(echo %{version} | sed "s,\\.,-,g") |
dc9fec47 | 6 | Release: 1 |
43017019 | 7 | License: GPL v2 |
8 | Group: Applications/Databases/Interfaces | |
04ae2781 | 9 | Source0: ftp://ftp.sourceforge.net/pub/sourceforge/phppgadmin/%{name}_%{tar_version}.tar.bz2 |
43017019 | 10 | URL: http://sourceforge.net/projects/phppgadmin/ |
dc9fec47 AM |
11 | Requires: php >= 4.0.6 |
12 | Requires: php-pgsql >= 4.0.6 | |
43017019 | 13 | Requires: webserver |
14 | Buildarch: noarch | |
dc9fec47 | 15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
43017019 | 16 | |
17 | %define _pgadmindir /home/httpd/html/pgadmin | |
18 | ||
19 | %description | |
dc9fec47 AM |
20 | phpPgAdmin is a fully functional web-based administration utility for |
21 | a PostgreSQL database server. It handles all the basic functionality | |
22 | as well as some advanced features such as triggers, views and | |
23 | functions (stored procs) | |
43017019 | 24 | |
25 | %description -l pl | |
ac8df53c | 26 | phpPgAdmin jest w pelni funkcjonalnym bazowanym na WWW narzedziem |
27 | administracyjnym dla serwera baz danych PostgreSQL. Posiada wszystkie | |
dc9fec47 AM |
28 | podstawowe mozliwosc, jak i czesc bardziej zaawansowanych jak |
29 | przelaczniki, widoki i funkcje(zapisane procedury) | |
43017019 | 30 | |
31 | %prep | |
32 | %setup -q -n phpPgAdmin | |
33 | %build | |
34 | ||
35 | %install | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | install -d $RPM_BUILD_ROOT%{_pgadmindir}/{lang,images,libraries} | |
38 | ||
dc9fec47 AM |
39 | cp *.php *.html $RPM_BUILD_ROOT%{_pgadmindir} |
40 | cp config.inc.php-dist $RPM_BUILD_ROOT%{_pgadmindir}/config.inc.php | |
43017019 | 41 | cp images/*.gif $RPM_BUILD_ROOT%{_pgadmindir}/images |
42 | ||
43 | gzip -9nf Documentation.html BUGS DEVELOPERS INSTALL README TODO ChangeLog | |
44 | ||
45 | %clean | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
48 | %files | |
49 | %defattr(644,root,root,755) | |
50 | %doc *.gz | |
51 | %dir %{_pgadmindir} | |
52 | %attr(640,root,http) %config(noreplace) %verify(not size mtime md5) %{_pgadmindir}/config.inc.php | |
dc9fec47 AM |
53 | %{_pgadmindir}/[^c]*.php |
54 | %{_pgadmindir}/c[ah]*.php | |
43017019 | 55 | %{_pgadmindir}/*.html |
56 | %{_pgadmindir}/images |