From 40828d147bc722ed8ff792000b82daf696479b11 Mon Sep 17 00:00:00 2001 From: liaozaixue Date: Tue, 19 Aug 2014 16:47:08 +0800 Subject: [PATCH] add php ext rpm spec file --- php_client/fastdfs_client.spec.in | 62 +++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 php_client/fastdfs_client.spec.in diff --git a/php_client/fastdfs_client.spec.in b/php_client/fastdfs_client.spec.in new file mode 100644 index 0000000..7bda2a4 --- /dev/null +++ b/php_client/fastdfs_client.spec.in @@ -0,0 +1,62 @@ +Name: fastdfs_client +Version: 5.0.3 +Release: 1%{?dist} +Summary: The php extension of message channel client +License: GPL +Group: Arch/Tech +URL: http://perso.orange.fr/sebastien.godard/ +Source: http://perso.orange.fr/sebastien.godard/%{name}-%{version}.tar.gz + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +#Requires: /sbin/chkconfig +#Requires: sh-utils textutils grep fileutils /etc/cron.d +#BuildRequires: libmcclient-devel +Requires: %__cp %__mv %__chmod %__grep %__mkdir %__install %__id +Requires: libmcclient + +%description +This package provides the php extension for message channel client + +%prep +%setup -q + +%build +# FIXME: I need to fix the upstream Makefile to use LIBDIR et al. properly and +# send the upstream maintainer a patch. +# add DOCDIR to the configure part +phpize +%configure +make + +%install +rm -rf %{buildroot} + +mkdir -p %{buildroot}/usr/lib64/php/modules +mkdir -p %{buildroot}/etc/php.d +cp -f .libs/fastdfs_client.so %{buildroot}/usr/lib64/php/modules/ +cp -f fastdfs_client.ini %{buildroot}/etc/php.d/ + +#make install IGNORE_MAN_GROUP=y DOC_DIR=%{_docdir}/%{name}-%{version} INIT_DIR=%{_initrddir} + +#install -m 0644 sysstat.crond %{buildroot}/%{_sysconfdir}/cron.d/sysstat + +#%find_lang %{name} + +%post + +%preun + +%postun + +%clean +#rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%{_libdir}/php/modules/* +/etc/php.d/* + +%changelog +* Mon Jun 23 2014 Zaixue Liao +- first RPM release (1.0)