2 # - it seems that it requires static php library??
3 # http://lists.commandprompt.com/pipermail/plphp/Week-of-Mon-20070326/000395.html
4 %define _pgpl_lang plphp
5 %define _pgmoduledir %{_libdir}/postgresql
7 Summary: PL/PHP - PostgreSQL procedural language
8 Summary(pl.UTF-8): PL/PHP - język proceduralny bazy danych PostgreSQL
9 Name: postgresql-module-%{_pgpl_lang}
14 Group: Applications/Databases
15 Source0: http://projects.commandprompt.com/public/plphp/attachment/wiki/Downloads/%{_pgpl_lang}-%{version}.tar.gz?format=raw
16 # Source0-md5: 54da4a6118a9294e7681c1aac712ecfa
17 Patch0: %{name}-nophp_test.patch
18 #Patch1: %{name}-tsrm.patch
19 URL: http://projects.commandprompt.com/public/plphp/
20 BuildRequires: autoconf
21 BuildRequires: automake
22 BuildRequires: php-devel
23 BuildRequires: postgresql-backend-devel
24 %requires_eq_to postgresql postgresql-backend-devel
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 PL/PHP - PostgreSQL procedural language.
30 %description -l pl.UTF-8
31 PL/PHP - język proceduralny bazy danych PostgreSQL.
34 %setup -q -n %{_pgpl_lang}-%{version}
45 rm -rf $RPM_BUILD_ROOT
48 DESTDIR=$RPM_BUILD_ROOT
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
56 %attr(755,root,root) %{_pgmoduledir}/*.so