Blame SPECS/centos-release-stream.spec

Brian Stinson 37b97d
%define debug_package %{nil}
Brian Stinson 37b97d
%define product_family CentOS-Stream
Brian Stinson 37b97d
%define base_release_version 8
Brian Stinson 37b97d
%define full_release_version 8
Brian Stinson 37b97d
%define dist_release_version 8
Brian Stinson d8bc6f
%define upstream_rel_long 8.1-0
Brian Stinson d8bc6f
%define upstream_rel 8.1
Brian Stinson f8d79b
%define centos_rel 1.1911
Brian Stinson 37b97d
#define beta Beta
Brian Stinson 37b97d
%define dist .el%{dist_release_version}
Brian Stinson 37b97d
Brian Stinson 37b97d
# The anaconda scripts in %{_libexecdir} can create false requirements
Brian Stinson 37b97d
%global __requires_exclude_from %{_libexecdir}
Brian Stinson 37b97d
Brian Stinson 37b97d
Name:           centos-release-stream
Brian Stinson 37b97d
Version:        %{upstream_rel}
Brian Stinson 6b83c8
Release:        %{centos_rel}.0.2%{?dist}
Brian Stinson 37b97d
Summary:        %{product_family} release file
Brian Stinson 37b97d
Group:          System Environment/Base
Brian Stinson 37b97d
License:        GPLv2
Brian Stinson 37b97d
Brian Stinson 37b97d
%define pkg_name %{name}
Brian Stinson 37b97d
Brian Stinson 37b97d
Provides:       centos-release-stream = %{version}-%{release}
Brian Stinson 9f9128
Requires:       centos-release >= %{version}-%{release}
Brian Stinson 37b97d
Brian Stinson 37b97d
Source300:      CentOS-Stream-Base.repo
Brian Stinson 37b97d
Source302:      CentOS-Stream-Debuginfo.repo
Brian Stinson 37b97d
Source303:      CentOS-Stream-Extras.repo
Brian Stinson 37b97d
Source305:      CentOS-Stream-Media.repo
Brian Stinson 37b97d
Source306:      CentOS-Stream-Sources.repo
Brian Stinson 37b97d
Source307:      CentOS-Stream-Vault.repo
Brian Stinson 37b97d
Source308:      CentOS-Stream-AppStream.repo
Brian Stinson 37b97d
Source309:      CentOS-Stream-PowerTools.repo
Brian Stinson 37b97d
Source310:      CentOS-Stream-centosplus.repo
Brian Stinson 37b97d
Brian Stinson 37b97d
%ifarch %{arm}
Brian Stinson 37b97d
%description -n %{pkg_name}
Brian Stinson 37b97d
%{product_family} release files
Brian Stinson 37b97d
%endif
Brian Stinson 37b97d
Brian Stinson 37b97d
%description
Brian Stinson 37b97d
%{product_family} release files
Brian Stinson 37b97d
Brian Stinson 37b97d
%prep
Brian Stinson 37b97d
echo OK
Brian Stinson 37b97d
Brian Stinson 37b97d
%build
Brian Stinson 37b97d
echo OK
Brian Stinson 37b97d
Brian Stinson 37b97d
%install
Brian Stinson 37b97d
rm -rf %{buildroot}
Brian Stinson 37b97d
Brian Stinson 37b97d
# create /etc
Brian Stinson 37b97d
mkdir -p %{buildroot}/etc
Brian Stinson 37b97d
Brian Stinson 37b97d
# copy yum repos
Brian Stinson 37b97d
mkdir -p -m 755 %{buildroot}/etc/yum.repos.d
Brian Stinson 37b97d
install -m 644 %{SOURCE300} %{buildroot}/etc/yum.repos.d
Brian Stinson 37b97d
install -m 644 %{SOURCE302} %{buildroot}/etc/yum.repos.d
Brian Stinson 37b97d
install -m 644 %{SOURCE303} %{buildroot}/etc/yum.repos.d
Brian Stinson 37b97d
install -m 644 %{SOURCE305} %{buildroot}/etc/yum.repos.d
Brian Stinson 37b97d
install -m 644 %{SOURCE306} %{buildroot}/etc/yum.repos.d
Brian Stinson 37b97d
install -m 644 %{SOURCE307} %{buildroot}/etc/yum.repos.d
Brian Stinson 37b97d
install -m 644 %{SOURCE308} %{buildroot}/etc/yum.repos.d
Brian Stinson 37b97d
install -m 644 %{SOURCE309} %{buildroot}/etc/yum.repos.d
Brian Stinson 37b97d
install -m 644 %{SOURCE310} %{buildroot}/etc/yum.repos.d
Brian Stinson 37b97d
Brian Stinson 37b97d
mkdir -p -m 755 %{buildroot}/etc/dnf/vars
Brian Stinson 37b97d
echo "%{base_release_version}-stream" > %{buildroot}/etc/dnf/vars/stream
Brian Stinson 37b97d
Brian Stinson 37b97d
%clean
Brian Stinson 37b97d
rm -rf %{buildroot}
Brian Stinson 37b97d
Brian Stinson 37b97d
%files -n %{pkg_name}
Brian Stinson 37b97d
%defattr(0644,root,root,0755)
Brian Stinson 37b97d
%config(noreplace) /etc/yum.repos.d/*
Brian Stinson 37b97d
%config(noreplace) /etc/dnf/vars/*
Brian Stinson 37b97d
Brian Stinson 37b97d
%changelog
Brian Stinson d8bc6f
* Fri Dec 06 2019 bstinson@centosproject.org - -.0.1
Brian Stinson d8bc6f
- Update for 8.1
Brian Stinson d8bc6f
176906
* Mon Oct 14 2019 Fabian Arrotin <arrfab@centos.org> 8.0-0.1905.0.9.el8
176906
- Switched to mirrorlist instead of baseurl for 8-stream
176906
Brian Stinson 37b97d
* Thu Sep 20 2019 Brian Stinson <bstinson@centosproject.org> 8-0.el8
Brian Stinson 37b97d
- First build of centos-release-stream