OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 16-Mar-2005 22:32:30
Branch: HEAD Handle: 2005031621322900
Added files:
openpkg-src/icu icu.spec
Log:
new package: icu 3.2 (International Components for Unicode)
Summary:
Revision Changes Path
1.1 +100 -0 openpkg-src/icu/icu.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/icu/icu.spec
============================================================================
$ cvs diff -u -r0 -r1.1 icu.spec
--- /dev/null 2005-03-16 22:30:08 +0100
+++ icu.spec 2005-03-16 22:32:29 +0100
@@ -0,0 +1,100 @@
+##
+## icu.spec -- OpenPKG RPM Specification
+## Copyright (c) 2000-2005 The OpenPKG Project <http://www.openpkg.org/>
+## Copyright (c) 2000-2005 Ralf S. Engelschall <[EMAIL PROTECTED]>
+## Copyright (c) 2000-2005 Cable & Wireless <http://www.cw.com/>
+##
+## Permission to use, copy, modify, and distribute this software for
+## any purpose with or without fee is hereby granted, provided that
+## the above copyright notice and this permission notice appear in all
+## copies.
+##
+## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+## SUCH DAMAGE.
+##
+
+# package information
+Name: icu
+Summary: International Components for Unicode
+URL: http://ibm.com/software/globalization/icu
+Vendor: IBM
+Packager: The OpenPKG Project
+Distribution: OpenPKG
+Class: EVAL
+Group: Converter
+License: IBM Open Source
+Version: 3.2
+Release: 20050316
+
+# list of sources
+Source0:
ftp://ftp.software.ibm.com/software/globalization/icu/%{version}/icu-%{version}.tgz
+
+# build information
+Prefix: %{l_prefix}
+BuildRoot: %{l_buildroot}
+BuildPreReq: OpenPKG, openpkg >= 20040130
+PreReq: OpenPKG, openpkg >= 20040130
+AutoReq: no
+AutoReqProv: no
+
+%description
+ ICU is a mature, widely used set of C/C++ libraries for Unicode
+ support and software internationalization and globalization
+ (i18n/g11n). It grew out of the JDK 1.1 internationalization APIs
+ (which the ICU team contributed) and continues to be developed for
+ the most advanced Unicode/i18n support. ICU is widely portable and
+ gives applications the same results on all platforms.
+
+%track
+ prog icu = {
+ version = %{version}
+ url =
http://www-306.ibm.com/software/globalization/icu/downloads.jsp
+ regex = icu-(__VER__)\.tgz
+ }
+
+%prep
+ %setup -q -n icu
+
+%build
+ ( cd source
+ CC="%{l_cc}" \
+ CXX="%{l_cxx}" \
+ CFLAGS="%{l_cflags -O}" \
+ CXXFLAGS="%{l_cxxflags -O}" \
+ CPPFLAGS="%{l_cppflags}" \
+ LDFLAGS="%{l_ldflags}" \
+ ./configure \
+ --prefix=%{l_prefix} \
+ --sysconfdir=%{l_prefix}/etc/icu \
+ --includedir=%{l_prefix}/include/icu \
+ --with-data-packaging=files \
+ --enable-static \
+ --disable-shared \
+ --disable-threads \
+ --disable-samples
+ %{l_make} %{l_mflags}
+ ) || exit $?
+
+%install
+ rm -rf $RPM_BUILD_ROOT
+ ( cd source
+ %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
+ ) || exit $?
+ strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
+
+%files -f files
+
+%clean
+ rm -rf $RPM_BUILD_ROOT
+
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [email protected]