Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
php5
:
extensions
>
php5-lzf
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 2
[-]
[+]
Changed
php5-lzf.spec
@@ -1,27 +1,73 @@ -Name: mydummy -Version: 1.0 -Release: 1 -License: GPL -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: replace_me_with_required_packages -Group: Dummy -Summary: My Dummy Package +# norootforbuild +%define pkg_name LZF +# +Name: php5-lzf +Version: 1.4.0 +Release: 0 +# +License: PHP +Group: Productivity/Networking/Web/Servers +# +BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-build +BuildRequires: liblzf-devel php5-devel +# +URL: http://pecl.php.net/lzf +Source: http://pecl.php.net/package/lzf/%{pkg_name}-%{version}.tgz +Summary: This package handles LZF de/compression. %description -My Dummy Package for testing + + This package handles LZF de/compression. + +Authors: +--------- + + Marcin Gibula %prep +%setup -q -n %{pkg_name}-%{version} + +%{__mkdir} %{name} + %build +/usr/bin/phpize +pushd %{name} + +CFLAGS="%{optflags} -fno-strict-aliasing" +CXXFLAGS="%{optflags} -fno-strict-aliasing" +%if 0%{?suse_version} > 1000 +CFLAGS="$CFLAGS -fstack-protector" +CXXFLAGS="$CXXFLAGS -fstack-protector" +%endif + +export CFLAGS +export CXXFLAGS + +../configure + +%{__make} %{?jobs:-j%jobs} +popd %install -dummydir=$RPM_BUILD_ROOT/usr/lib/mydummy -mkdir -p $dummydir -echo "I was here!" >$dummydir/iwashere + +%makeinstall -C %{name} INSTALL_ROOT=%{buildroot} +%{__mkdir_p} %{buildroot}%{_sysconfdir}/php5/conf.d +echo "; comment out next line to disable lzf extension in php" > %{buildroot}%{_sysconfdir}/php5/conf.d/lzf.ini +echo 'extension = lzf.so' >> %{buildroot}%{_sysconfdir}/php5/conf.d/lzf.ini + %clean -rm -rf "$RPM_BUILD_ROOT" + +%{__rm} -rf %{buildroot} %files -%defattr(-,root,root) -/usr/lib/mydummy/iwashere +%defattr(644,root,root,755) +%{_libdir}/php5/extensions/lzf.so +%config(noreplace) %{_sysconfdir}/php5/conf.d/lzf.ini + +%doc CREDITS + +%changelog -n php5-lzf +* Wed Feb 20 2008 - cs@linux-administrator.com +- very first build
Added
LZF-1.4.tgz
^