rpms/php-pear-Benchmark/devel php-pear-Benchmark.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Christopher Stone (xulchris)
fedora-extras-commits at redhat.com
Fri Sep 8 01:25:30 UTC 2006
Author: xulchris
Update of /cvs/extras/rpms/php-pear-Benchmark/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv5174/devel
Modified Files:
.cvsignore sources
Added Files:
php-pear-Benchmark.spec
Log Message:
auto-import php-pear-Benchmark-1.2.6-1 on branch devel from php-pear-Benchmark-1.2.6-1.src.rpm
--- NEW FILE php-pear-Benchmark.spec ---
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
%define ClassName Benchmark
Name: php-pear-Benchmark
Version: 1.2.6
Release: 1%{?dist}
Summary: Framework to benchmark PHP scripts or function calls
Group: Development/Libraries
License: BSD
URL: http://pear.php.net/package/Benchmark
Source0: http://pear.php.net/get/%{ClassName}-%{version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: php-pear >= 1:1.4.9-1.2
Requires: php-pear(PEAR)
Requires(hint): php-bcmath
Requires(post): %{__pear}
Requires(postun): %{__pear}
Provides: php-pear(%{ClassName}) = %{version}
%description
Framework to benchmark PHP scripts or function calls.
%prep
%setup -q -c
[ -f package2.xml ] || mv package.xml package2.xml
mv package2.xml %{ClassName}-%{version}/%{ClassName}.xml
cd %{ClassName}-%{version}
%build
cd %{ClassName}-%{version}
# Empty build section, most likely nothing required.
%install
cd %{ClassName}-%{version}
rm -rf $RPM_BUILD_ROOT docdir
%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{ClassName}.xml
# Move documentation
mkdir -p docdir
mv $RPM_BUILD_ROOT%{pear_docdir}/* docdir
# Clean up unnecessary files
rm -rf $RPM_BUILD_ROOT%{pear_phpdir}/.??*
# Install XML package description
mkdir -p $RPM_BUILD_ROOT%{pear_xmldir}
install -pm 644 %{ClassName}.xml $RPM_BUILD_ROOT%{pear_xmldir}
%clean
rm -rf $RPM_BUILD_ROOT
%post
%{__pear} install --nodeps --soft --force --register-only \
%{pear_xmldir}/%{ClassName}.xml >/dev/null ||:
%postun
if [ "$1" -eq "0" ]; then
%{__pear} uninstall --nodeps --ignore-errors --register-only \
%{ClassName} >/dev/null ||:
fi
%files
%defattr(-,root,root,-)
%doc %{ClassName}-%{version}/docdir/%{ClassName}/*
%{pear_xmldir}/%{ClassName}.xml
%{pear_phpdir}/%{ClassName}
%changelog
* Mon Jun 26 2006 Christopher Stone <chris.stone at gmail.com> 1.2.6-1
- Initial Release
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/php-pear-Benchmark/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 8 Sep 2006 01:25:07 -0000 1.1
+++ .cvsignore 8 Sep 2006 01:25:30 -0000 1.2
@@ -0,0 +1 @@
+Benchmark-1.2.6.tgz
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/php-pear-Benchmark/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 8 Sep 2006 01:25:07 -0000 1.1
+++ sources 8 Sep 2006 01:25:30 -0000 1.2
@@ -0,0 +1 @@
+b130c602f82ee07af4021a59b6359003 Benchmark-1.2.6.tgz
More information about the fedora-extras-commits
mailing list