add php ext rpm spec file

pull/48/head
liaozaixue 2014-08-19 16:47:08 +08:00
parent 8a9ec249fa
commit 40828d147b
1 changed files with 62 additions and 0 deletions

View File

@ -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 <liaozaixue@yongche.com>
- first RPM release (1.0)