summaryrefslogtreecommitdiff
path: root/pear
diff options
context:
space:
mode:
authorGunnar Wrobel <wrobel@pardus.de>2008-09-11 16:31:20 (GMT)
committerGunnar Wrobel <wrobel@pardus.de>2008-09-11 16:31:20 (GMT)
commit8c67b0811ec392e7a6b5fbd8c158c5c3c0235062 (patch)
tree6464a9b455be0f73b5c046f480a106dd9c31ab0b /pear
parentb9d8ad276131f8bf559b2acf91386369c3a924e9 (diff)
downloadserver-8c67b0811ec392e7a6b5fbd8c158c5c3c0235062.tar.gz
Added PEAR-Mail_mimeDecode.
Diffstat (limited to 'pear')
-rw-r--r--pear/PEAR-Mail-mimeDecode/.cvsignore1
-rw-r--r--pear/PEAR-Mail-mimeDecode/ChangeLog4
-rw-r--r--pear/PEAR-Mail-mimeDecode/Makefile42
-rw-r--r--pear/PEAR-Mail-mimeDecode/PEAR-Mail_mimeDecode.spec52
4 files changed, 99 insertions, 0 deletions
diff --git a/pear/PEAR-Mail-mimeDecode/.cvsignore b/pear/PEAR-Mail-mimeDecode/.cvsignore
new file mode 100644
index 0000000..77fcdcb
--- /dev/null
+++ b/pear/PEAR-Mail-mimeDecode/.cvsignore
@@ -0,0 +1 @@
+*.src.rpm
diff --git a/pear/PEAR-Mail-mimeDecode/ChangeLog b/pear/PEAR-Mail-mimeDecode/ChangeLog
new file mode 100644
index 0000000..5d0320f
--- /dev/null
+++ b/pear/PEAR-Mail-mimeDecode/ChangeLog
@@ -0,0 +1,4 @@
+2008-09-11 Gunnar Wrobel <p@rdus.de>
+
+ * PEAR-Mail_Mime.spec: Added package to Kolab CVS.
+
diff --git a/pear/PEAR-Mail-mimeDecode/Makefile b/pear/PEAR-Mail-mimeDecode/Makefile
new file mode 100644
index 0000000..3a6b8dc
--- /dev/null
+++ b/pear/PEAR-Mail-mimeDecode/Makefile
@@ -0,0 +1,42 @@
+PEAR_NAME = $(shell grep "%define[ ]*V_pear_name" *.spec | sed -e "s/.*V_pear_name \([A-Za-z\-\_]*\).*/\1/")
+PACKAGE = PEAR-$(PEAR_NAME)
+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
+
+SOURCE_0=http://pear.php.net/get/$(PEAR_NAME)-$(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/$(PEAR_NAME)*
+ rm -rf /kolab/RPM/TMP/$(PACKAGE)
+ rm -rf $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm
+ rm -rf *~
+
+$(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm: Makefile $(PACKAGE).spec ChangeLog
+ test -d $(KOLABRPMSRC)/$(PACKAGE) || mkdir $(KOLABRPMSRC)/$(PACKAGE)
+ cd $(KOLABRPMSRC)/$(PACKAGE) && wget -c "$(SOURCE_0)"
+
+ cp $(PACKAGE).spec $(KOLABRPMSRC)/$(PACKAGE)
+ cd $(KOLABRPMSRC)/$(PACKAGE) && $(RPM) -ba $(PACKAGE).spec
+
+ cp -p $(KOLABRPMPKG)/$(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm .
diff --git a/pear/PEAR-Mail-mimeDecode/PEAR-Mail_mimeDecode.spec b/pear/PEAR-Mail-mimeDecode/PEAR-Mail_mimeDecode.spec
new file mode 100644
index 0000000..67a0392
--- /dev/null
+++ b/pear/PEAR-Mail-mimeDecode/PEAR-Mail_mimeDecode.spec
@@ -0,0 +1,52 @@
+# Variables
+%define V_pear_name Mail_mimeDecode
+%define V_package PEAR-%{V_pear_name}
+%define V_version 1.5.0
+%define V_release 1
+
+# Package Information
+Name: %{V_package}
+Summary: Provides a class to decode mime messages.
+URL: http://pear.php.net/package/%{package_name}
+Packager: Gunnar Wrobel <wrobel@pardus.de> (p@rdus)
+Version: %{V_version}
+Release: %{V_release}
+License: BSD Style
+Group: Development/Libraries
+Distribution: OpenPKG
+
+# List of Sources
+Source: http://pear.php.net/get/%{V_pear_name}-%{V_version}.tgz
+
+# Build Info
+Prefix: %{l_prefix}
+BuildRoot: %{l_buildroot}
+
+#Pre requisites
+BuildPreReq: OpenPKG, openpkg >= 20070603
+BuildPreReq: php, php::with_pear = yes
+PreReq: OpenPKG, openpkg >= 20070603
+PreReq: php, php::with_pear = yes
+
+%description
+Provides a class to deal with the decoding and interpreting of mime
+messages. This package used to be part of the Mail_Mime package, but
+has been split off.
+
+%prep
+ %setup -n %{V_pear_name}-%{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
+ 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