|
10 | 10 | and allow the user to override this. --> |
11 | 11 | <PackageVersion Condition="'$(PackageVersion)' == '' AND '$(Version)' != ''">$(Version)</PackageVersion> |
12 | 12 | <PackageVersion Condition="'$(PackageVersion)' == '' AND '$(Version)' == ''">1.0.0</PackageVersion> |
13 | | - |
| 13 | + |
14 | 14 | <PackagePrefix Condition="'$(PackagePrefix)' == ''">$(TargetName)</PackagePrefix> |
15 | 15 | <PackageName Condition="'$(PackageName)' == '' AND '$(RuntimeIdentifier)' != ''">$(PackagePrefix).$(PackageVersion).$(RuntimeIdentifier)</PackageName> |
16 | 16 | <PackageName Condition="'$(PackageName)' == ''">$(PackagePrefix).$(PackageVersion)</PackageName> |
|
51 | 51 | https://github.com/dotnet/core-setup/blob/release/2.2/src/pkg/packaging/rpm/ |
52 | 52 | https://github.com/dotnet/core-setup/blob/master/src/pkg/packaging/rpm/ |
53 | 53 | https://github.com/dotnet/runtime/tree/v6.0.0/src/installer/pkg/sfx/installers/dotnet-runtime-deps |
54 | | - |
| 54 | +
|
55 | 55 | The syntax for "boolean dependencies" is described here (available starting |
56 | 56 | with rpm 3.14): |
57 | 57 | https://rpm.org/user_doc/boolean_dependencies.html |
|
64 | 64 | - Upstream lists compat libraries for OpenSSL 1.0 instead of OpenSSL 1.1, that |
65 | 65 | seems like an oversight. |
66 | 66 | --> |
67 | | - <ItemGroup Condition="'@(RpmDotNetDependency)' == '' AND '$(RuntimeIdentifier)' == '' AND '$(TargetFramework)' == 'netcoreapp2.1'"> |
68 | | - <RpmDotNetDependency Include="dotnet-runtime-2.1" Version="" /> |
69 | | - </ItemGroup> |
70 | | - |
71 | | - <ItemGroup Condition="'@(RpmDotNetDependency)' == '' AND '$(RuntimeIdentifier)' == '' AND '$(TargetFramework)' == 'netcoreapp2.2'"> |
72 | | - <RpmDotNetDependency Include="dotnet-runtime-2.2" Version="" /> |
73 | | - </ItemGroup> |
74 | | - |
75 | | - <ItemGroup Condition="'@(RpmDotNetDependency)' == '' AND '$(RuntimeIdentifier)' == '' AND '$(TargetFramework)' == 'netcoreapp3.0'"> |
76 | | - <RpmDotNetDependency Include="dotnet-runtime-3.0" Version="" /> |
77 | | - </ItemGroup> |
78 | | - |
79 | | - <ItemGroup Condition="'@(RpmDotNetDependency)' == '' AND '$(RuntimeIdentifier)' == '' AND '$(TargetFramework)' == 'netcoreapp3.1'"> |
80 | | - <RpmDotNetDependency Include="dotnet-runtime-3.1" Version="" /> |
81 | | - </ItemGroup> |
82 | | - |
83 | | - <ItemGroup Condition="'@(RpmDotNetDependency)' == '' AND '$(RuntimeIdentifier)' == '' AND '$(TargetFramework)' == 'net5.0'"> |
84 | | - <RpmDotNetDependency Include="dotnet-runtime-5.0" Version="" /> |
85 | | - </ItemGroup> |
86 | | - |
87 | | - <ItemGroup Condition="'@(RpmDotNetDependency)' == '' AND '$(RuntimeIdentifier)' == '' AND '$(TargetFramework)' == 'net6.0'"> |
88 | | - <RpmDotNetDependency Include="dotnet-runtime-6.0" Version="" /> |
89 | | - </ItemGroup> |
90 | | - |
91 | | - <ItemGroup Condition="'@(RpmDotNetDependency)' == '' AND '$(RuntimeIdentifier)' == '' AND '$(TargetFramework)' == 'net7.0'"> |
92 | | - <RpmDotNetDependency Include="dotnet-runtime-7.0" Version="" /> |
93 | | - </ItemGroup> |
94 | | - |
95 | 67 | <ItemGroup Condition="'@(RpmDotNetDependency)' == '' AND '$(RuntimeIdentifier)' == '' AND '$(TargetFramework)' == 'net8.0'"> |
96 | 68 | <RpmDotNetDependency Include="dotnet-runtime-8.0" Version="" /> |
97 | 69 | </ItemGroup> |
|
108 | 80 |
|
109 | 81 | <ItemGroup Condition="'$(SkipRpmDependencies)' == 'true'"> |
110 | 82 | <RpmDotNetDependency Remove="@(RpmDotNetDependency)"/> |
111 | | - </ItemGroup> |
| 83 | + </ItemGroup> |
112 | 84 |
|
113 | 85 | <Message Text="Creating RPM package $(RpmPath)" Importance="high"/> |
114 | 86 |
|
115 | 87 | <MakeDir Directories="$(PackageDir)"/> |
116 | | - |
| 88 | + |
117 | 89 | <RpmTask PublishDir="$(PublishDir)" |
118 | 90 | RpmPath="$(RpmPath)" |
119 | 91 | CpioPath="$(CpioPath)" |
|
157 | 129 | <!-- DebPackageArchitecture is the architecture used for the deb package. Values like any, i386, amd64, arm and arm64 are supported --> |
158 | 130 | <DebPackageArchitecture Condition="'$(DebPackageArchitecture)' == ''"></DebPackageArchitecture> |
159 | 131 | </PropertyGroup> |
160 | | - |
161 | | - <ItemGroup Condition="'@(DebDotNetDependencies)' == '' AND '$(RuntimeIdentifier)' == '' AND '$(TargetFramework)' == 'netcoreapp2.1'"> |
162 | | - <DebDotNetDependencies Include="dotnet-runtime-2.1"/> |
163 | | - </ItemGroup> |
164 | | - |
165 | | - <ItemGroup Condition="'@(DebDotNetDependencies)' == '' AND '$(RuntimeIdentifier)' == '' AND '$(TargetFramework)' == 'netcoreapp2.2'"> |
166 | | - <DebDotNetDependencies Include="dotnet-runtime-2.2"/> |
167 | | - </ItemGroup> |
168 | | - |
169 | | - <ItemGroup Condition="'@(DebDotNetDependencies)' == '' AND '$(RuntimeIdentifier)' == '' AND '$(TargetFramework)' == 'netcoreapp3.0'"> |
170 | | - <DebDotNetDependencies Include="dotnet-runtime-3.0"/> |
171 | | - </ItemGroup> |
172 | | - |
173 | | - <ItemGroup Condition="'@(DebDotNetDependencies)' == '' AND '$(RuntimeIdentifier)' == '' AND '$(TargetFramework)' == 'netcoreapp3.1'"> |
174 | | - <DebDotNetDependencies Include="dotnet-runtime-3.1"/> |
175 | | - </ItemGroup> |
176 | | - |
177 | | - <ItemGroup Condition="'@(DebDotNetDependencies)' == '' AND '$(RuntimeIdentifier)' == '' AND '$(TargetFramework)' == 'net5.0'"> |
178 | | - <DebDotNetDependencies Include="dotnet-runtime-5.0"/> |
179 | | - </ItemGroup> |
180 | | - |
181 | | - <ItemGroup Condition="'@(DebDotNetDependencies)' == '' AND '$(RuntimeIdentifier)' == '' AND '$(TargetFramework)' == 'net6.0'"> |
182 | | - <DebDotNetDependencies Include="dotnet-runtime-6.0"/> |
183 | | - </ItemGroup> |
184 | | - |
185 | | - <ItemGroup Condition="'@(DebDotNetDependencies)' == '' AND '$(RuntimeIdentifier)' == '' AND '$(TargetFramework)' == 'net7.0'"> |
186 | | - <DebDotNetDependencies Include="dotnet-runtime-7.0"/> |
187 | | - </ItemGroup> |
188 | 132 |
|
189 | 133 | <ItemGroup Condition="'@(DebDotNetDependencies)' == '' AND '$(RuntimeIdentifier)' == '' AND '$(TargetFramework)' == 'net8.0'"> |
190 | 134 | <DebDotNetDependencies Include="dotnet-runtime-8.0"/> |
|
196 | 140 |
|
197 | 141 | <!-- Dependency list for netcore3.1, updated to support Ubuntu 20.10/21.04 --> |
198 | 142 | <ItemGroup Condition="'@(DebDotNetDependencies)' == '' AND '$(RuntimeIdentifier)' != ''"> |
199 | | - <DebDependencies Include="libc6"/> |
| 143 | + <DebDependencies Include="libc6"/> |
200 | 144 | <DebDependencies Include="libgcc1"/> |
201 | 145 | <DebDependencies Include="libgssapi-krb5-2"/> |
202 | 146 | <DebDependencies Include="libstdc++6"/> |
|
207 | 151 |
|
208 | 152 | <ItemGroup Condition="'$(SkipDebDependencies)' == 'true'"> |
209 | 153 | <DebDotNetDependencies Remove="@(DebDotNetDependencies)"/> |
210 | | - </ItemGroup> |
211 | | - |
| 154 | + </ItemGroup> |
| 155 | + |
212 | 156 | <MakeDir Directories="$(PackageDir)"/> |
213 | | - |
214 | | - <DebTask PublishDir="$(PublishDir)" |
| 157 | + |
| 158 | + <DebTask PublishDir="$(PublishDir)" |
215 | 159 | DebPath="$(DebPath)" |
216 | 160 | DebTarPath="$(DebTarPath)" |
217 | 161 | DebTarXzPath="$(DebTarXzPath)" |
|
250 | 194 | <Message Text="Creating tarball $(TarballPath)" Importance="high"/> |
251 | 195 |
|
252 | 196 | <MakeDir Directories="$(PackageDir)"/> |
253 | | - |
| 197 | + |
254 | 198 | <TarballTask PublishDir="$(PublishDir)" |
255 | 199 | TarballPath="$(TarballPath)" |
256 | 200 | Prefix="$(TarballPrefix)" |
|
265 | 209 | <Message Text="Creating zip package $(ZipPath)" Importance="high"/> |
266 | 210 |
|
267 | 211 | <MakeDir Directories="$(PackageDir)"/> |
268 | | - |
| 212 | + |
269 | 213 | <ZipTask PublishDir="$(PublishDir)" |
270 | 214 | ZipPath="$(ZipPath)"/> |
271 | 215 | </Target> |
|
0 commit comments