]>
Commit | Line | Data |
---|---|---|
fd4a736f ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without system_dconv # system double-conversion | |
4 | %bcond_without system_sqlite # system sqlite3 | |
5 | %bcond_without system_lz4 # system lz4 | |
e494b5cb | 6 | %bcond_without system_fastlz # system fastlz |
934d354b | 7 | %bcond_with system_libafdt # system libafdt |
c19fc9d9 | 8 | %bcond_without system_libzip # system libzip |
8041f44b ER |
9 | # cotire breaks sqlite3 on builders: https://github.com/facebook/hhvm/issues/4524 |
10 | %bcond_with cotire # cotire (compile time reducer): Speed up the build by precompiling headers | |
fd4a736f | 11 | |
b682fdb1 ER |
12 | # TODO |
13 | # - system xhp | |
14 | # - system proxygen | |
15 | # - system thrift | |
16 | ||
89ad59aa ER |
17 | # NOTES: |
18 | # - hphp/runtime/base/runtime-option.cpp evalJitDefault enables jit if /.hhvm-jit exists (yes, in filesystem root) | |
b682fdb1 | 19 | |
d9b6cc98 ER |
20 | # must be in sync with source. extra check ensuring that it is so is done in %%build |
21 | %define hhvm_api_version 20140829 | |
af2b6c94 ER |
22 | # hphp/system/idl/constants.idl.json defines it as 5.6.99-hhvm, but use some saner value |
23 | %define php_version 5.6.0 | |
24 | ||
ffc743bc ER |
25 | # git show HHVM-3.3.7 |
26 | %define githash e0344cb6ab126e50e611332f03f447f586cc763a | |
b682fdb1 | 27 | # these hashes are git submodules (be sure to check them on proper branch) |
e7f30897 ER |
28 | # GIT_DIR=third-party/.git git log -1 |
29 | %define thirdparty bf581f8 | |
e7f30897 | 30 | # GIT_DIR=third-party/folly/src/.git git log -1 |
b682fdb1 | 31 | %define folly 6e46d46 |
ed14b19f | 32 | Summary: Virtual Machine, Runtime, and JIT for PHP |
aa7908cc | 33 | Name: hhvm |
d84d6344 ER |
34 | # we prefer LTS versions |
35 | # see http://hhvm.com/blog/6083/hhvm-long-term-support | |
ffc743bc | 36 | Version: 3.3.7 |
a4aabf3c | 37 | Release: 13 |
6135817a | 38 | License: PHP 3.01 and BSD |
ac2930bc | 39 | Group: Development/Languages |
aa7908cc | 40 | Source0: https://github.com/facebook/hhvm/archive/HHVM-%{version}.tar.gz |
ffc743bc | 41 | # Source0-md5: 8df12eef8702515498d6a6caab6e4b7d |
20de90ba ER |
42 | Source2: https://github.com/facebook/folly/archive/%{folly}/folly-3.2-%{folly}.tar.gz |
43 | # Source2-md5: c4bdbea4c0ffe0650d12d9ff370b8255 | |
745db304 | 44 | Source3: https://github.com/hhvm/hhvm-third-party/archive/%{thirdparty}/third_party-%{thirdparty}.tar.gz |
e7f30897 | 45 | # Source3-md5: 17210db0b2211c63d911076e02aab487 |
6135817a ER |
46 | Source5: %{name}-fcgi.init |
47 | Source6: %{name}-fcgi.sysconfig | |
48 | Source7: php.ini | |
991b3017 | 49 | Source100: get-source.sh |
449902dc | 50 | Patch1: no-debug.patch |
e66c75f6 | 51 | Patch2: hphpize.patch |
3e79618f | 52 | Patch3: MAX.patch |
142dde19 | 53 | Patch4: system-thirdparty.patch |
a46def0c | 54 | Patch5: cmake.patch |
c77f551c | 55 | Patch6: libvpx2.patch |
b343400f | 56 | Patch7: gcc5.patch |
83ff8dfd | 57 | Patch8: cxx.patch |
199131a5 | 58 | Patch9: gcc6.patch |
aa8f72e5 | 59 | Patch10: libevent-2.1.patch |
45805ee5 | 60 | Patch11: icu59.patch |
ff452300 | 61 | URL: https://github.com/facebook/hhvm/wiki |
f7556a8c | 62 | BuildRequires: ImageMagick-devel |
9256e518 | 63 | BuildRequires: a52dec-libs-devel |
b05f3896 ER |
64 | BuildRequires: apr-devel |
65 | BuildRequires: autoconf | |
3f49543c | 66 | BuildRequires: binutils-devel |
6135817a ER |
67 | # CMake/HPHPFindLibs.cmake:364 - FIND_LIBRARY (BFD_LIB libbfd.a) |
68 | BuildRequires: binutils-static | |
ed14b19f | 69 | BuildRequires: boost-devel >= 1.50 |
745db304 | 70 | BuildRequires: cmake >= 2.8.5 |
ed14b19f | 71 | BuildRequires: curl-devel >= 7.29.0 |
fd4a736f | 72 | %{?with_system_dconv:BuildRequires: double-conversion-devel >= 1.1.1} |
ed14b19f | 73 | BuildRequires: elfutils-devel |
3f49543c | 74 | BuildRequires: expat-devel |
e494b5cb | 75 | %{?with_system_fastlz:BuildRequires: fastlz-devel >= 0.1.0-0.r12} |
5c61d46f | 76 | BuildRequires: gcc >= 6:4.6.0 |
3f49543c | 77 | BuildRequires: gd-devel |
ed14b19f ER |
78 | BuildRequires: glog-devel >= 0.3.2 |
79 | BuildRequires: imap-devel >= 1:2007 | |
991b3017 | 80 | #BuildRequires: jemalloc-devel >= 3.0.0 |
e494b5cb | 81 | %{?with_system_libafdt:BuildRequires: libafdt-devel >= 0.1.0} |
3f49543c | 82 | BuildRequires: libcap-devel |
04f13235 | 83 | BuildRequires: libdwarf-devel >= 20130729 |
ac2930bc | 84 | BuildRequires: libicu-devel >= 4.2 |
be373886 | 85 | #BuildRequires: libmbfl-devel |
ed14b19f | 86 | BuildRequires: libmcrypt-devel |
e883c14f | 87 | BuildRequires: libmemcached-devel >= 1.0.4 |
491a5eb9 | 88 | BuildRequires: libstdc++-devel >= 6:4.8 |
ed14b19f | 89 | BuildRequires: libunwind-devel |
ac2930bc | 90 | BuildRequires: libxml2-devel |
9256e518 | 91 | BuildRequires: libxslt-devel |
ca0d5750 | 92 | %{?with_system_libzip:BuildRequires: libzip-devel >= 0.11.2} |
fd4a736f | 93 | %{?with_system_lz4:BuildRequires: lz4-devel >= 0.0-1.r119} |
3f49543c | 94 | BuildRequires: mysql-devel |
04f13235 | 95 | BuildRequires: ocaml-findlib |
ac2930bc | 96 | BuildRequires: oniguruma-devel |
3f49543c | 97 | BuildRequires: openssl-devel |
fd4a736f | 98 | BuildRequires: pcre-devel >= 8.32 |
ed14b19f | 99 | #BuildRequires: php-xhp-devel >= 1.3.9-6 |
ed14b19f | 100 | BuildRequires: readline-devel |
89ad59aa | 101 | BuildRequires: rpmbuild(macros) >= 1.675 |
fd4a736f | 102 | %{?with_system_sqlite:BuildRequires: sqlite3-devel >= 3.7.15.2} |
ed14b19f | 103 | BuildRequires: tbb-devel >= 4.0.6000 |
3f49543c | 104 | BuildRequires: zlib-devel |
21df9de7 ER |
105 | # check later, seem unused |
106 | #BuildRequires: bison >= 2.3 | |
107 | #BuildRequires: flex >= 2.5.35 | |
ca0d5750 | 108 | BuildRequires: libafdt-devel >= 0.1.0 |
21df9de7 | 109 | #BuildRequires: re2c >= 0.13.0 |
07195164 | 110 | BuildConflicts: ImageMagick6-devel |
87330af7 | 111 | Provides: %{name}(api) = %{hhvm_api_version} |
c91d719c ER |
112 | Provides: php(core) = %{php_version} |
113 | # foreach (get_loaded_extensions() as $ext) printf("Provides:\tphp(%s)\n", strtolower($ext)); | |
206caaaf ER |
114 | Provides: php(apc) |
115 | Provides: php(bcmath) | |
991b3017 | 116 | Provides: php(bz2) |
745db304 | 117 | Provides: php(calendar) |
206caaaf ER |
118 | Provides: php(ctype) |
119 | Provides: php(curl) | |
120 | Provides: php(date) | |
9c2504b3 | 121 | Provides: php(debugger) |
206caaaf | 122 | Provides: php(dom) |
c91d719c | 123 | Provides: php(enum) |
206caaaf ER |
124 | Provides: php(exif) |
125 | Provides: php(fb) | |
991b3017 | 126 | Provides: php(fileinfo) |
206caaaf | 127 | Provides: php(filter) |
745db304 | 128 | Provides: php(ftp) |
206caaaf | 129 | Provides: php(gd) |
745db304 | 130 | Provides: php(gettext) |
c91d719c | 131 | Provides: php(gmp) |
206caaaf | 132 | Provides: php(hash) |
9c2504b3 ER |
133 | Provides: php(hh) |
134 | Provides: php(hhvm.debugger) | |
135 | Provides: php(hhvm.ini) | |
206caaaf ER |
136 | Provides: php(hotprofiler) |
137 | Provides: php(iconv) | |
206caaaf | 138 | Provides: php(idn) |
9c2504b3 | 139 | Provides: php(imagick) |
206caaaf | 140 | Provides: php(imap) |
9c2504b3 | 141 | Provides: php(intl) |
206caaaf ER |
142 | Provides: php(json) |
143 | Provides: php(ldap) | |
9c2504b3 | 144 | Provides: php(libxml) |
c91d719c ER |
145 | Provides: php(mail) |
146 | Provides: php(mailparse) | |
206caaaf ER |
147 | Provides: php(mbstring) |
148 | Provides: php(mcrypt) | |
149 | Provides: php(memcache) | |
150 | Provides: php(memcached) | |
151 | Provides: php(mysql) | |
9c2504b3 | 152 | Provides: php(mysqli) |
745db304 | 153 | Provides: php(oauth) |
206caaaf ER |
154 | Provides: php(openssl) |
155 | Provides: php(pcntl) | |
156 | Provides: php(pcre) | |
745db304 | 157 | Provides: php(pcre_zend_compat) |
206caaaf ER |
158 | Provides: php(pdo) |
159 | Provides: php(pdo_mysql) | |
160 | Provides: php(pdo_sqlite) | |
161 | Provides: php(phar) | |
162 | Provides: php(posix) | |
9c2504b3 | 163 | Provides: php(redis) |
206caaaf ER |
164 | Provides: php(reflection) |
165 | Provides: php(server) | |
166 | Provides: php(session) | |
167 | Provides: php(simplexml) | |
168 | Provides: php(soap) | |
169 | Provides: php(sockets) | |
170 | Provides: php(spl) | |
171 | Provides: php(sqlite3) | |
745db304 ER |
172 | Provides: php(standard) |
173 | Provides: php(standard_zend_compat) | |
9c2504b3 | 174 | Provides: php(stream) |
206caaaf ER |
175 | Provides: php(sysvmsg) |
176 | Provides: php(sysvsem) | |
177 | Provides: php(sysvshm) | |
178 | Provides: php(thread) | |
179 | Provides: php(thrift_protocol) | |
180 | Provides: php(tokenizer) | |
9c2504b3 | 181 | Provides: php(url) |
745db304 ER |
182 | Provides: php(wddx) |
183 | Provides: php(xenon) | |
206caaaf ER |
184 | Provides: php(xhprof) |
185 | Provides: php(xml) | |
186 | Provides: php(xmlreader) | |
187 | Provides: php(xmlwriter) | |
9c2504b3 | 188 | Provides: php(xsl) |
745db304 | 189 | Provides: php(yaml) |
991b3017 | 190 | Provides: php(zip) |
206caaaf | 191 | Provides: php(zlib) |
991b3017 | 192 | Obsoletes: hiphop-php < 2.3.2-0.2 |
17c75ade | 193 | ExclusiveArch: %{x8664} |
65446f6c ER |
194 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
195 | ||
c171e0ff | 196 | |
6135817a ER |
197 | %define hhvm_extensiondir %{_libdir}/hhvm |
198 | ||
65446f6c | 199 | %description |
aa7908cc ER |
200 | HHVM (aka the HipHop Virtual Machine) is a new open-source virtual |
201 | machine designed for executing programs written in PHP. HHVM uses a | |
202 | just-in-time compilation approach to achieve superior performance | |
203 | while maintaining the flexibility that PHP developers are accustomed | |
204 | to. To date, HHVM (and its predecessor HPHPc before it) has realized | |
205 | over a 9x increase in web request throughput and over a 5x reduction | |
206 | in memory consumption for Facebook compared with the Zend PHP 5.2 | |
207 | engine + APC. | |
208 | ||
209 | HHVM can be run as a standalone webserver (i.e. without the Apache | |
210 | webserver and the "mod_php" extension). HHVM can also be used together | |
211 | with a FastCGI-based webserver, and work is in progress to make HHVM | |
212 | work smoothly with Apache. | |
65446f6c | 213 | |
2347c3ae ER |
214 | %package fcgi |
215 | Summary: Init script to start HHVM as FastCGI daemon | |
216 | Group: Development/Languages/PHP | |
217 | Requires: %{name} = %{version}-%{release} | |
218 | Provides: php(fcgi) | |
219 | Requires(post,preun): /sbin/chkconfig | |
220 | Requires: rc-scripts | |
221 | ||
222 | %description fcgi | |
223 | Init script to start HHVM as FastCGI daemon | |
224 | ||
3234b364 ER |
225 | %package program |
226 | Summary: /usr/bin/php symlink | |
227 | Summary(pl.UTF-8): Dowiązanie symboliczne /usr/bin/php | |
228 | Group: Development/Languages/PHP | |
229 | Requires: %{name} = %{version}-%{release} | |
230 | Obsoletes: /usr/bin/php | |
231 | ||
232 | %description program | |
233 | Package providing /usr/bin/php symlink to PHP CLI. | |
234 | ||
235 | %description program -l pl.UTF-8 | |
236 | Pakiet dostarczający dowiązanie symboliczne /usr/bin/php do PHP CLI. | |
237 | ||
c6264399 ER |
238 | %package devel |
239 | Summary: Files for HHVM modules development | |
240 | Group: Development/Languages/PHP | |
241 | URL: https://github.com/facebook/hhvm/wiki/Extension-API | |
f6ea7eef | 242 | Requires: boost-devel >= 1.50 |
c6264399 | 243 | Requires: cmake >= 2.8.5 |
f6ea7eef | 244 | Requires: glog-devel >= 0.3.2 |
e7779ee6 | 245 | Requires: libstdc++-devel >= 6:4.3 |
f6ea7eef ER |
246 | Requires: tbb-devel >= 4.0.6000 |
247 | Requires: zlib-devel | |
c6264399 ER |
248 | |
249 | %description devel | |
250 | HHVM provides a set of APIs for adding built-in functionality to the | |
251 | runtime either by way of pure PHP code, or a combination of PHP and | |
252 | C++. | |
253 | ||
65446f6c | 254 | %prep |
20de90ba | 255 | %setup -q -n %{name}-HHVM-%{version} -a2 -a3 |
991b3017 | 256 | |
745db304 ER |
257 | # handle git submodules |
258 | rmdir third-party | |
259 | mv hhvm-third-party-* third-party | |
260 | rmdir third-party/folly/src | |
261 | mv folly-* third-party/folly/src | |
f8472382 | 262 | |
449902dc | 263 | %patch1 -p1 |
e66c75f6 | 264 | %patch2 -p1 |
3e79618f | 265 | %patch3 -p1 |
142dde19 | 266 | %patch4 -p1 |
52bf161a | 267 | #%patch5 -p1 |
c77f551c | 268 | %patch6 -p1 |
b343400f | 269 | %patch7 -p1 |
83ff8dfd | 270 | %patch8 -p1 |
199131a5 | 271 | %patch9 -p1 |
aa8f72e5 | 272 | %patch10 -p1 |
45805ee5 | 273 | %patch11 -p1 |
ed14b19f | 274 | |
c6264399 | 275 | # prefer ones from system |
20e9b450 | 276 | rm CMake/FindBISON.cmake |
20e9b450 | 277 | rm CMake/FindFLEX.cmake |
b17fa9dd | 278 | rm CMake/FindFreetype.cmake |
ed14b19f | 279 | |
40280c0c ER |
280 | # ensure system libs get used |
281 | cd third-party | |
282 | rm -r pcre \ | |
3889faa2 | 283 | %{?with_system_sqlite:libsqlite3} \ |
40280c0c ER |
284 | %{?with_system_lz4:lz4} \ |
285 | %{?with_system_dconv:double-conversion} \ | |
286 | %{?with_system_fastlz:fastlz} \ | |
287 | %{?with_system_libafdt:libafdt} \ | |
c19fc9d9 | 288 | %{?with_system_libzip:libzip} \ |
40280c0c ER |
289 | %{nil} |
290 | ||
ac2930bc | 291 | %build |
c171e0ff ER |
292 | # also in: hphp/tools/hphpize/hphpize.cmake |
293 | API=$(awk '/#define HHVM_API_VERSION/{v=$3; sub(/L$/, "", v); print v}' hphp/runtime/ext/extension.h) | |
294 | ||
295 | if [ $API != %{hhvm_api_version} ]; then | |
296 | echo "Set %%define hhvm_api_version to $API and re-run." | |
297 | exit 1 | |
298 | fi | |
299 | ||
dd925321 | 300 | export CXXFLAGS="%{rpmcxxflags} -fpermissive -I/usr/include/lz4" |
32057e92 | 301 | |
20de90ba ER |
302 | # out of dir build broken (can't find it's tools, or headers) |
303 | #install -d build | |
304 | #cd build | |
449902dc ER |
305 | |
306 | # handle cmake & ccache | |
8dff2648 | 307 | # http://stackoverflow.com/questions/1815688/how-to-use-ccache-with-cmake |
449902dc ER |
308 | # ASM fix: http://lists.busybox.net/pipermail/buildroot/2013-March/069436.html |
309 | if [[ "%{__cc}" = *ccache* ]]; then | |
310 | cc="%{__cc}" | |
311 | cxx="%{__cxx}" | |
312 | ccache=" | |
313 | -DCMAKE_C_COMPILER="ccache" -DCMAKE_C_COMPILER_ARG1="${cc#ccache }" \ | |
314 | -DCMAKE_CXX_COMPILER="ccache" -DCMAKE_CXX_COMPILER_ARG1="${cxx#ccache }" \ | |
315 | -DCMAKE_ASM_COMPILER="${cc#ccache }" \ | |
316 | " | |
317 | fi | |
e883c14f | 318 | |
ef07ca95 | 319 | %cmake \ |
449902dc | 320 | $ccache \ |
ef07ca95 | 321 | -DCMAKE_PREFIX_PATH=%{_prefix} \ |
6135817a | 322 | -DHHVM_DYNAMIC_EXTENSION_DIR=%{hhvm_extensiondir} \ |
a0922d01 | 323 | -DUSE_JEMALLOC=OFF \ |
be373886 | 324 | -DUSE_TCMALLOC=OFF \ |
97e4fa4e | 325 | -DTEST_BIN=OFF \ |
2e505d70 | 326 | -DENABLE_COTIRE=%{!?with_cotire:OFF}%{?with_cotire:ON} \ |
20de90ba | 327 | . |
ac3c6624 | 328 | |
c513fdf6 ER |
329 | # setup COMPILER_ID/HHVM_REPO_SCHEMA so it doesn't look it up from our package git repo |
330 | # see hphp/util/generate-buildinfo.sh | |
ac3c6624 | 331 | export COMPILER_ID=HHVM-%{version}-%{release}-g%{githash} |
c513fdf6 ER |
332 | export HHVM_REPO_SCHEMA=$(date +%N_%s) |
333 | ||
ac2930bc ER |
334 | %{__make} |
335 | ||
65446f6c | 336 | %install |
745db304 ER |
337 | # make install relinks all outputs which is very slow, |
338 | # so to speedup rebuild, use timestamps to record states | |
339 | #test %{_specdir}/%{name}.spec -nt makeinstall.stamp && %{__rm} -f makeinstall.stamp | |
340 | if [ ! -f makeinstall.stamp -o ! -d $RPM_BUILD_ROOT ]; then | |
341 | rm -rf makeinstall.stamp installed.stamp $RPM_BUILD_ROOT | |
8d9f731f | 342 | |
8dff2648 | 343 | %{__make} install \ |
745db304 ER |
344 | DESTDIR=$RPM_BUILD_ROOT |
345 | ||
346 | touch makeinstall.stamp | |
347 | fi | |
348 | ||
349 | rm -rf $RPM_BUILD_ROOT%{_docdir} | |
350 | if [ ! -f installed.stamp ]; then | |
745db304 | 351 | # begin install block |
9c2504b3 | 352 | |
883526f7 ER |
353 | # fix broken cmake rules |
354 | # TODO: fix cmake rules | |
355 | if [ -d $RPM_BUILD_ROOT%{_prefix}/usr ]; then | |
356 | cp -a $RPM_BUILD_ROOT%{_prefix}/usr/* $RPM_BUILD_ROOT%{_prefix} | |
357 | rm -rf $RPM_BUILD_ROOT%{_prefix}/usr | |
358 | fi | |
359 | ||
073742e0 | 360 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name},%{_libdir}/%{name}} |
6135817a | 361 | cp -p %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/%{name} |
c3ecb766 | 362 | |
3234b364 ER |
363 | ln -s hhvm $RPM_BUILD_ROOT%{_bindir}/php |
364 | ln -s hhvm $RPM_BUILD_ROOT%{_bindir}/hphp | |
365 | ||
44fcba3e | 366 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/hdf |
17307be4 | 367 | cp -p hphp/doc/mime.hdf $RPM_BUILD_ROOT%{_datadir}/%{name}/hdf/static.mime-types.hdf |
44fcba3e | 368 | |
2347c3ae ER |
369 | # install fastcgi initscript |
370 | install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d} | |
6135817a ER |
371 | cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-fcgi |
372 | cp -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/%{name}-fcgi | |
2347c3ae | 373 | |
ac3c6624 ER |
374 | install -p hphp/hack/bin/hh_{server,client} $RPM_BUILD_ROOT%{_bindir} |
375 | ||
745db304 ER |
376 | # end of install block |
377 | touch installed.stamp; fi | |
f6ea7eef | 378 | |
65446f6c ER |
379 | %clean |
380 | rm -rf $RPM_BUILD_ROOT | |
381 | ||
8d9f731f ER |
382 | %post -p /sbin/ldconfig |
383 | %postun -p /sbin/ldconfig | |
384 | ||
2347c3ae ER |
385 | %post fcgi |
386 | /sbin/chkconfig --add %{name}-fcgi | |
387 | %service %{name}-fcgi restart | |
388 | ||
389 | %preun fcgi | |
390 | if [ "$1" = "0" ]; then | |
391 | %service -q %{name}-fcgi stop | |
392 | /sbin/chkconfig --del %{name}-fcgi | |
393 | fi | |
394 | ||
65446f6c ER |
395 | %files |
396 | %defattr(644,root,root,755) | |
1c0ae000 | 397 | %doc README.md hphp/NEWS |
349ae084 | 398 | %dir %{_sysconfdir}/%{name} |
c3ecb766 | 399 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/php.ini |
8d9f731f | 400 | %attr(755,root,root) %{_bindir}/hhvm |
3234b364 | 401 | %attr(755,root,root) %{_bindir}/hphp |
ac3c6624 ER |
402 | %attr(755,root,root) %{_bindir}/hh_client |
403 | %attr(755,root,root) %{_bindir}/hh_server | |
44fcba3e ER |
404 | |
405 | %dir %{_datadir}/%{name} | |
406 | %dir %{_datadir}/%{name}/hdf | |
407 | %{_datadir}/%{name}/hdf/static.mime-types.hdf | |
3234b364 | 408 | |
073742e0 ER |
409 | # dir for extensions |
410 | %dir %{_libdir}/%{name} | |
411 | ||
2347c3ae ER |
412 | %files fcgi |
413 | %defattr(644,root,root,755) | |
414 | %attr(754,root,root) /etc/rc.d/init.d/%{name}-fcgi | |
415 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}-fcgi | |
416 | ||
3234b364 ER |
417 | %files program |
418 | %defattr(644,root,root,755) | |
419 | %attr(755,root,root) %{_bindir}/php | |
c6264399 ER |
420 | |
421 | %files devel | |
422 | %defattr(644,root,root,755) | |
423 | %attr(755,root,root) %{_bindir}/hphpize | |
424 | %{_includedir}/hphp | |
e35a4289 ER |
425 | %dir %{_libdir}/hhvm |
426 | %{_libdir}/hhvm/CMake | |
427 | %{_libdir}/hhvm/hphpize |