Logoj0ke.net Open Build Service > Projects > internetx:php5:extensions > php5-paradox > Changes
Sign Up | Log In

Changes of Revision 4

[-] Added php5-paradox.spec
x
 
1
@@ -0,0 +1,80 @@
2
+# norootforbuild
3
+
4
+%define pkg_name    paradox
5
+%define php_version %(php-config --version 2>/dev/null)
6
+#
7
+Name: php5-%{pkg_name}
8
+Version: 1.4.3 
9
+Release: 0
10
+#
11
+License: PHP
12
+Group: Productivity/Networking/Web/Servers
13
+#
14
+BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-build
15
+BuildRequires: php5-devel libpx-devel
16
+Requires: php5 = %{php_version}
17
+#
18
+URL: http://pecl.php.net/
19
+Source: http://pecl.php.net/package/%{pkg_name}/%{pkg_name}-%{version}.tgz
20
+Summary: an extension to read and write Paradox .DB and .PX files
21
+Patch0:  paradox-1.4.3-lib64.patch
22
+  
23
+%description
24
+
25
+   Paradox is an extension to read and write Paradox .DB and .PX files.
26
+It can handle almost all field types and binary large objects stored
27
+in .MB files.
28
+   
29
+Authors:
30
+---------
31
+
32
+       Uwe Steinmann
33
+
34
+%prep
35
+
36
+%setup -q -n %{pkg_name}-%{version}
37
+%patch0
38
+
39
+%{__mkdir} %{name}
40
+
41
+%build
42
+/usr/bin/phpize
43
+pushd %{name}
44
+
45
+CFLAGS="%{optflags} -fno-strict-aliasing"
46
+CXXFLAGS="%{optflags} -fno-strict-aliasing"
47
+%if 0%{?suse_version} > 1000
48
+CFLAGS="$CFLAGS -fstack-protector"
49
+CXXFLAGS="$CXXFLAGS -fstack-protector"
50
+%endif
51
+
52
+export CFLAGS
53
+export CXXFLAGS
54
+
55
+
56
+../configure --with-libdir=%{_lib}
57
+
58
+%{__make} %{?jobs:-j%jobs}
59
+
60
+popd
61
+
62
+%install
63
+
64
+%makeinstall -C %{name} INSTALL_ROOT=%{buildroot}
65
+%{__mkdir_p} %{buildroot}%{_sysconfdir}/php5/conf.d
66
+
67
+echo "; comment out next line to disable %{pkg_name} extension in php" > %{buildroot}%{_sysconfdir}/php5/conf.d/%{pkg_name}.ini
68
+echo "extension = %{pkg_name}.so" >> %{buildroot}%{_sysconfdir}/php5/conf.d/%{pkg_name}.ini
69
+
70
+%clean
71
+
72
+%{__rm} -rf %{buildroot}
73
+
74
+%files
75
+%defattr(644,root,root,755)
76
+%{_libdir}/php5/extensions/%{pkg_name}.so
77
+%config(noreplace) %{_sysconfdir}/php5/conf.d/%{pkg_name}.ini
78
+
79
+%doc CREDITS
80
+
81
+%changelog
82