Name: fastdfs_client Version: 5.0.4 Release: 1%{?dist} Summary: The php extension of fastdfs 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: libfdfsclient-devel #Requires: %__cp %__mv %__chmod %__grep %__mkdir %__install %__id Requires: libfdfsclient %description This package provides the php extension for fastdfs 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/fastdfs_client.ini.sample #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)