| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- ##
- ## parrot.spec -- OpenPKG RPM Package Specification
- ## Copyright (c) 2000-2010 OpenPKG Foundation e.V. <http://openpkg.net/>
- ##
- ## 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: parrot
- Summary: Parrot Virtual Machine
- URL: http://www.parrot.org/
- Vendor: Leo Tötsch et al.
- Packager: OpenPKG Foundation e.V.
- Distribution: OpenPKG Community
- Class: EVAL
- Group: Language
- License: Artistic/GPL
- Version: 2.3.0
- Release: 20100423
- # package options
- %option with_gmp yes
- %option with_pcre yes
- %option with_crypto no
- %option with_icu no
- # list of sources
- Source0: ftp://ftp.parrot.org/pub/parrot/releases/stable/%{version}/parrot-%{version}.tar.gz
- Patch0: parrot.patch
- # build information
- BuildPreReq: OpenPKG, openpkg >= 20100101, perl, gcc, flex, bison, make
- PreReq: OpenPKG, openpkg >= 20100101
- %if "%{with_gmp}" == "yes"
- BuildPreReq: gmp
- PreReq: gmp
- %endif
- %if "%{with_pcre}" == "yes"
- BuildPreReq: pcre
- PreReq: pcre
- %endif
- %if "%{with_crypto}" == "yes"
- BuildPreReq: openssl
- PreReq: openssl
- %endif
- %if "%{with_icu}" == "yes"
- BuildPreReq: icu
- PreReq: icu
- %endif
- %description
- Parrot is a virtual machine designed to execute bytecode for
- interpreted languages efficiently. Parrot will be the target for the
- Perl 6 compiler.
- %track
- prog parrot = {
- version = %{version}
- url = ftp://ftp.parrot.org/pub/parrot/releases/stable/
- regex = (\d+\.\d+\.\d+)/
- }
- %prep
- %setup -q
- %patch -p0
- %build
- # configure program
- %{l_shtool} subst \
- -e 's;has_dynamic_linking *=> *1;has_dynamic_linking => 0;g' \
- -e 's;parrot_is_shared *=> *1;parrot_is_shared => 0;g' \
- config/init/hints/*.pm
- %{l_prefix}/bin/perl Configure.pl \
- --prefix=%{l_prefix} \
- --debugging=0 \
- --optimize \
- --cc="%{l_cc}" \
- --cxx="%{l_cxx}" \
- --ccflags="%{l_cflags -O} %{l_cppflags icu .}" \
- --link="%{l_cxx}" \
- --linkflags="%{l_ldflags}" \
- --ld="%{l_cc}" \
- --ldflags="%{l_ldflags}" \
- --lex="%{l_prefix}/bin/flex" \
- --yacc="%{l_prefix}/bin/bison -y" \
- --make="%{l_make}" \
- --libs="" \
- --jitcapable \
- --execcapable \
- %if "%{with_gmp}" != "yes"
- --without-gmp \
- %endif
- %if "%{with_pcre}" != "yes"
- --without-pcre \
- %endif
- %if "%{with_crypto}" != "yes"
- --without-crypto \
- %endif
- %if "%{with_icu}" == "yes"
- --icu-config=%{l_prefix}/bin/icu-config \
- %else
- --without-icu \
- %endif
- --without-gdbm \
- --without-gettext \
- --without-readline \
- --without-opengl
- # build program
- %{l_make} %{l_mflags}
- %install
- # install program
- rm -rf $RPM_BUILD_ROOT
- %{l_make} %{l_mflags} install \
- DESTDIR=$RPM_BUILD_ROOT
- # strip down and adjust installation
- rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/parrot/blib
- rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/doc
- mv $RPM_BUILD_ROOT%{l_prefix}/lib/pkgconfig/parrot/*/parrot.pc \
- $RPM_BUILD_ROOT%{l_prefix}/lib/pkgconfig/parrot.pc
- rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib/pkgconfig/parrot
- strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
- # determine installation files
- %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
- %files -f files
- %clean
|