add php ext rpm spec file
parent
8a9ec249fa
commit
40828d147b
|
|
@ -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)
|
||||
Loading…
Reference in New Issue