Package that installs rh-dotnet22
CentOS Sources
2019-01-09 fa3f218fa0a14ff611a5cdd290aa39626083970a
commit | author | age
0780a6 1 %global scl_name_prefix rh-
CS 2 %global scl_name_base dotnet
3 %global scl_name_version 22
4
5 %global scl %{scl_name_prefix}%{scl_name_base}%{scl_name_version}
6 %scl_package %scl
7
8 %global nfsmoutnable 1
9
10 # For testing this RPM by itself.
11 %global install_scl 1
12
13 # Do not produce empty debuginfo package
14 %global debug_package %{nil}
15
16 Name: %scl_name
17 Version: 2.2
fa3f21 18 Release: 2%{?dist}
0780a6 19 Summary: Package that installs %scl
CS 20 License: MIT
21
22 BuildRequires:  scl-utils-build
23 %if 0%{?install_scl}
24 Requires:       %{scl_prefix}dotnet
25 %endif
26
27 %description
28 This is the main package for %scl Software Collection.
29
30
31 %package runtime
32 Summary: Package that handles %scl Software Collection.
33 Requires: scl-utils
34
35 %description runtime
36 Package shipping essential scripts to work with %scl Software Collection.
37
38
39 %package build
40 Summary: Package shipping basic build configuration
41 Requires: scl-utils-build
42
43 %description build
44 Package shipping essential configuration macros to build %scl Software Collection.
45
46
47 %prep
48 %setup -c -T
49
50 %build
51 # Nothing to do
52
53 %install
54 %scl_install
55
56 cat >> %{buildroot}%{_scl_scripts}/enable << EOF
57 export PATH="%{_bindir}:%{_sbindir}\${PATH:+:\${PATH}}\${HOME:+:\${HOME}/.dotnet/tools}"
58 export CPATH="%{_includedir}\${CPATH:+:\${CPATH}}"
59 export LD_LIBRARY_PATH="%{_libdir}\${LD_LIBRARY_PATH:+:\${LD_LIBRARY_PATH}}"
60 export MANPATH="%{_mandir}:\${MANPATH:-}"
61 export PKG_CONFIG_PATH="%{_libdir}/pkgconfig\${PKG_CONFIG_PATH:+:\${PKG_CONFIG_PATH}}"
62 export PYTHONPATH=%{_scl_root}%{python_sitelib}\${PYTHONPATH:+:\${PYTHONPATH}}
63 export XDG_DATA_DIRS=%{_datadir}:\${XDG_DATA_DIRS:-/usr/local/share:/usr/share}
64
65 # Opt out of telemetry collection by default
66 export DOTNET_CLI_TELEMETRY_OPTOUT=true
67
68 # Set the latest versions of ASP.NET Core packages to be picked up when
69 # building using the older SDKS.
fa3f21 70 export LatestPatchVersionForAspNetCoreApp2_2=2.2.1
CS 71 export LatestPatchVersionForAspNetCoreAll2_2=2.2.1
0780a6 72 EOF
CS 73
74
75 %files
76
77 %files runtime -f filelist
78 %scl_files
79
80 %files build
81 %{_root_sysconfdir}/rpm/macros.%{scl}-config
82
83
84 %changelog
fa3f21 85 * Mon Dec 17 2018 Omair Majid <omajid@redhat.com> - 2.2-2
CS 86 - Export environment variables to set ASP.NET Core versions to 2.2.1
87 - Resolves: RHBZ#1660223
88
0780a6 89 * Fri Nov 16 2018 Omair Majid <omajid@redhat.com> - 2.2-1
CS 90 - New spec file based on .NET Core 2.1
91 - Resolves: RHBZ#1649584