summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--php-pear-OLE.spec29
2 files changed, 20 insertions, 13 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..13af741
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,4 @@
+SRCDIR := $(shell pwd)
+NAME := $(shell basename $(SRCDIR))
+include ../../../common/Makefile
+
diff --git a/php-pear-OLE.spec b/php-pear-OLE.spec
index 7561fd8..c2f91b3 100644
--- a/php-pear-OLE.spec
+++ b/php-pear-OLE.spec
@@ -1,22 +1,26 @@
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
-%define pear_name OLE
+%global pear_name OLE
+%global prever RC2
Name: php-pear-OLE
Version: 1.0.0
-Release: 0.7.rc1%{?dist}
+Release: %{?prever:0.}8%{?prever:.%{prever}}%{?dist}
Summary: Package for reading and writing OLE containers
Group: Development/Libraries
License: PHP
URL: http://pear.php.net/package/OLE
-Source0: http://pear.php.net/get/%{pear_name}-1.0.0RC1.tgz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Source0: http://pear.php.net/get/%{pear_name}-1.0.0%{?prever}.tgz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: php-pear >= 1:1.4.9-1.2
+
+Requires: php-date
Requires: php-pear(PEAR)
Requires(post): %{__pear}
Requires(postun): %{__pear}
+
Provides: php-pear(%{pear_name}) = %{version}
@@ -28,22 +32,20 @@ Embedding) compound documents. This format is used as container for Excel
%prep
%setup -q -c
[ -f package2.xml ] || mv package.xml package2.xml
-mv package2.xml %{pear_name}-%{version}RC1/%{name}.xml
-cd %{pear_name}-%{version}RC1
+mv package2.xml %{pear_name}-%{version}%{?prever}/%{name}.xml
+cd %{pear_name}-%{version}%{?prever}
%build
-cd %{pear_name}-%{version}RC1
+cd %{pear_name}-%{version}%{?prever}
# Empty build section, most likely nothing required.
%install
-cd %{pear_name}-%{version}RC1
-rm -rf $RPM_BUILD_ROOT docdir
+rm -rf $RPM_BUILD_ROOT
+cd %{pear_name}-%{version}%{?prever}
%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{name}.xml
-
-
# Clean up unnecessary files
rm -rf $RPM_BUILD_ROOT%{pear_phpdir}/.??*
@@ -74,9 +76,10 @@ fi
%{pear_phpdir}/OLE.php
-
-
%changelog
+* Mon Aug 06 2012 Remi Collet <RPMS@FamilleCollet.com> - 1.0.0-0.8.RC2
+- update to 1.0.0RC2 for remi repo
+
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-0.7.rc1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild