File nim.spec of Package nim
#
# spec file for package nim
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: nim
Version: 0.13.0
Release: 3.2
License: MIT
Summary: Compiled, garbage-collected systems programming language
Url: http://nim-lang.org/
Group: Devel/Languages/Other
Source: %{name}-%{version}.tar.xz
BuildRequires: gcc
BuildRequires: unzip
Requires: gcc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Nim (formerly known as "Nimrod") is a statically typed, imperative programming
language that tries to give the programmer ultimate power without compromises
on runtime efficiency. This means it focuses on compile-time mechanisms
in all their various forms.
Beneath a nice infix/indentation based syntax with a powerful (AST based, hygienic)
macro system lies a semantic model that supports a soft realtime GC on thread local heaps.
Asynchronous message passing is used between threads,
so no "stop the world" mechanism is necessary.
An unsafe shared memory heap is also provided for the increased efficiency that
results from that model.
%prep
%setup -q
%build
sh build.sh
%install
%{__mkdir_p} %{buildroot}%{_libdir}
%{__mkdir_p} %{buildroot}%{_bindir}
sh ./install.sh %{buildroot}%{_libdir}
%{__ln_s} %{_libdir}/nim/bin/nim %{buildroot}%{_bindir}/nim
%{__rm} -rf %{buildroot}%{_libdir}/nim/doc
%post
%postun
%files
%defattr(-,root,root)
%doc contributors.txt copying.txt readme.txt
%{_libdir}/nim
%{_bindir}/nim
%changelog
* Mon Mar 21 2016 napobear@gmail.com
- Built the latest available version (0.13.0).