File dotnet-hostfxr.spec of Package dotnet-hostfxr
#
# spec file for package dotnet-hostfxr
#
# Copyright (c) 2024 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define _name dotnet
%define _version 8.0
Name: dotnet-hostfxr
Version: 8.0.6
Release: 0%{?dist}
Summary: Dotnet binaries for building software
License: GPL-2.0-only
URL: https://github.com/ahmedmoselhi/dotnet-binaries
BuildRequires: cpio
Requires: dotnet-host
Source0: %{name}-%{version}-x86_64.rpm
%description
Dotnet binaries for building software.
%prep
cp -a %{_sourcedir}/*.rpm ./
rpm2cpio *.rpm | cpio -idmv
%install
install -dm 755 "%{buildroot}"/usr/share
cp -a "%{_builddir}%{_datadir}" "%{buildroot}/usr"
%files
%dir %{_datadir}/doc/%{name}-8.0
%dir %{_datadir}/%{_name}
%dir %{_datadir}/%{_name}/host
%dir %{_datadir}/%{_name}/host/fxr
%dir %{_datadir}/%{_name}/host/fxr/%{version}
%{_datadir}/doc/%{name}-8.0/copyright
%{_datadir}/%{_name}/host/fxr/%{version}/libhostfxr.so
%changelog