Blame SPECS/dotnetcore.spec

f3ffd1
%{?scl:%scl_package dotnetcore}
f3ffd1
%{!?scl:%global pkg_name %{name}}
f3ffd1
f3ffd1
# there are no build id notes in these binaries
f3ffd1
# dont abort finding-debuginfo because of that
f3ffd1
%undefine _missing_build_ids_terminate_build
f3ffd1
03f6f2
# lldb doesn't like our nice debug information
03f6f2
%undefine _include_minidebuginfo
03f6f2
%global _find_debuginfo_dwz_opts %{nil}
03f6f2
42be89
%global cli_version 1.0.0-preview2-003159
42be89
%global runtime_version 1.0.5
f3ffd1
f3ffd1
# Do not provide internal .so as standard libraries
f3ffd1
%global __provides_exclude_from ^(%{_libdir}/dotnetcore/.*\\.so|%{_libdir}/dotnetcore/sdk/%{cli_version}/.*\\.so|%{_libdir}/dotnetcore/shared/Microsoft.NETCore.App/%{runtime_version}/.*)$
f3ffd1
f3ffd1
# Do not scan some files for which we have no dependencies
f3ffd1
%global __requires_exclude_from ^(%{_libdir}/dotnetcore/shared/Microsoft.NETCore.App/%{runtime_version}/libcoreclrtraceptprovider.so|%{_libdir}/dotnetcore/shared/Microsoft.NETCore.App/%{runtime_version}/libsosplugin.so)$
f3ffd1
f3ffd1
# Do not generate requires for libraries provided by this own package
f3ffd1
%global __requires_exclude ^(libmscordaccore.so\\(\\)\\(64bit\\)|libmscordaccore.so\\(V1.0\\)\\(64bit\\))$
f3ffd1
f3ffd1
Name:		%{?scl_prefix}dotnetcore
42be89
Version:	1.0.5
639284
Release:	1%{?dist}
f3ffd1
Summary:	.NET Core 1.0
f3ffd1
f3ffd1
Group:		Development/Languages
9c788e
License:	ASL 2.0 and MIT
f3ffd1
URL:		http://www.microsoft.com/net
f3ffd1
f3ffd1
# Built on a developer's laptop, from source
f3ffd1
Source0:	dotnet-dev-rhel-x64.%{cli_version}.tar.gz
9c788e
Source1:	manpages.%{cli_version}.tar.gz
9c788e
Source2:    https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0-preview2/LICENSE
f3ffd1
f3ffd1
Requires:	%{?scl_prefix}libcurl%{?_isa}
03f6f2
Requires:    %{?scl_prefix}libuv%{?_isa}
f3ffd1
f3ffd1
%{?scl:Requires: %scl_runtime}
f3ffd1
f3ffd1
%description
f3ffd1
.NET Core Framework 1.0 and .NET Core Runtime 1.0
f3ffd1
f3ffd1
%prep
f3ffd1
%setup -q -c -n %{pkg_name}-%{version}
03f6f2
tar xvf %{SOURCE1}
f3ffd1
9c788e
# Upstream build produces a bogus LICENSE
9c788e
# https://github.com/dotnet/core-setup/issues/676
9c788e
rm LICENSE.txt
9c788e
cp %{SOURCE2} LICENSE
9c788e
f3ffd1
%build
9c788e
f3ffd1
# Nothing to build; this is already a binary in a tarball
f3ffd1
f3ffd1
# Remove things with dependencies that are not ready yet
f3ffd1
f3ffd1
# Requires lttng
f3ffd1
# find -iname libcoreclrtraceptprovider.so -delete
f3ffd1
# Requires lldb
f3ffd1
# find -iname libsosplugin.so -delete
f3ffd1
f3ffd1
# Replace libuv with our own version. Note, there's also another copy of this
f3ffd1
# same libuv, bundled, in the nuget package archive.
f3ffd1
rm shared/Microsoft.NETCore.App/%{runtime_version}/libuv.so
f3ffd1
ln -s %{_libdir}/libuv.so.1 shared/Microsoft.NETCore.App/%{runtime_version}/libuv.so
f3ffd1
f3ffd1
%install
f3ffd1
install -dm 755 $RPM_BUILD_ROOT/%{_libdir}/%{pkg_name}/
f3ffd1
cp -a dotnet sdk host shared $RPM_BUILD_ROOT/%{_libdir}/%{pkg_name}/
f3ffd1
f3ffd1
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
f3ffd1
ln -s %{_libdir}/%{pkg_name}/dotnet $RPM_BUILD_ROOT/%{_bindir}/
f3ffd1
03f6f2
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1/
03f6f2
find -type f -iname 'dotnet*\.1' -exec cp {} $RPM_BUILD_ROOT/%{_mandir}/man1/ \;
03f6f2
f3ffd1
%files
9c788e
%doc LICENSE
f3ffd1
%doc ThirdPartyNotices.txt
f3ffd1
%{_libdir}/%{pkg_name}
f3ffd1
%{_bindir}/*
03f6f2
%{_mandir}/man1/dotnet*.1*
f3ffd1
f3ffd1
%changelog
42be89
* Mon Apr 24 2017 Omair Majid <omajid@redhat.com> - 1.0.5-1
42be89
- Update to .NET Core 1.0.5
42be89
639284
* Tue Mar 07 2017 Omair Majid <omajid@redhat.com> - 1.0.4-1
639284
- Update to 1.0.4
639284
- Does not contain the project.json -> csproj changes.
639284
9c788e
* Tue Dec 06 2016 Omair Majid <omajid@redhat.com> - 1.0.3-3
9c788e
- Update to latest build
9c788e
9c788e
* Mon Dec 05 2016 Omair Majid <omajid@redhat.com> - 1.0.3-2
9c788e
- Remove .cs files from nuget archive
9c788e
- Resolves: RHBZ 1384151
9c788e
9c788e
* Sat Nov 26 2016 Omair Majid <omajid@redhat.com> - 1.0.3-1
9c788e
- Update to 1.0.3
9c788e
03f6f2
* Tue Sep 20 2016 Omair Majid <omajid@redhat.com> - 1.0.1-2
03f6f2
- Add man pages
03f6f2
03f6f2
* Mon Sep 19 2016 Omair Majid <omajid@redhat.com> - 1.0.1-1
03f6f2
- Update to 1.0.1
03f6f2
- Resolves: RHBZ 1361254
03f6f2
- Resolves: RHBZ 1372033
03f6f2
f3ffd1
* Wed Jun 22 2016 Omair Majid <omajid@redhat.com> - 1.0.0-7
f3ffd1
- Update to newer build.
f3ffd1
- Fixes https://github.com/NuGet/Home/issues/3010
f3ffd1
f3ffd1
* Mon Jun 20 2016 Severin Gehwolf <sgehwolf@redhat.com> - 1.0.0-6
f3ffd1
- Reinstate libuv runtime requirement.
f3ffd1
f3ffd1
* Fri Jun 17 2016 Omair Majid <omajid@redhat.com> - 1.0.0-5
f3ffd1
- Update with new build. This one includes a libuv built from source.
f3ffd1
f3ffd1
* Fri Jun 17 2016 Omair Majid <omajid@redhat.com> - 1.0.0-4
f3ffd1
- Update source.
f3ffd1
- Fix filtering of provides and requires
f3ffd1
- Don't use the scl-wide libuv.so. There's a bundled copy included.
f3ffd1
f3ffd1
* Fri Jun 17 2016 Omair Majid <omajid@redhat.com> - 1.0.0-3
f3ffd1
- Update requires filtering for self-provided library
f3ffd1
f3ffd1
* Fri Jun 17 2016 Omair Majid <omajid@redhat.com> - 1.0.0-2
f3ffd1
- Update requires filtering for self-provided library
f3ffd1
f3ffd1
* Thu Jun 16 2016 Omair Majid <omajid@redhat.com> - 1.0.0-1
f3ffd1
- First build of .NET Core 1.0
f3ffd1
f3ffd1
* Fri May 27 2016 Omair Majid <omajid@redhat.com> - 1.0.0-0.9.rc2
f3ffd1
- Don't generate requires for self-provided library
f3ffd1
f3ffd1
* Fri May 27 2016 Omair Majid <omajid@redhat.com> - 1.0.0-0.8.rc2
f3ffd1
- Do not rpm-provide internal implementation libraries
f3ffd1
f3ffd1
* Tue May 17 2016 Omair Majid <omajid@redhat.com> - 1.0.0-0.7.rc2
f3ffd1
- Strip binaries and produce debug packages
f3ffd1
f3ffd1
* Mon May 16 2016 Omair Majid <omajid@redhat.com> - 1.0.0-0.6.preview1
f3ffd1
- Build using new upstream tarball with fixed LICENSE.
f3ffd1
f3ffd1
* Mon May 16 2016 Omair Majid <omajid@redhat.com> - 1.0.0-0.5.preview1
f3ffd1
- Include license file
f3ffd1
f3ffd1
* Thu May 12 2016 Omair Majid <omajid@redhat.com> - 1.0.0-0.4.preview1
f3ffd1
- Update to latest preview build
f3ffd1
f3ffd1
* Wed May 11 2016 Omair Majid <omajid@redhat.com> - 1.0.0-0.3.preview1
f3ffd1
- Update to latest build
f3ffd1
f3ffd1
* Thu Apr 28 2016 Omair Majid <omajid@redhat.com> - 1.0.0-0.2.20160428
f3ffd1
- Update to the latest nightly build
f3ffd1
f3ffd1
* Thu Apr 21 2016 Omair Majid <omajid@redhat.com> - 1.0.0-0.2.20160421
f3ffd1
- Update to latest nightly build
f3ffd1
f3ffd1
* Wed Apr 20 2016 Omair Majid <omajid@redhat.com> - 1.0.0-0.2.20160407
f3ffd1
- Explicitly require customized libcurl
f3ffd1
f3ffd1
* Mon Apr 18 2016 Omair Majid <omajid@redhat.com> - 1.0.0-0.1.20160407
f3ffd1
- Rename package
f3ffd1
f3ffd1
* Thu Apr 07 2016 Omair Majid <omajid@redhat.com> - 1.0.0-0.1.20160407
f3ffd1
- Update to latest nightly
f3ffd1
f3ffd1
* Wed Apr 06 2016 Omair Majid <omajid@redhat.com> - 1.0.0-0.1.20160406
f3ffd1
- Update to latest nightly
f3ffd1
f3ffd1
* Mon Apr 04 2016 Omair Majid <omajid@redhat.com> - 1.0.0-0.1.20160404
f3ffd1
- Update to newer drop
f3ffd1
f3ffd1
* Fri Mar 11 2016 Omair Majid <omajid@redhat.com> - 1.0.0-0.1.20160229
f3ffd1
- Initial package