|
|
@@ -33,17 +33,20 @@ Distribution: OpenPKG
|
|
|
Class: EVAL
|
|
|
Group: Language
|
|
|
License: Artistic/GPL
|
|
|
-Version: 0.1.1
|
|
|
-Release: 20041011
|
|
|
+Version: 0.1.2
|
|
|
+Release: 20050323
|
|
|
|
|
|
# list of sources
|
|
|
Source0: ftp://ftp.cpan.org/pub/CPAN/authors/id/L/LT/LTOETSCH/parrot-%{version}.tar.gz
|
|
|
+Patch0: parrot.patch
|
|
|
|
|
|
# build information
|
|
|
Prefix: %{l_prefix}
|
|
|
BuildRoot: %{l_buildroot}
|
|
|
-BuildPreReq: OpenPKG, openpkg >= 20040130, gmp, perl, gcc, flex, bison
|
|
|
-PreReq: OpenPKG, openpkg >= 20040130, gmp
|
|
|
+BuildPreReq: OpenPKG, openpkg >= 20040130, perl, gcc, flex, bison
|
|
|
+PreReq: OpenPKG, openpkg >= 20040130
|
|
|
+BuildPreReq: gmp, icu
|
|
|
+PreReq: gmp, icu
|
|
|
AutoReq: no
|
|
|
AutoReqProv: no
|
|
|
|
|
|
@@ -61,15 +64,17 @@ AutoReqProv: no
|
|
|
|
|
|
%prep
|
|
|
%setup -q
|
|
|
+ %patch -p0
|
|
|
|
|
|
%build
|
|
|
# configure program
|
|
|
%{l_prefix}/bin/perl Configure.pl \
|
|
|
+ --icu-config=%{l_prefix}/bin/icu-config \
|
|
|
--debugging=0 \
|
|
|
--optimize \
|
|
|
--cc="%{l_cc}" \
|
|
|
--cxx="%{l_cxx}" \
|
|
|
- --ccflags="%{l_cflags -O} %{l_cppflags}" \
|
|
|
+ --ccflags="%{l_cflags -O} %{l_cppflags icu .}" \
|
|
|
--link="%{l_cxx}" \
|
|
|
--linkflags="%{l_ldflags}" \
|
|
|
--ld="%{l_cc}" \
|
|
|
@@ -87,11 +92,11 @@ AutoReqProv: no
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
%{l_make} %{l_mflags} install \
|
|
|
BUILDPREFIX=$RPM_BUILD_ROOT \
|
|
|
- PREFIX=%{l_prefix} \
|
|
|
- EXEC_PREFIX=%{l_prefix} \
|
|
|
- BINDIR=%{l_prefix}/bin \
|
|
|
- LIBDIR=%{l_prefix}/lib \
|
|
|
- INCLUDEDIR=%{l_prefix}/include
|
|
|
+ PREFIX=%{l_prefix}/share/parrot \
|
|
|
+ EXEC_PREFIX=%{l_prefix}/share/parrot \
|
|
|
+ BIN_DIR=%{l_prefix}/bin \
|
|
|
+ LIB_DIR=%{l_prefix}/lib \
|
|
|
+ INCLUDE_DIR=%{l_prefix}/include
|
|
|
|
|
|
# install headers (are not installed by default)
|
|
|
%{l_shtool} mkdir -f -p -m 755 \
|
|
|
@@ -100,12 +105,10 @@ AutoReqProv: no
|
|
|
cp -rp include/parrot/* $RPM_BUILD_ROOT%{l_prefix}/include/parrot/
|
|
|
|
|
|
# strip down and adjust installation
|
|
|
+ rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/parrot/blib
|
|
|
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
|
|
|
- rm -rf $RPM_BUILD_ROOT%{l_prefix}/bin/languages
|
|
|
%{l_shtool} install -c -m 644 \
|
|
|
- blib/lib/libparrot.a \
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/lib/
|
|
|
- rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib/blib
|
|
|
+ blib/lib/libparrot.a $RPM_BUILD_ROOT%{l_prefix}/lib/
|
|
|
|
|
|
# determine installation files
|
|
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
|