/[packages]/cauldron/php-pdo_firebird/current/SPECS/php-pdo_firebird.spec
ViewVC logotype

Contents of /cauldron/php-pdo_firebird/current/SPECS/php-pdo_firebird.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 101650 - (show annotations) (download)
Tue Jun 7 21:17:59 2011 UTC (10 years, 3 months ago) by philippem
File size: 1578 byte(s)
update description
1 %define modname pdo_firebird
2 %define dirname pdo_firebird
3 %define soname pdo_firebird.so
4 %define inifile 78_%{modname}.ini
5
6 %define major 5
7 %define libname %mklibname php5_common %{major}
8 %define php_version %{version}
9
10 Summary: Firebird/InterBase driver for PDO
11 Name: php-%{modname}
12 Epoch: 0
13 Version: 5.3.6
14 Release: %mkrel 2
15 Group: Development/PHP
16 URL: http://www.php.net
17 License: PHP License
18 Source0: %{modname}.ini
19 Requires: php-pdo >= %{epoch}:%{version}
20 BuildRequires: php-devel >= %{epoch}:%{php_version}
21 BuildRequires: firebird-devel
22 Requires: %{libname} >= 3:%{version}
23
24 %description
25 PDO_Firebird is a driver that implements the PHP Data Objects (PDO) interface to
26 enable access from PHP to Firebird databases.
27
28 %prep
29
30 %setup -c -T
31 cp -dpR %{_usrsrc}/php-devel/extensions/%{dirname}/* .
32
33 %build
34 %serverbuild
35
36 phpize
37 %configure2_5x \
38 --with-libdir=%{_lib} \
39 --with-pdo-firebird=%{_libdir}/firebird
40
41 %make
42 mv modules/*.so .
43
44 %install
45 rm -rf %{buildroot}
46
47 install -D -m0755 %{soname} %{buildroot}%{_libdir}/php/extensions/%{soname}
48 install -D -m0644 %{SOURCE0} %{buildroot}%{_sysconfdir}/php.d/%{inifile}
49
50 %post
51 if [ -f /var/lock/subsys/httpd ]; then
52 %{_initrddir}/httpd restart >/dev/null || :
53 fi
54
55 %postun
56 if [ "$1" = "0" ]; then
57 if [ -f /var/lock/subsys/httpd ]; then
58 %{_initrddir}/httpd restart >/dev/null || :
59 fi
60 fi
61
62 %clean
63 rm -rf %{buildroot}
64
65 %files
66 %defattr(-,root,root)
67 %doc CREDITS package*.xml tests
68 %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/php.d/%{inifile}
69 %attr(0755,root,root) %{_libdir}/php/extensions/%{soname}
70
71
72

  ViewVC Help
Powered by ViewVC 1.1.28