%define pkg_name parrot %define pkg_version 0.4.6 %define rpm_pkg_version 0.4.6 %define rpm_pkg_release 1.n0i.2 Summary: Parrot Virtual Machine Name: %{pkg_name} Version: %{rpm_pkg_version} %if "%{pkg_version}" == "%{rpm_pkg_version}" Release: %{rpm_pkg_release}%{?dist} %else Release: %{rpm_pkg_release}.%(echo %{pkg_version} | tr - _)%{?dist} %endif Group: Development/Libraries License: Artistic URL: http://www.parrotcode.org/ Source0: http://www.cpan.org/authors/id/C/CH/CHIPS/%{pkg_name}-%{pkg_version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: flex byacc bc m4 python perl pkgconfig BuildRequires: libicu-devel gdbm-devel gmp-devel readline-devel %description Parrot is a virtual machine designed to efficiently compile and execute bytecode for interpreted languages. Parrot will be the target for the final Perl 6 compiler, and is already usable as a backend for Pugs, as well as variety of other languages. %package devel Group: Development/Libraries Summary: Development files for %{name} Requires: %{name} = %{version} %description devel Parrot Virtual Machine development headers and libraries. %prep %setup -q %build %{__perl} Configure.pl \ --prefix=%{_usr} \ --optimize="$RPM_OPT_FLAGS -maccumulate-outgoing-args" \ --parrot_is_shared \ --cc=%{__cc} \ --cxx=%{__cxx} \ --lex=%{_bindir}/flex \ --yacc=%{_bindir}/yacc \ --libs=-lcurses %{__make} %{?_with_test:%{__make} test} %{?_with_fulltest:%{__make} fulltest} %install %{__rm} -rf $RPM_BUILD_ROOT %{__make} install DESTDIR=$RPM_BUILD_ROOT pushd $RPM_BUILD_ROOT/%{_libdir} %{__ln_s} -f libparrot.so.* libparrot.so popd %{__rm} -rf $RPM_BUILD_ROOT/%{_docdir}/parrot find LICENSES docs examples -type d -exec %{__chmod} 755 {} \; find LICENSES docs examples -type f -exec %{__chmod} 644 {} \; find $RPM_BUILD_ROOT%{_libdir} \ -type f \( -name '*.so' -o -name '*.so.*' \) \ -exec %{__chmod} 0755 {} \; find examples/ -type f \ | xargs -r %{__perl} -pi -e 's{^#!\s*(?:.+/)?([^/\s]+)}{#!%{_bindir}/$1}m' %clean %{__rm} -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc README LICENSES/ docs/ examples/ %{_bindir}/* %exclude %{_bindir}/parrot-config %{_libdir}/parrot %{_libdir}/libparrot.so.* %files devel %defattr(-,root,root,-) %doc ABI_CHANGES ChangeLog CREDITS NEWS PBC_COMPAT PLATFORMS %doc RELEASE_INSTRUCTIONS RESPONSIBLE_PARTIES TODO %{_bindir}/parrot-config %{_includedir}/parrot %{_libdir}/libparrot.so %{_libdir}/libparrot.a %{_libdir}/pkgconfig/* %changelog * Mon Aug 21 2006 Marius FERARU - 0.4.6-1.n0i.2 - version 0.4.6 - changed Source URL (different maintainer) * Tue Jul 04 2006 Marius Feraru - 0.4.5-1.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer v1.12.1 - rebuild on perl 5.8.8