|
|
3a7efe |
%global scl_name_prefix rh-
|
|
|
3a7efe |
%global scl_name_base dotnetcore
|
|
|
3a7efe |
%global scl_name_version 11
|
|
|
3a7efe |
%global scl %{scl_name_prefix}%{scl_name_base}%{scl_name_version}
|
|
|
3a7efe |
|
|
|
3a7efe |
%scl_package %scl
|
|
|
3a7efe |
|
|
|
3a7efe |
%global install_scl 1
|
|
|
3a7efe |
|
|
|
3a7efe |
# do not produce empty debuginfo package
|
|
|
3a7efe |
%global debug_package %{nil}
|
|
|
3a7efe |
|
|
|
3a7efe |
Summary: Package that installs %scl
|
|
|
3a7efe |
Name: %scl_name
|
|
|
3a7efe |
Version: 1.0
|
|
|
3a7efe |
Release: 1%{?dist}
|
|
|
3a7efe |
License: MIT
|
|
|
3a7efe |
|
|
|
3a7efe |
BuildRequires: scl-utils-build
|
|
|
3a7efe |
BuildRequires: python
|
|
|
3a7efe |
|
|
|
3a7efe |
%if 0%{?install_scl}
|
|
|
3a7efe |
Requires: %{scl_prefix}dotnetcore
|
|
|
3a7efe |
%endif
|
|
|
3a7efe |
|
|
|
3a7efe |
%description
|
|
|
3a7efe |
This is the main package for %scl Software Collection.
|
|
|
3a7efe |
|
|
|
3a7efe |
%package runtime
|
|
|
3a7efe |
Summary: Package that handles %scl Software Collection.
|
|
|
3a7efe |
Requires: scl-utils
|
|
|
3a7efe |
|
|
|
3a7efe |
%description runtime
|
|
|
3a7efe |
Package shipping essential scripts to work with %scl Software Collection.
|
|
|
3a7efe |
|
|
|
3a7efe |
%package build
|
|
|
3a7efe |
Summary: Package shipping basic build configuration
|
|
|
3a7efe |
Requires: scl-utils-build
|
|
|
3a7efe |
|
|
|
3a7efe |
%description build
|
|
|
3a7efe |
Package shipping essential configuration macros to build %scl Software Collection.
|
|
|
3a7efe |
|
|
|
3a7efe |
%prep
|
|
|
3a7efe |
%setup -c -T
|
|
|
3a7efe |
|
|
|
3a7efe |
%build
|
|
|
3a7efe |
# nothing to do
|
|
|
3a7efe |
|
|
|
3a7efe |
%install
|
|
|
3a7efe |
%scl_install
|
|
|
3a7efe |
|
|
|
3a7efe |
cat >> %{buildroot}%{_scl_scripts}/enable << EOF
|
|
|
3a7efe |
export PATH=%{_bindir}\${PATH:+:\${PATH}}
|
|
|
3a7efe |
export LD_LIBRARY_PATH=%{_libdir}\${LD_LIBRARY_PATH:+:\${LD_LIBRARY_PATH}}
|
|
|
3a7efe |
export MANPATH=%{_mandir}\${MANPATH:+:\${MANPATH}}
|
|
|
3a7efe |
export PKG_CONFIG_PATH=%{_libdir}/pkgconfig\${PKG_CONFIG_PATH:+:\${PKG_CONFIG_PATH}}
|
|
|
3a7efe |
export PYTHONPATH=%{_scl_root}%{python_sitelib}\${PYTHONPATH:+:\${PYTHONPATH}}
|
|
|
3a7efe |
# dotnet reports metrics to some remote server by default. disable that.
|
|
|
3a7efe |
export DOTNET_CLI_TELEMETRY_OPTOUT=true
|
|
|
3a7efe |
EOF
|
|
|
3a7efe |
|
|
|
3a7efe |
# scl doesn't include this directory
|
|
|
3a7efe |
mkdir -p %{buildroot}%{_scl_root}%{python_sitelib}
|
|
|
3a7efe |
mkdir -p %{buildroot}%{_libdir}/pkgconfig
|
|
|
3a7efe |
mkdir -p %{buildroot}%{_scl_root}/usr/lib/python2.7
|
|
|
3a7efe |
|
|
|
3a7efe |
%files
|
|
|
3a7efe |
|
|
|
3a7efe |
%files runtime -f filelist
|
|
|
3a7efe |
%scl_files
|
|
|
3a7efe |
%dir %{_scl_root}%{python_sitelib}
|
|
|
3a7efe |
%dir %{_scl_root}/usr/lib/python2.7
|
|
|
3a7efe |
|
|
|
3a7efe |
%files build
|
|
|
3a7efe |
%{_root_sysconfdir}/rpm/macros.%{scl}-config
|
|
|
3a7efe |
|
|
|
3a7efe |
%changelog
|
|
|
3a7efe |
* Thu Oct 27 2016 Omair Majid <omajid@redhat.com> - 1.1-1
|
|
|
3a7efe |
- Update to 1.1
|
|
|
3a7efe |
|
|
|
3a7efe |
* Wed Jun 15 2016 Severin Gehwolf <sgehwolf@redhat.com> 1.0-4
|
|
|
3a7efe |
- Add BR python for proper python_sitelib expansion.
|
|
|
3a7efe |
|
|
|
3a7efe |
* Mon Jun 13 2016 Severin Gehwolf <sgehwolf@redhat.com> 1.0-3
|
|
|
3a7efe |
- Enable SCL-ized python libs.
|
|
|
3a7efe |
|
|
|
3a7efe |
* Thu Apr 28 2016 Omair Majid <omajid@redhat.com> 1.0-2
|
|
|
3a7efe |
- Disable telemetry reporting
|
|
|
3a7efe |
|
|
|
3a7efe |
* Mon Apr 18 2016 Omair Majid <omajid@redhat.com> 1.0-1
|
|
|
3a7efe |
- Package name change
|
|
|
3a7efe |
|
|
|
3a7efe |
* Fri Mar 11 2016 Omair Majid <omajid@redhat.com> 1.0-1
|
|
|
3a7efe |
- Initial package
|