File fsharp.spec of Package fsharp

#
# spec file for package fsharp
#
# Copyright (c) 2017 SUSE LINUX 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:           fsharp
Version:        4.1.23
Release:        0
Summary:        F# compiler, core library and core tools
License:        Apache-2.0
Group:          Development/Languages/Other
Url:            http://fsharp.github.io
#Source:        https://github.com/%{name}/%{name}/archive/%{version}.tar.gz#/fsharp-%{version}.tar.gz
# Run mono .nuget/NuGet.exe restore packages.config -PackagesDirectory packages -ConfigFile .nuget/NuGet.Config
Source:         fsharp-%{version}.tar.xz
Source1:        fsharp.rpmlintrc
BuildRequires:  automake
BuildRequires:  fdupes
BuildRequires:  mono-devel >= 4.0.0
BuildRequires:  mono-wcf >= 4.0.0
BuildRequires:  mono-winfxcore >= 4.0.0
BuildArch:      noarch
Provides:       mono(System.Collections.Immutable) = 1.2.0.0

%description
F# is a mature, open source, functional-first programming language
which empowers users and organizations to tackle complex computing
problems with simple, maintainable and robust code. It is used in
a wide range of application areas and is available across multiple
platforms.

%prep
%setup -q

%build
autoreconf
%configure --libexecdir=%{_prefix}/lib
echo '<?xml version="1.0" encoding="utf-8"?><packages></packages>' > packages.config
make %{?_smp_mflags}

%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install
rm -rf %{buildroot}%{_prefix}/lib/mono/monodroid
rm -rf %{buildroot}%{_prefix}/lib/mono/monotouch

# Fix script-without-shebang warnings
find %{buildroot}%{_prefix}/lib/mono -iname "*.Fsharp.Targets" -type f -print0 | xargs -0 chmod -v -x
find %{buildroot}%{_prefix}/lib/mono -iname "Fsharp.*.xml" -type f -print0 | xargs -0 chmod -v -x

# Fix duplicate files
%fdupes %{buildroot}%{_prefix}

%files
%defattr(-,root,root)
%{_bindir}/fsharpc
%{_bindir}/fsharpi
%{_bindir}/fsharpiAnyCpu
%{_prefix}/lib/mono/4.5/FSharp.Core.dll
%{_prefix}/lib/mono/4.5/FSharp.Core.optdata
%{_prefix}/lib/mono/4.5/FSharp.Core.sigdata
%{_prefix}/lib/mono/4.5/FSharp.Core.xml
%{_prefix}/lib/mono/fsharp
%{_prefix}/lib/mono/fsharp/FSharp.Compiler.Interactive.Settings.dll
%{_prefix}/lib/mono/fsharp/FSharp.Compiler.Interactive.Settings.xml
%{_prefix}/lib/mono/fsharp/FSharp.Compiler.Server.Shared.dll
%{_prefix}/lib/mono/fsharp/FSharp.Compiler.Server.Shared.xml
%{_prefix}/lib/mono/fsharp/FSharp.Core.dll
%{_prefix}/lib/mono/fsharp/FSharp.Core.xml
%{_prefix}/lib/mono/fsharp/FSharp.Core.optdata
%{_prefix}/lib/mono/fsharp/FSharp.Core.sigdata
%{_prefix}/lib/mono/fsharp/policy.2.0.FSharp.Core.dll
%{_prefix}/lib/mono/fsharp/policy.2.3.FSharp.Core.dll
%{_prefix}/lib/mono/fsharp/policy.3.3.FSharp.Core.dll
%{_prefix}/lib/mono/fsharp/policy.4.0.FSharp.Core.dll
%{_prefix}/lib/mono/fsharp/policy.4.3.FSharp.Core.dll
%{_prefix}/lib/mono/fsharp/policy.3.259.FSharp.Core.dll
%{_prefix}/lib/mono/fsharp/policy.3.47.FSharp.Core.dll
%{_prefix}/lib/mono/fsharp/policy.3.7.FSharp.Core.dll
%{_prefix}/lib/mono/fsharp/policy.3.78.FSharp.Core.dll
%{_prefix}/lib/mono/fsharp/policy.4.4.FSharp.Core.dll
%{_prefix}/lib/mono/fsharp/fsc.exe
%{_prefix}/lib/mono/fsharp/fsi.exe
%{_prefix}/lib/mono/fsharp/fsiAnyCpu.exe
%{_prefix}/lib/mono/fsharp/FSharp.Build.dll
%{_prefix}/lib/mono/fsharp/FSharp.Build.xml
%{_prefix}/lib/mono/fsharp/FSharp.Compiler.Interactive.Settings.dll
%{_prefix}/lib/mono/fsharp/FSharp.Compiler.Interactive.Settings.xml
%{_prefix}/lib/mono/fsharp/FSharp.Compiler.Server.Shared.dll
%{_prefix}/lib/mono/fsharp/FSharp.Compiler.Server.Shared.xml
%{_prefix}/lib/mono/fsharp/FSharp.Core.dll
%{_prefix}/lib/mono/fsharp/FSharp.Core.optdata
%{_prefix}/lib/mono/fsharp/FSharp.Core.sigdata
%{_prefix}/lib/mono/fsharp/FSharp.Core.xml
%{_prefix}/lib/mono/fsharp/System.Collections.Immutable.dll
%{_prefix}/lib/mono/fsharp/System.Reflection.Metadata.dll
%{_prefix}/lib/mono/fsharp/Microsoft.FSharp.Targets
%{_prefix}/lib/mono/fsharp/Microsoft.Portable.FSharp.Targets
%{_prefix}/lib/mono/gac/FSharp.Compiler.Interactive.Settings/
%{_prefix}/lib/mono/gac/FSharp.Compiler.Server.Shared/
%{_prefix}/lib/mono/gac/FSharp.Core/
%{_prefix}/lib/mono/gac/policy.2.0.FSharp.Core/
%{_prefix}/lib/mono/gac/policy.2.3.FSharp.Core/
%{_prefix}/lib/mono/gac/policy.3.3.FSharp.Core/
%{_prefix}/lib/mono/gac/policy.4.0.FSharp.Core/
%{_prefix}/lib/mono/gac/policy.4.3.FSharp.Core/
%{_prefix}/lib/mono/gac/policy.3.259.FSharp.Core/
%{_prefix}/lib/mono/gac/policy.3.47.FSharp.Core/
%{_prefix}/lib/mono/gac/policy.3.7.FSharp.Core/
%{_prefix}/lib/mono/gac/policy.3.78.FSharp.Core/
%{_prefix}/lib/mono/gac/policy.4.4.FSharp.Core
%{_prefix}/lib/mono/Microsoft*
%{_prefix}/lib/mono/xbuild

%changelog
openSUSE Build Service is sponsored by