1 |
%global __spec_install_post %{nil} |
2 |
|
3 |
Name: fsharp |
4 |
Version: 4.0.1.1 |
5 |
Release: 21.1 |
6 |
Summary: F# compiler, core library and core tools |
7 |
License: Apache-2.0 |
8 |
Group: Development/Languages/Other |
9 |
URL: https://fsharp.github.io/ |
10 |
Source: https://github.com/%{name}/%{name}/archive/%{version}.tar.gz |
11 |
Patch1: use-internal-nunit.patch |
12 |
BuildRequires: automake |
13 |
BuildRequires: mono-devel > 3.0 |
14 |
BuildRequires: mono-wcf |
15 |
BuildRequires: mono-winfx |
16 |
BuildRequires: nunit |
17 |
BuildArch: noarch |
18 |
|
19 |
%description |
20 |
F# is a mature, open source, functional-first programming language |
21 |
which empowers users and organizations to tackle complex computing |
22 |
problems with simple, maintainable and robust code. It is used in |
23 |
a wide range of application areas and is available across multiple |
24 |
platforms. |
25 |
|
26 |
%prep |
27 |
%setup -q |
28 |
%patch -P 1 -p1 |
29 |
|
30 |
%build |
31 |
autoreconf -ifv |
32 |
%configure --libexecdir=%{_prefix}/lib/ |
33 |
make |
34 |
|
35 |
%install |
36 |
%make_install |
37 |
rm -rf ${RPM_BUILD_ROOT}%{_prefix}/lib/mono/monodroid |
38 |
rm -rf ${RPM_BUILD_ROOT}%{_prefix}/lib/mono/monotouch |
39 |
rm -rf ${RPM_BUILD_ROOT}%{_prefix}/lib/mono/xbuild |
40 |
|
41 |
#fix script-without-shebang warnings |
42 |
#find %{buildroot}%{_prefix}/lib/mono -iname "*.Fsharp.Targets" -type f -print0 | xargs -0 chmod -v -x |
43 |
#find %{buildroot}%{_prefix}/lib/mono -iname "Fsharp.*.xml" -type f -print0 | xargs -0 chmod -v -x |
44 |
|
45 |
#fix brp-25-symlink failure |
46 |
#while read line |
47 |
#do |
48 |
# src=`readlink -f "$line"` |
49 |
# echo "replacing link $line with file $src" |
50 |
# rm "$line" |
51 |
# cp "$src" "$line" |
52 |
#done <<< "$(find %{buildroot}%{_prefix}/lib/mono/Reference* -type l)" |
53 |
|
54 |
%files |
55 |
%{_bindir}/fsharp* |
56 |
%{_prefix}/lib/mono/4.5/* |
57 |
%{_prefix}/lib/mono/gac/FSharp.* |
58 |
%{_prefix}/lib/mono/gac/policy.*.FSharp.Core |
59 |
%{_prefix}/lib/mono/Microsoft* |
60 |
%{_prefix}/lib/mono/Reference* |
61 |
|