Sophie

Sophie

distrib > Mandriva > 2008.0 > x86_64 > by-pkgid > 6fbc7540862073ee55752920a1e53fb0 > files > 4

nemerle-0.9.3-4mdv2007.1.src.rpm

%define name nemerle
%define version 0.9.3
%define release %mkrel 4
#rpmlint false alarm
#%mklibname
%if %mdkversion >= 200600
%define pkgconfigdir %_datadir/pkgconfig
%else
%define pkgconfigdir %_libdir/pkgconfig
%endif
%define monodir %_prefix/lib/mono
%define build_nant 1

Summary: Nemerle compiler
Name: %{name}
Version: %{version}
Release: %{release}
Source0: http://nemerle.org/download/%{name}-%{version}.tar.bz2
Patch: nemerle-0.3.2-readline5.patch
Patch1: nemerle-0.9.3-pkgconfig.patch
License: BSD
Group: Development/Other
Url: http://nemerle.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: mono
%if %build_nant
BuildRequires: nant
%endif
BuildRequires: glade-sharp-devel
BuildRequires: emacs-bin
# for cs2n
#BuildRequires: antlr >= 2.7.5
Requires: mono
Requires: nemerle-libs = %version
#gw for nemish
Requires: readline >= 5
Requires: libtermcap
BuildArch: noarch

%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.

%package libs
Group: System/Libraries
Summary: Nemerle runtime environment

%description libs
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.

This contains the libraries needed to run programs written in Nemerle.

%prep
%setup -q
%patch -p1 -b .dllimport
%patch1 -p1 -b .pkgconfig
perl -pi -e 's/\r//' $(find snippets/ -type f )

%build
./configure --prefix=%_prefix --libdir=%_prefix/lib --mandir=%_mandir --disable-bar
make

%check
make check

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std PKGCONFIGDIR=%pkgconfigdir
install -m 644 tools/nemerlish/nemish.exe.config %buildroot%_bindir
mkdir %buildroot%_mandir/man1
mv %buildroot%_mandir/ncc.1 %buildroot%_mandir/man1
mkdir -p %buildroot%_sysconfdir/emacs/site-start.d/
cat > %buildroot%_sysconfdir/emacs/site-start.d/%name.el << EOF
(autoload 'nemerle-mode "nemerle" "Major mode for editing Nemerle programs" t)
(add-to-list 'auto-mode-alist
'("\\\\.n$" . nemerle-mode))
EOF
cd misc
emacs -batch -q -f batch-byte-compile nemerle.el
mkdir -p %buildroot%_datadir/emacs/site-lisp/
install -m 644 nemerle.el nemerle.elc %buildroot%_datadir/emacs/site-lisp/
mkdir -p %buildroot%_datadir/vim/syntax
cp nemerle.vim %buildroot%_datadir/vim/syntax


%clean
rm -rf $RPM_BUILD_ROOT

%post

%files
%defattr(-,root,root)
%doc README AUTHORS NEWS ChangeLog
%doc snippets doc/html/
%config(noreplace) %_sysconfdir/emacs/site-start.d/%name.el
%_datadir/emacs/site-lisp/*
%_datadir/vim/syntax/nemerle.vim
%_bindir/nemish
%_bindir/nemish.exe.config
%_bindir/ncc
%_bindir/cs2n
%attr(755,root,root) %_bindir/*.exe
%monodir/gac/Nemerle.Compiler/
%monodir/gac/Nemerle.Macros/
%monodir/gac/Nemerle.CSharp*
%monodir/gac/Nemerle.Evaluation
%monodir/gac/antlr.runtime
%monodir/nemerle/Nemerle.Compiler.dll*
%monodir/nemerle/Nemerle.Evaluation.dll*
%monodir/nemerle/Nemerle.Macros.dll*
%monodir/nemerle/Nemerle.CSharp*
%monodir/nemerle/antlr.runtime.dll*
%_mandir/man1/ncc.1*
%pkgconfigdir/nemerle.pc
%if %build_nant
%_datadir/NAnt/bin/Nemerle.NAnt.Tasks.dll
%endif
#%ghost %_bindir/ncc.exe.so
#%ghost %_bindir/nemish.exe.so
#%ghost %_bindir/cs2n.exe.so

%files libs
%defattr(-,root,root)
%doc COPYRIGHT
%dir %monodir/nemerle
%monodir/gac/Nemerle/
%monodir/nemerle/Nemerle.dll*


%changelog


* Mon Oct 16 2006 Götz Waschk <waschk@mandriva.org> 0.9.3-4mdv2007.1
- Rebuild for new nant

* Mon Aug 14 2006 Götz Waschk <waschk@mandriva.org> 0.9.3-3mdv2007.0
- fix checks

* Sat Jun 17 2006 Götz Waschk <waschk@mandriva.org> 0.9.3-1mdv2007.0
- rebuild for new nant

* Wed May 17 2006 Götz Waschk <waschk@mandriva.org> 0.9.3-1mdk
- New release 0.9.3

* Tue Jan 24 2006 Götz Waschk <waschk@mandriva.org> 0.9.2-1mdk
- New release 0.9.2

* Mon Dec 12 2005 Götz Waschk <waschk@mandriva.org> 0.9.1-3mdk
- mkrel
- reenable nant

* Mon Dec 12 2005 Götz Waschk <waschk@mandriva.org> 0.9.1-2mdk
- disable nant

* Sat Nov 05 2005 Götz Waschk <waschk@mandriva.org> 0.9.1-1mdk
- New release 0.9.1

* Wed Sep 14 2005 Götz Waschk <waschk@mandriva.org> 0.9.0-1mdk
- fix buildrequires
- update file list
- New release 0.9.0

* Thu Jun  2 2005 Götz Waschk <waschk@mandriva.org> 0.3.2-1mdk
- fix nemish.exe.config
- add dep on readline and termcap
- update file list
- New release 0.3.2

* Thu May 12 2005 Götz Waschk <waschk@mandriva.org> 0.3.1-2mdk
- disable aot, broken in mono 1.1.7

* Wed May 04 2005 Götz Waschk <waschk@mandriva.org> 0.3.1-1mdk
- New release 0.3.1

* Sat Apr 30 2005 Götz Waschk <waschk@mandriva.org> 0.3.0-2mdk
- aot compile nemish too

* Sat Apr 30 2005 Götz Waschk <waschk@mandriva.org> 0.3.0-1mdk
- update file list
- New release 0.3.0

* Thu Apr 28 2005 Götz Waschk <waschk@mandriva.org> 0.2.10-4mdk
- fix deps
- fix deps
- fix typo in the post script

* Thu Apr 28 2005 Götz Waschk <waschk@mandriva.org> 0.2.10-3mdk
- aot compile the executables in %%post
- fix pkgconfig file location

* Fri Apr 15 2005 Götz Waschk <waschk@linux-mandrake.com> 0.2.10-2mdk
- install syntax files for emacs and vim
- fix buildrequires

* Fri Apr 15 2005 Götz Waschk <waschk@linux-mandrake.com> 0.2.10-1mdk
- make the package noarch
- update file list
- New release 0.2.10

* Wed Mar 30 2005 Götz Waschk <waschk@linux-mandrake.com> 0.2.9-2mdk
- enable checks
- fix installation

* Tue Mar 29 2005 Götz Waschk <waschk@linux-mandrake.com> 0.2.9-1mdk
- update file list
- new version

* Sun Sep 19 2004 Götz Waschk <waschk@linux-mandrake.com> 0.2.1-1mdk
- drop source 1
- New release 0.2.1

* Mon Sep 13 2004 Götz Waschk <waschk@linux-mandrake.com> 0.2.0-1mdk
- initial package