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

Problem getting expanded diff: bad link: could not apply patch 'project.diff'

Changes of Revision 4

[-] Added php5-raphf.spec
x
 
1
@@ -0,0 +1,84 @@
2
+# norootforbuild
3
+%define pkg_name    raphf
4
+%define         php_version %(php-config --version 2>/dev/null)
5
+%if %{pkg_version} >= 5.6
6
+%define         my_version 2.0.0
7
+%define         upstream 1
8
+%else
9
+%define         my_version 1.0.4
10
+%define         upstream 0
11
+%endif
12
+#
13
+Name: php7-raphf
14
+Version: %{my_version}
15
+Release: 0
16
+#
17
+License: PHP
18
+Group: Productivity/Networking/Web/Servers
19
+#
20
+BuildRoot: %{_tmppath}/%{pkg_name}-%{my_version}-build
21
+BuildRequires: php7-devel
22
+BuildRequires: -php7-raphf
23
+BuildRequires: -php7-propro
24
+#
25
+URL: http://pecl.php.net/raphf
26
+Source: http://pecl.php.net/package/raphf/%{pkg_name}-%{my_version}.tgz
27
+Summary: pecl_http's persistent handle and resource factory API
28
+
29
+%description
30
+
31
+   A reusable split-off of pecl_http's persistent handle and resource factory API.
32
+
33
+Authors:
34
+---------
35
+
36
+   Michael Wallner
37
+
38
+%prep
39
+
40
+%setup -q -n %{pkg_name}-%{my_version}
41
+
42
+%{__mkdir} %{name}
43
+
44
+%build
45
+/usr/bin/phpize
46
+pushd %{name}
47
+
48
+CFLAGS="%{optflags} -fno-strict-aliasing"
49
+CXXFLAGS="%{optflags} -fno-strict-aliasing"
50
+%if 0%{?suse_version} > 1000
51
+CFLAGS="$CFLAGS -fstack-protector"
52
+CXXFLAGS="$CXXFLAGS -fstack-protector"
53
+%endif
54
+
55
+export CFLAGS
56
+export CXXFLAGS
57
+
58
+../configure
59
+
60
+%{__make} %{?jobs:-j%jobs}
61
+popd
62
+
63
+%install
64
+
65
+%makeinstall -C %{name} INSTALL_ROOT=%{buildroot}
66
+%{__mkdir_p} %{buildroot}%{_sysconfdir}/php7/conf.d
67
+echo "; comment out next line to disable raphf extension in php" > %{buildroot}%{_sysconfdir}/php7/conf.d/raphf.ini
68
+echo 'extension = raphf.so' >> %{buildroot}%{_sysconfdir}/php7/conf.d/raphf.ini
69
+
70
+
71
+%clean
72
+
73
+%{__rm} -rf %{buildroot}
74
+
75
+%files
76
+%defattr(644,root,root,755)
77
+%{_libdir}/php7/extensions/raphf.so
78
+%config(noreplace) %{_sysconfdir}/php7/conf.d/raphf.ini
79
+%doc CREDITS
80
+%dir %{_includedir}/php7
81
+%dir %{_includedir}/php7/ext
82
+%dir %{_includedir}/php7/ext/raphf
83
+%{_includedir}/php7/ext/raphf/php_raphf.h
84
+
85
+%changelog -n php7-raphf
86