modify php_client/fastdfs_client.spec.in

pull/83/head
yuqing 2016-12-08 09:14:39 +08:00
parent f1e58515ec
commit 51ae69cb3b
1 changed files with 3 additions and 15 deletions

View File

@ -6,15 +6,12 @@ Release: 1%{?dist}
Summary: The php extension of fastdfs client Summary: The php extension of fastdfs client
License: GPL License: GPL
Group: Arch/Tech Group: Arch/Tech
URL: http://perso.orange.fr/sebastien.godard/ URL: https://github.com/happyfish100/fastdfs
Source: http://perso.orange.fr/sebastien.godard/%{name}-%{version}.tar.gz Source: https://github.com/happyfish100/fastdfs/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
#Requires: /sbin/chkconfig BuildRequires: libfdfsclient-devel
#Requires: sh-utils textutils grep fileutils /etc/cron.d
#BuildRequires: libfdfsclient-devel
#Requires: %__cp %__mv %__chmod %__grep %__mkdir %__install %__id
Requires: libfdfsclient Requires: libfdfsclient
%description %description
@ -24,9 +21,6 @@ This package provides the php extension for fastdfs client
%setup -q %setup -q
%build %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 phpize
%configure %configure
make make
@ -39,12 +33,6 @@ mkdir -p %{buildroot}%{php_inidir}/php.d
cp -f .libs/fastdfs_client.so %{buildroot}%{php_extdir} cp -f .libs/fastdfs_client.so %{buildroot}%{php_extdir}
cp -f fastdfs_client.ini %{buildroot}%{php_inidir}/php.d/fastdfs_client.ini.sample cp -f fastdfs_client.ini %{buildroot}%{php_inidir}/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 %post
%preun %preun