summaryrefslogtreecommitdiff
path: root/nemerle.spec
blob: 1a915c76b048bb91737fde4fe46c82c1ec93cc60 (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
94
# TODO: antlr should install antlr.runtime.dll, and this
# package should use it
Summary:	Nemerle compiler
Summary(pl):	Kompilator języka Nemerle
Name:		nemerle
Version:	0.2.9
Release:	1
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:	9e7ba4b2fae39b4cf30b7b2852bca934
URL:		http://nemerle.org/
BuildRequires:	mono-devel >= 1.1.4
BuildRequires:	pkgconfig
Requires:	mono-devel >= 1.1.4
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

%build
./configure \
	--prefix=%{_prefix} \
	--bindir=%{_bindir} \
	--libdir=%{_libdir} \
	--mandir=%{_mandir}/man1 \
	--disable-aot \
	--net-engine=mono
%{__make}
%{__make} -C tools/cs2n/
%{__make} check
%{__make} -C snippets clean

%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
%attr(755,root,root) %{_bindir}/cs2n
%attr(755,root,root) %{_bindir}/cs2n.exe
%{_libdir}/mono/nemerle
%{_libdir}/mono/gac/Nemerle.*
%{_libdir}/mono/gac/antlr*
%{_mandir}/man1/*
%{_examplesdir}/%{name}-%{version}

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