[moarvm] intial commit

Gerd Pokorra gerd at fedoraproject.org
Thu Aug 14 10:18:20 UTC 2014


commit d5fc329c69d2d24c7ffd43391edbd48613d8e478
Author: gerd <gp at zimt.uni-siegen.de>
Date:   Thu Aug 14 12:18:06 2014 +0200

    intial commit

 .gitignore  |    1 +
 moarvm.spec |  139 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources     |    1 +
 3 files changed, 141 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..1d94389 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/MoarVM-2014.04.tar.gz
diff --git a/moarvm.spec b/moarvm.spec
new file mode 100644
index 0000000..6943efa
--- /dev/null
+++ b/moarvm.spec
@@ -0,0 +1,139 @@
+%global year 2014
+%global month 04
+
+
+Name:           moarvm
+Version:        0.%{year}.%{month}
+Release:        3%{?dist}
+Summary:        Short for "Metamodel On A Runtime", MoarVM is a virtual machine as a backend for NQP and then Rakudo Perl 6 at the top.
+
+License:        Artistic 2.0
+Group:          Development/Libraries
+URL:            http://moarvm.org
+Source0:        http://moarvm.org/releases/MoarVM-%{year}.%{month}.tar.gz
+
+BuildRequires:  readline-devel libtommath-devel sha-devel libuv-devel
+BuildRequires:  perl(Pod::Usage)
+
+
+
+%description
+Short for "Metamodel On A Runtime", MoarVM is a virtual machine built
+especially for Rakudo Perl 6 and the NQP Compiler Toolchain. MoarVM is a 
+backend for NQP.
+MoarVM already stands out amongst the various Rakudo and NQP compilation
+targets by typically:
+
+    Running the Perl 6 specification test suite fastest
+    Having the lowest memory usage
+    Having the best startup time
+    Being fastest to build both NQP and Rakudo - and thus in theory your
+        Perl 6 and NQP programs too!
+
+
+%package        devel
+Summary:        Development files for %{name}
+Group:          Development/Libraries
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+
+
+%description devel
+This package contains header files for developing applications that use
+%{name} (Metamodel On A Runtime).
+
+
+
+%prep
+%setup -q -n MoarVM-%{year}.%{month}
+
+
+%build
+# modify Configure.pl so that the Fedora specific flags for cflags and ldflags
+# will be written to the Makefile
+sed -i -e "/^\$config{cflags}/ s#.*#\$config{cflags} = \"$RPM_OPT_FLAGS -fPIC\";#" Configure.pl
+sed -i -e "/^\$config{ldflags}/ s#.*#\$config{ldflags} = \"%{__global_ldflags}\";#" Configure.pl
+
+%{__perl} Configure.pl --prefix=%{_usr} --has-libtommath --use-readline \
+                       --has-sha --has-libuv --has-libatomic_ops
+sed -i -e '/libmoar.so.*lib$/ s#lib$#%{_lib}#' Makefile
+
+make %{?_smp_mflags}
+
+
+%install
+
+# Create .../usr/lib64 directory at 64-bit architecture
+[ %{_lib} == lib ] || mkdir -p $RPM_BUILD_ROOT%{_libdir}
+
+%make_install
+
+# Force permissions on shared versioned libs so they get stripped
+# and will provided.
+chmod 755 $RPM_BUILD_ROOT%{_libdir}/libmoar.so
+
+
+%files
+%doc LICENSE CREDITS docs
+%{_bindir}/moar
+
+%{_prefix}/lib/MAST
+%{_libdir}/libmoar.so
+
+
+%files devel
+%{_includedir}/dyncall
+%{_includedir}/moar
+%{_includedir}/tinymt
+
+%exclude %{_includedir}/linenoise
+%exclude %{_includedir}/libtommath
+%exclude %{_includedir}/sha1
+%exclude %{_includedir}/libuv
+%exclude %{_includedir}/msinttypes
+%exclude %{_includedir}/libatomic_ops
+
+
+
+%changelog
+* Wed May 07 2014 Gerd Pokorra <gp at zimt.uni-siegen.de> 0.2014.04-3
+- modify Configure.pl so that the Fedora specific flags for cflags and ldflags
+  will be written to the Makefile
+- make lib64 directory creation more general
+
+* Wed Apr 30 2014 Gerd Pokorra <gp at zimt.uni-siegen.de> 0.2014.04-2
+- add optimize flag to Configure.pl
+- add CFLAGS and LDFLAGS to make
+- change summary tag
+
+* Sat Apr 26 2014 Gerd Pokorra <gp at zimt.uni-siegen.de> 0.2014.04-1
+- update to 2014.04
+- remove patches that are included in upstream
+- add BuildRequires perl(Pod::Usage)
+
+* Mon Mar 31 2014 Gerd Pokorra <gp at zimt.uni-siegen.de> 0.2014.03-2
+- add patch to have more configuration flags
+- call Confiugre.pl with has-libatomic_ops
+
+* Wed Mar 26 2014 Gerd Pokorra <gp at zimt.uni-siegen.de> 0.2014.03-1
+- update to 2014.03
+- call Configure.pl with has-sha and add BuildRequires sha-devel
+- call Configure.pl with has-libuv and add BuildRequires libuv-devel
+- exclude libuv and sha1 header file
+- exclude header files for Microsoft Visual Studio (msinittypes)
+
+* Mon Mar 17 2014 Gerd Pokorra <gp at zimt.uni-siegen.de> 0.2014.02-3
+- call Configure.pl with use-readline flag
+- add BuildRequires readline-devel and libtommath-devel
+- exclude linenoise and libtommath header file
+- add patch to link with libtommath from the system and use it as a flag
+
+* Fri Mar 14 2014 Gerd Pokorra <gp at zimt.uni-siegen.de> 0.2014.02-2
+- improve devel package tags
+- description is no longer than 80 chars per line any more
+- RPM_BUILD_ROOT cleanup is removed
+
+* Sat Feb 22 2014 Gerd Pokorra <gp at zimt.uni-siegen.de> 0.2014.02-1
+- create initial spec file from the template 'rpmdev-newspec moarvm' 
+- add changing permission of libmoar.so
+- add Group tag
+- add devel-subpackage
diff --git a/sources b/sources
index e69de29..4cfb0de 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+cec92f2c53dba4bf12377528df3d7a15  MoarVM-2014.04.tar.gz


More information about the scm-commits mailing list