summaryrefslogtreecommitdiff
path: root/pear
diff options
context:
space:
mode:
authorGunnar Wrobel <wrobel@pardus.de>2008-09-10 10:57:01 (GMT)
committerGunnar Wrobel <wrobel@pardus.de>2008-09-10 10:57:01 (GMT)
commit184a9a95ced19681fe4777180aa451d95e5a9967 (patch)
treebc7ea692038f8bb9a5834ffc83b053a039e80e87 /pear
parent0023e71b2df94b9d2ee2b878bb962b76baa4eab7 (diff)
downloadserver-184a9a95ced19681fe4777180aa451d95e5a9967.tar.gz
Use some simplifications we already used in Kolab_Format.
Diffstat (limited to 'pear')
-rw-r--r--pear/Horde_Browser/Horde_Browser.spec12
-rw-r--r--pear/Horde_Browser/Makefile8
-rw-r--r--pear/Horde_DOM/Horde_DOM.spec12
-rw-r--r--pear/Horde_DOM/Makefile8
-rw-r--r--pear/Horde_NLS/Horde_NLS.spec12
-rw-r--r--pear/Horde_NLS/Makefile8
-rw-r--r--pear/Horde_Util/Horde_Util.spec12
-rw-r--r--pear/Horde_Util/Makefile8
8 files changed, 32 insertions, 48 deletions
diff --git a/pear/Horde_Browser/Horde_Browser.spec b/pear/Horde_Browser/Horde_Browser.spec
index 26766fa..3c4d988 100644
--- a/pear/Horde_Browser/Horde_Browser.spec
+++ b/pear/Horde_Browser/Horde_Browser.spec
@@ -1,13 +1,12 @@
# Variables
-%define V_pear_name Horde_Browser
-%define V_package %{V_pear_name}
+%define V_package Horde_Browser
%define V_version 0.0.2
%define V_release 1
# Package Information
Name: %{V_package}
Summary: Horde Browser API
-URL: http://pear.php.net/package/%{V_pear_name}
+URL: http://pear.horde.org/index.php?package=%{V_package}
Packager: Gunnar Wrobel <wrobel@pardus.de> (p@rdus)
Version: %{V_version}
Release: %{V_release}
@@ -16,7 +15,7 @@ Group: Development/Libraries
Distribution: OpenPKG
# List of Sources
-Source: http://pear.horde.org/get/%{V_pear_name}-%{V_version}.tgz
+Source: http://pear.horde.org/get/%{V_package}-%{V_version}.tgz
# Build Info
Prefix: %{l_prefix}
@@ -28,7 +27,6 @@ BuildPreReq: php, php::with_pear = yes
BuildPreReq: PEAR-Horde-Channel
PreReq: OpenPKG, openpkg >= 20070603
PreReq: php, php::with_pear = yes
-PreReq: PEAR-Horde-Channel
PreReq: Horde_Util
%description
@@ -36,14 +34,14 @@ The Horde_Browser:: class provides an API for getting information
about the current users browser and its capabilities.
%prep
- %setup -n %{V_pear_name}-%{V_version}
+ %setup -n %{V_package}-%{V_version}
%build
%install
env PHP_PEAR_PHP_BIN="%{l_prefix}/bin/php -d safe_mode=off -d memory_limit=40M" \
PHP_PEAR_CACHE_DIR="/tmp/pear/cache" \
- %{l_prefix}/bin/pear install --offline --force --nodeps -P $RPM_BUILD_ROOT $RPM_SOURCE_DIR/%{V_pear_name}-%{V_version}.tgz
+ %{l_prefix}/bin/pear install --offline --force --nodeps -P $RPM_BUILD_ROOT $RPM_SOURCE_DIR/%{V_package}-%{V_version}.tgz
rm -rf $RPM_BUILD_ROOT/%{l_prefix}/lib/php/{.filemap,.lock,.channels,.depdb,.depdblock}
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
diff --git a/pear/Horde_Browser/Makefile b/pear/Horde_Browser/Makefile
index d272895..0cb4ffc 100644
--- a/pear/Horde_Browser/Makefile
+++ b/pear/Horde_Browser/Makefile
@@ -1,5 +1,4 @@
-PEAR_NAME = $(shell grep "%define[ ]*V_pear_name" *.spec | sed -e "s/.*V_pear_name \([A-Za-z\-\_]*\).*/\1/")
-PACKAGE = $(PEAR_NAME)
+PACKAGE = $(shell grep "%define[ ]*V_package" *.spec | sed -e "s/.*V_package \([A-Za-z\-\_]*\).*/\1/")
VERSION = $(shell grep "%define[ ]*V_version" *.spec | sed -e "s/.*V_version\s*\([0-9.]*\).*/\1/")
RELEASE = $(shell grep "%define[ ]*V_release" *.spec | sed -e "s/.*V_release\s*\([0-9]*\).*/\1/")
@@ -16,7 +15,7 @@ ifeq "x$(KOLABRPMTMP)" "x"
KOLABRPMTMP = $(HOME)/RPM/TMP
endif
-SOURCE_0=http://pear.horde.org/get/$(PEAR_NAME)-$(VERSION).tgz
+SOURCE_0=http://pear.horde.org/get/$(PACKAGE)-$(VERSION).tgz
.PHONY: all
all: $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm
@@ -27,8 +26,7 @@ dist: all
.PHONY: clean
clean:
- rm -rf /kolab/RPM/TMP/$(PEAR_NAME)*
- rm -rf /kolab/RPM/TMP/$(PACKAGE)
+ rm -rf /kolab/RPM/TMP/$(PACKAGE)*
rm -rf $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm
rm -rf *~
diff --git a/pear/Horde_DOM/Horde_DOM.spec b/pear/Horde_DOM/Horde_DOM.spec
index 6c07174..f95847b 100644
--- a/pear/Horde_DOM/Horde_DOM.spec
+++ b/pear/Horde_DOM/Horde_DOM.spec
@@ -1,13 +1,12 @@
# Variables
-%define V_pear_name Horde_DOM
-%define V_package %{V_pear_name}
+%define V_package Horde_DOM
%define V_version 0.1.0
%define V_release 1
# Package Information
Name: %{V_package}
Summary: Wrapper classes for PHP4 domxml compatibility using PHP5s dom functions.
-URL: http://pear.php.net/package/%{V_pear_name}
+URL: http://pear.horde.org/index.php?package=%{V_package}
Packager: Gunnar Wrobel <wrobel@pardus.de> (p@rdus)
Version: %{V_version}
Release: %{V_release}
@@ -16,7 +15,7 @@ Group: Development/Libraries
Distribution: OpenPKG
# List of Sources
-Source: http://pear.horde.org/get/%{V_pear_name}-%{V_version}.tgz
+Source: http://pear.horde.org/get/%{V_package}-%{V_version}.tgz
# Build Info
Prefix: %{l_prefix}
@@ -28,21 +27,20 @@ BuildPreReq: php, php::with_pear = yes
BuildPreReq: PEAR-Horde-Channel
PreReq: OpenPKG, openpkg >= 20070603
PreReq: php, php::with_pear = yes
-PreReq: PEAR-Horde-Channel
%description
These classes allow the use of code written for PHP4's domxml
implementation to work using PHP5's dom implementation.
%prep
- %setup -n %{V_pear_name}-%{V_version}
+ %setup -n %{V_package}-%{V_version}
%build
%install
env PHP_PEAR_PHP_BIN="%{l_prefix}/bin/php -d safe_mode=off -d memory_limit=40M" \
PHP_PEAR_CACHE_DIR="/tmp/pear/cache" \
- %{l_prefix}/bin/pear install --offline --force --nodeps -P $RPM_BUILD_ROOT $RPM_SOURCE_DIR/%{V_pear_name}-%{V_version}.tgz
+ %{l_prefix}/bin/pear install --offline --force --nodeps -P $RPM_BUILD_ROOT $RPM_SOURCE_DIR/%{V_package}-%{V_version}.tgz
rm -rf $RPM_BUILD_ROOT/%{l_prefix}/lib/php/{.filemap,.lock,.channels,.depdb,.depdblock}
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
diff --git a/pear/Horde_DOM/Makefile b/pear/Horde_DOM/Makefile
index d272895..0cb4ffc 100644
--- a/pear/Horde_DOM/Makefile
+++ b/pear/Horde_DOM/Makefile
@@ -1,5 +1,4 @@
-PEAR_NAME = $(shell grep "%define[ ]*V_pear_name" *.spec | sed -e "s/.*V_pear_name \([A-Za-z\-\_]*\).*/\1/")
-PACKAGE = $(PEAR_NAME)
+PACKAGE = $(shell grep "%define[ ]*V_package" *.spec | sed -e "s/.*V_package \([A-Za-z\-\_]*\).*/\1/")
VERSION = $(shell grep "%define[ ]*V_version" *.spec | sed -e "s/.*V_version\s*\([0-9.]*\).*/\1/")
RELEASE = $(shell grep "%define[ ]*V_release" *.spec | sed -e "s/.*V_release\s*\([0-9]*\).*/\1/")
@@ -16,7 +15,7 @@ ifeq "x$(KOLABRPMTMP)" "x"
KOLABRPMTMP = $(HOME)/RPM/TMP
endif
-SOURCE_0=http://pear.horde.org/get/$(PEAR_NAME)-$(VERSION).tgz
+SOURCE_0=http://pear.horde.org/get/$(PACKAGE)-$(VERSION).tgz
.PHONY: all
all: $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm
@@ -27,8 +26,7 @@ dist: all
.PHONY: clean
clean:
- rm -rf /kolab/RPM/TMP/$(PEAR_NAME)*
- rm -rf /kolab/RPM/TMP/$(PACKAGE)
+ rm -rf /kolab/RPM/TMP/$(PACKAGE)*
rm -rf $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm
rm -rf *~
diff --git a/pear/Horde_NLS/Horde_NLS.spec b/pear/Horde_NLS/Horde_NLS.spec
index e1d1782..6a96ac7 100644
--- a/pear/Horde_NLS/Horde_NLS.spec
+++ b/pear/Horde_NLS/Horde_NLS.spec
@@ -1,13 +1,12 @@
# Variables
-%define V_pear_name Horde_NLS
-%define V_package %{V_pear_name}
+%define V_package Horde_NLS
%define V_version 0.0.2
%define V_release 1
# Package Information
Name: %{V_package}
Summary: Localization package.
-URL: http://pear.php.net/package/%{V_pear_name}
+URL: http://pear.horde.org/index.php?package=%{V_package}
Packager: Gunnar Wrobel <wrobel@pardus.de> (p@rdus)
Version: %{V_version}
Release: %{V_release}
@@ -16,7 +15,7 @@ Group: Development/Libraries
Distribution: OpenPKG
# List of Sources
-Source: http://pear.horde.org/get/%{V_pear_name}-%{V_version}.tgz
+Source: http://pear.horde.org/get/%{V_package}-%{V_version}.tgz
# Build Info
Prefix: %{l_prefix}
@@ -28,7 +27,6 @@ BuildPreReq: php, php::with_pear = yes
BuildPreReq: PEAR-Horde-Channel
PreReq: OpenPKG, openpkg >= 20070603
PreReq: php, php::with_pear = yes
-PreReq: PEAR-Horde-Channel
PreReq: Horde_Browser
PreReq: Horde_Util
@@ -36,14 +34,14 @@ PreReq: Horde_Util
Localization package.
%prep
- %setup -n %{V_pear_name}-%{V_version}
+ %setup -n %{V_package}-%{V_version}
%build
%install
env PHP_PEAR_PHP_BIN="%{l_prefix}/bin/php -d safe_mode=off -d memory_limit=40M" \
PHP_PEAR_CACHE_DIR="/tmp/pear/cache" \
- %{l_prefix}/bin/pear install --offline --force --nodeps -P $RPM_BUILD_ROOT $RPM_SOURCE_DIR/%{V_pear_name}-%{V_version}.tgz
+ %{l_prefix}/bin/pear install --offline --force --nodeps -P $RPM_BUILD_ROOT $RPM_SOURCE_DIR/%{V_package}-%{V_version}.tgz
rm -rf $RPM_BUILD_ROOT/%{l_prefix}/lib/php/{.filemap,.lock,.channels,.depdb,.depdblock}
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
diff --git a/pear/Horde_NLS/Makefile b/pear/Horde_NLS/Makefile
index d272895..0cb4ffc 100644
--- a/pear/Horde_NLS/Makefile
+++ b/pear/Horde_NLS/Makefile
@@ -1,5 +1,4 @@
-PEAR_NAME = $(shell grep "%define[ ]*V_pear_name" *.spec | sed -e "s/.*V_pear_name \([A-Za-z\-\_]*\).*/\1/")
-PACKAGE = $(PEAR_NAME)
+PACKAGE = $(shell grep "%define[ ]*V_package" *.spec | sed -e "s/.*V_package \([A-Za-z\-\_]*\).*/\1/")
VERSION = $(shell grep "%define[ ]*V_version" *.spec | sed -e "s/.*V_version\s*\([0-9.]*\).*/\1/")
RELEASE = $(shell grep "%define[ ]*V_release" *.spec | sed -e "s/.*V_release\s*\([0-9]*\).*/\1/")
@@ -16,7 +15,7 @@ ifeq "x$(KOLABRPMTMP)" "x"
KOLABRPMTMP = $(HOME)/RPM/TMP
endif
-SOURCE_0=http://pear.horde.org/get/$(PEAR_NAME)-$(VERSION).tgz
+SOURCE_0=http://pear.horde.org/get/$(PACKAGE)-$(VERSION).tgz
.PHONY: all
all: $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm
@@ -27,8 +26,7 @@ dist: all
.PHONY: clean
clean:
- rm -rf /kolab/RPM/TMP/$(PEAR_NAME)*
- rm -rf /kolab/RPM/TMP/$(PACKAGE)
+ rm -rf /kolab/RPM/TMP/$(PACKAGE)*
rm -rf $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm
rm -rf *~
diff --git a/pear/Horde_Util/Horde_Util.spec b/pear/Horde_Util/Horde_Util.spec
index ee11c4a..aa04adc 100644
--- a/pear/Horde_Util/Horde_Util.spec
+++ b/pear/Horde_Util/Horde_Util.spec
@@ -1,13 +1,12 @@
# Variables
-%define V_pear_name Horde_Util
-%define V_package %{V_pear_name}
+%define V_package Horde_Util
%define V_version 0.0.2
%define V_release 1
# Package Information
Name: %{V_package}
Summary: Horde Utility Libraries
-URL: http://pear.php.net/package/%{V_pear_name}
+URL: http://pear.horde.org/index.php?package=%{V_package}
Packager: Gunnar Wrobel <wrobel@pardus.de> (p@rdus)
Version: %{V_version}
Release: %{V_release}
@@ -16,7 +15,7 @@ Group: Development/Libraries
Distribution: OpenPKG
# List of Sources
-Source: http://pear.horde.org/get/%{V_pear_name}-%{V_version}.tgz
+Source: http://pear.horde.org/get/%{V_package}-%{V_version}.tgz
# Build Info
Prefix: %{l_prefix}
@@ -28,20 +27,19 @@ BuildPreReq: php, php::with_pear = yes
BuildPreReq: PEAR-Horde-Channel
PreReq: OpenPKG, openpkg >= 20070603
PreReq: php, php::with_pear = yes
-PreReq: PEAR-Horde-Channel
%description
These classes provide functionality useful for all kind of applications.
%prep
- %setup -n %{V_pear_name}-%{V_version}
+ %setup -n %{V_package}-%{V_version}
%build
%install
env PHP_PEAR_PHP_BIN="%{l_prefix}/bin/php -d safe_mode=off -d memory_limit=40M" \
PHP_PEAR_CACHE_DIR="/tmp/pear/cache" \
- %{l_prefix}/bin/pear install --offline --force --nodeps -P $RPM_BUILD_ROOT $RPM_SOURCE_DIR/%{V_pear_name}-%{V_version}.tgz
+ %{l_prefix}/bin/pear install --offline --force --nodeps -P $RPM_BUILD_ROOT $RPM_SOURCE_DIR/%{V_package}-%{V_version}.tgz
rm -rf $RPM_BUILD_ROOT/%{l_prefix}/lib/php/{.filemap,.lock,.channels,.depdb,.depdblock}
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
diff --git a/pear/Horde_Util/Makefile b/pear/Horde_Util/Makefile
index d272895..0cb4ffc 100644
--- a/pear/Horde_Util/Makefile
+++ b/pear/Horde_Util/Makefile
@@ -1,5 +1,4 @@
-PEAR_NAME = $(shell grep "%define[ ]*V_pear_name" *.spec | sed -e "s/.*V_pear_name \([A-Za-z\-\_]*\).*/\1/")
-PACKAGE = $(PEAR_NAME)
+PACKAGE = $(shell grep "%define[ ]*V_package" *.spec | sed -e "s/.*V_package \([A-Za-z\-\_]*\).*/\1/")
VERSION = $(shell grep "%define[ ]*V_version" *.spec | sed -e "s/.*V_version\s*\([0-9.]*\).*/\1/")
RELEASE = $(shell grep "%define[ ]*V_release" *.spec | sed -e "s/.*V_release\s*\([0-9]*\).*/\1/")
@@ -16,7 +15,7 @@ ifeq "x$(KOLABRPMTMP)" "x"
KOLABRPMTMP = $(HOME)/RPM/TMP
endif
-SOURCE_0=http://pear.horde.org/get/$(PEAR_NAME)-$(VERSION).tgz
+SOURCE_0=http://pear.horde.org/get/$(PACKAGE)-$(VERSION).tgz
.PHONY: all
all: $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm
@@ -27,8 +26,7 @@ dist: all
.PHONY: clean
clean:
- rm -rf /kolab/RPM/TMP/$(PEAR_NAME)*
- rm -rf /kolab/RPM/TMP/$(PACKAGE)
+ rm -rf /kolab/RPM/TMP/$(PACKAGE)*
rm -rf $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm
rm -rf *~