summaryrefslogtreecommitdiff
path: root/nemerle.spec
blob: 6abb2af2a82818f02277d75ec0fecbbbed049543 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
Summary:	Nemerle compiler
Summary(pl):	Kompilator języka Nemerle
Name:		nemerle
Version:	0.2.1
Release:	3
Epoch:		0
License:	BSD
Group:		Development/Languages
Vendor:		Nemerle Development Team <feedback@nemerle.org>
Source0:	http://nemerle.org/download/%{name}-%{version}.tar.bz2
# Source0-md5:	6108697ad6a8ba434f5a98f34b8eb02e
Patch0:		%{name}-disable-aot.patch
Patch1:		%{name}-save-assembly.patch
URL:		http://nemerle.org/
BuildRequires:	mono-devel >= 1.0
BuildRequires:	pkgconfig
Requires:	mono-devel >= 1.0
Requires:	%{name}-libs = %{epoch}:%{version}-%{release}
ExcludeArch:	alpha
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
Nemerle is a new functional language designed from the ground up for
the .NET platform. Nemerle supports: object oriented and imperative
.NET concepts, variant datatypes, matching, higher order functions and
powerful macro system. It has simple, C#-like syntax and makes access
to imperative features easy, and thus is easy to learn.

%description -l pl
Nemerle jest nowym językiem funkcjonalnym zaprojektowanym od początku 
z myślą o platformie .NET. Nemerle wspiera programowanie obiektowe 
i imperatywne, typy wariantowe, dopasowanie wzorca, funkcje wyższych
rzędów oraz potężny system makr. Składnia Nemerle jest prosta,
przypomina trochę C#. Nemerle umożliwia łatwy dostęp do swych
imperatywnych oraz obiektowych cech, co powinno ułatwić uczenie się
go.

%package libs
Summary:	Nemerle runtime environment
Summary(pl):	Środowisko uruchomieniowe języka Nemerle
Group:		Libraries
Requires:	mono >= 1.0

%description libs
Libraries needed to run programs written in Nemerle.

%description libs -l pl
Biblioteki niezbędne do uruchamiania programów napisanych w Nemerle.

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
./configure \
	--prefix=%{_prefix} \
	--bindir=%{_bindir} \
	--libdir=%{_libdir} \
	--mandir=%{_mandir}/man1 \
%ifnarch %{ix86}
	--disable-aot \
%endif
	--net-engine=mono
%{__make}
%{__make} check

%install
rm -rf $RPM_BUILD_ROOT

%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT

install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
cp -r snippets/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc NEWS AUTHORS README doc/html misc/*.{vim,el}
%attr(755,root,root) %{_bindir}/ncc
%attr(755,root,root) %{_bindir}/ncc.exe
%{_libdir}/mono/nemerle
%{_libdir}/mono/gac/Nemerle.*
%{_mandir}/man1/*
%{_examplesdir}/%{name}-%{version}

%files libs
%defattr(644,root,root,755)
%doc COPYRIGHT
%{_libdir}/mono/gac/Nemerle