summaryrefslogtreecommitdiff
path: root/pear
diff options
context:
space:
mode:
authorGunnar Wrobel <wrobel@pardus.de>2009-02-24 11:57:46 (GMT)
committerGunnar Wrobel <wrobel@pardus.de>2009-02-24 11:57:46 (GMT)
commitae868e453ce56ea451d2c14197a8053e3be197e5 (patch)
tree2ab86245bca0a0a92dfa0954f91fe8b83458c957 /pear
parentc6dd3f1631f19b68333717c2d62a4935d1a685ed (diff)
downloadserver-ae868e453ce56ea451d2c14197a8053e3be197e5.tar.gz
kolab/issue3299, kolab/issue3364, kolab/issue3426, kolab/issue2499, kolab/issue3192.
Diffstat (limited to 'pear')
-rw-r--r--pear/Horde_Notification/.cvsignore1
-rw-r--r--pear/Horde_Notification/ChangeLog4
-rw-r--r--pear/Horde_Notification/Horde_Notification.spec55
-rw-r--r--pear/Horde_Notification/Makefile50
-rw-r--r--pear/Horde_Prefs/.cvsignore1
-rw-r--r--pear/Horde_Prefs/ChangeLog4
-rw-r--r--pear/Horde_Prefs/Horde_Prefs.spec56
-rw-r--r--pear/Horde_Prefs/Makefile50
8 files changed, 221 insertions, 0 deletions
diff --git a/pear/Horde_Notification/.cvsignore b/pear/Horde_Notification/.cvsignore
new file mode 100644
index 0000000..77fcdcb
--- /dev/null
+++ b/pear/Horde_Notification/.cvsignore
@@ -0,0 +1 @@
+*.src.rpm
diff --git a/pear/Horde_Notification/ChangeLog b/pear/Horde_Notification/ChangeLog
new file mode 100644
index 0000000..85e6dab
--- /dev/null
+++ b/pear/Horde_Notification/ChangeLog
@@ -0,0 +1,4 @@
+2009-02-24 Gunnar Wrobel <p@rdus.de>
+
+ * Horde_Notification.spec: Added package to Kolab CVS.
+
diff --git a/pear/Horde_Notification/Horde_Notification.spec b/pear/Horde_Notification/Horde_Notification.spec
new file mode 100644
index 0000000..07487bc
--- /dev/null
+++ b/pear/Horde_Notification/Horde_Notification.spec
@@ -0,0 +1,55 @@
+# Variables
+%define V_package Horde_Notification
+%define V_version 0.0.2
+%define V_release 20090223
+
+# Package Information
+Name: %{V_package}
+Summary: Horde Notification System
+URL: http://pear.horde.org/index.php?package=%{V_package}
+Packager: Gunnar Wrobel <wrobel@pardus.de> (p@rdus)
+Version: %{V_version}
+Release: %{V_release}
+License: LGPL
+Group: Development/Libraries
+Distribution: OpenPKG
+
+# List of Sources
+Source: http://pear.horde.org/get/%{V_package}-%{V_version}.tgz
+
+# Build Info
+Prefix: %{l_prefix}
+BuildRoot: %{l_buildroot}
+
+#Pre requisites
+BuildPreReq: OpenPKG, openpkg >= 20070603
+BuildPreReq: php, php::with_pear = yes
+BuildPreReq: PEAR-Horde-Channel
+PreReq: OpenPKG, openpkg >= 20070603
+PreReq: php, php::with_pear = yes
+
+Provides: horde-framework-kolab = 3.2_rc3-20081209
+Obsoletes: horde-framework-kolab < 3.2_rc3-20081209
+
+%description
+The Notification:: class provides a subject-observer pattern for
+raising and showing messages of different types and to different
+listeners.
+
+%prep
+ %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_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}
+
+%clean
+ rm -rf $RPM_BUILD_ROOT
+
+%files -f files
diff --git a/pear/Horde_Notification/Makefile b/pear/Horde_Notification/Makefile
new file mode 100644
index 0000000..eb293d7
--- /dev/null
+++ b/pear/Horde_Notification/Makefile
@@ -0,0 +1,50 @@
+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/")
+
+ifeq "x$(RPM)" "x"
+ RPM = $(HOME)/bin/openpkg rpm
+endif
+ifeq "x$(KOLABRPMSRC)" "x"
+ KOLABRPMSRC = $(HOME)/RPM/SRC
+endif
+ifeq "x$(KOLABRPMPKG)" "x"
+ KOLABRPMPKG = $(HOME)/RPM/PKG
+endif
+ifeq "x$(KOLABRPMTMP)" "x"
+ KOLABRPMTMP = $(HOME)/RPM/TMP
+endif
+
+ifeq "x$(PLATTAG)" "x"
+ PLATTAG = $(shell $(RPM) -q --qf="%{ARCH}-%{OS}" openpkg)-$(HOME:/%=%)
+endif
+
+SOURCE_URL=http://pear.horde.org/get
+SOURCE_0=$(PACKAGE)-$(VERSION).tgz
+
+.PHONY: all
+all: $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm
+
+.PHONY: dist
+dist: all
+ cp $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm ../../stage/
+
+.PHONY: clean
+clean:
+ rm -rf /kolab/RPM/TMP/$(PACKAGE)*
+ rm -rf $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm
+ rm -rf *~
+
+$(KOLABRPMSRC)/$(PACKAGE)/$(SOURCE_0):
+ test -d $(KOLABRPMSRC)/$(PACKAGE) || mkdir $(KOLABRPMSRC)/$(PACKAGE)
+ cd $(KOLABRPMSRC)/$(PACKAGE) && wget -c "$(SOURCE_URL)/$(SOURCE_0)"
+
+$(KOLABRPMPKG)/$(PACKAGE)-$(VERSION)-$(RELEASE).$(PLATTAG).rpm $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm: Makefile $(PACKAGE).spec ChangeLog $(KOLABRPMSRC)/$(PACKAGE)/$(SOURCE_0)
+ cp $(PACKAGE).spec $(KOLABRPMSRC)/$(PACKAGE)
+ cd $(KOLABRPMSRC)/$(PACKAGE) && $(RPM) -ba $(PACKAGE).spec
+
+ cp -p $(KOLABRPMPKG)/$(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm .
+
+.PHONY: install
+install: $(KOLABRPMPKG)/$(PACKAGE)-$(VERSION)-$(RELEASE).$(PLATTAG).rpm
+ $(RPM) -Uhv --force $(KOLABRPMPKG)/$(PACKAGE)-$(VERSION)-$(RELEASE).$(PLATTAG).rpm
diff --git a/pear/Horde_Prefs/.cvsignore b/pear/Horde_Prefs/.cvsignore
new file mode 100644
index 0000000..77fcdcb
--- /dev/null
+++ b/pear/Horde_Prefs/.cvsignore
@@ -0,0 +1 @@
+*.src.rpm
diff --git a/pear/Horde_Prefs/ChangeLog b/pear/Horde_Prefs/ChangeLog
new file mode 100644
index 0000000..398e466
--- /dev/null
+++ b/pear/Horde_Prefs/ChangeLog
@@ -0,0 +1,4 @@
+2009-02-24 Gunnar Wrobel <p@rdus.de>
+
+ * Horde_Prefs.spec: Added package to Kolab CVS.
+
diff --git a/pear/Horde_Prefs/Horde_Prefs.spec b/pear/Horde_Prefs/Horde_Prefs.spec
new file mode 100644
index 0000000..ac37f10
--- /dev/null
+++ b/pear/Horde_Prefs/Horde_Prefs.spec
@@ -0,0 +1,56 @@
+# Variables
+%define V_package Horde_Prefs
+%define V_version 0.0.3
+%define V_release 20090223
+
+# Package Information
+Name: %{V_package}
+Summary: Horde Preferences API
+URL: http://pear.horde.org/index.php?package=%{V_package}
+Packager: Gunnar Wrobel <wrobel@pardus.de> (p@rdus)
+Version: %{V_version}
+Release: %{V_release}
+License: LGPL
+Group: Development/Libraries
+Distribution: OpenPKG
+
+# List of Sources
+Source: http://pear.horde.org/get/%{V_package}-%{V_version}.tgz
+
+# Build Info
+Prefix: %{l_prefix}
+BuildRoot: %{l_buildroot}
+
+#Pre requisites
+BuildPreReq: OpenPKG, openpkg >= 20070603
+BuildPreReq: php, php::with_pear = yes
+BuildPreReq: PEAR-Horde-Channel
+PreReq: OpenPKG, openpkg >= 20070603
+PreReq: php, php::with_pear = yes
+PreReq: Horde_Util
+
+Provides: horde-framework-kolab = 3.2_rc3-20081209
+Obsoletes: horde-framework-kolab < 3.2_rc3-20081209
+
+%description
+The Prefs:: class provides a common abstracted interface into the
+various preferences storage mediums. It also includes all of the
+functions for retrieving, storing, and checking preference values.
+
+%prep
+ %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_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}
+
+%clean
+ rm -rf $RPM_BUILD_ROOT
+
+%files -f files
diff --git a/pear/Horde_Prefs/Makefile b/pear/Horde_Prefs/Makefile
new file mode 100644
index 0000000..eb293d7
--- /dev/null
+++ b/pear/Horde_Prefs/Makefile
@@ -0,0 +1,50 @@
+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/")
+
+ifeq "x$(RPM)" "x"
+ RPM = $(HOME)/bin/openpkg rpm
+endif
+ifeq "x$(KOLABRPMSRC)" "x"
+ KOLABRPMSRC = $(HOME)/RPM/SRC
+endif
+ifeq "x$(KOLABRPMPKG)" "x"
+ KOLABRPMPKG = $(HOME)/RPM/PKG
+endif
+ifeq "x$(KOLABRPMTMP)" "x"
+ KOLABRPMTMP = $(HOME)/RPM/TMP
+endif
+
+ifeq "x$(PLATTAG)" "x"
+ PLATTAG = $(shell $(RPM) -q --qf="%{ARCH}-%{OS}" openpkg)-$(HOME:/%=%)
+endif
+
+SOURCE_URL=http://pear.horde.org/get
+SOURCE_0=$(PACKAGE)-$(VERSION).tgz
+
+.PHONY: all
+all: $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm
+
+.PHONY: dist
+dist: all
+ cp $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm ../../stage/
+
+.PHONY: clean
+clean:
+ rm -rf /kolab/RPM/TMP/$(PACKAGE)*
+ rm -rf $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm
+ rm -rf *~
+
+$(KOLABRPMSRC)/$(PACKAGE)/$(SOURCE_0):
+ test -d $(KOLABRPMSRC)/$(PACKAGE) || mkdir $(KOLABRPMSRC)/$(PACKAGE)
+ cd $(KOLABRPMSRC)/$(PACKAGE) && wget -c "$(SOURCE_URL)/$(SOURCE_0)"
+
+$(KOLABRPMPKG)/$(PACKAGE)-$(VERSION)-$(RELEASE).$(PLATTAG).rpm $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm: Makefile $(PACKAGE).spec ChangeLog $(KOLABRPMSRC)/$(PACKAGE)/$(SOURCE_0)
+ cp $(PACKAGE).spec $(KOLABRPMSRC)/$(PACKAGE)
+ cd $(KOLABRPMSRC)/$(PACKAGE) && $(RPM) -ba $(PACKAGE).spec
+
+ cp -p $(KOLABRPMPKG)/$(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm .
+
+.PHONY: install
+install: $(KOLABRPMPKG)/$(PACKAGE)-$(VERSION)-$(RELEASE).$(PLATTAG).rpm
+ $(RPM) -Uhv --force $(KOLABRPMPKG)/$(PACKAGE)-$(VERSION)-$(RELEASE).$(PLATTAG).rpm