|
|
161103 |
%define debug_package %{nil}
|
|
|
161103 |
%define product_family CentOS Linux
|
|
|
161103 |
%define variant_titlecase Server
|
|
|
161103 |
%define variant_lowercase server
|
|
|
161103 |
%ifarch %{arm}
|
|
|
161103 |
%define release_name AltArch
|
|
|
161103 |
%define contentdir altarch
|
|
|
161103 |
%else
|
|
|
161103 |
%define release_name Core
|
|
|
161103 |
%define contentdir centos
|
|
|
161103 |
%endif
|
|
|
161103 |
%ifarch ppc64le
|
|
|
161103 |
%define tuned_profile :server
|
|
|
161103 |
%endif
|
|
|
161103 |
%define infra_var stock
|
|
|
161103 |
%define base_release_version 8
|
|
|
161103 |
%define full_release_version 8
|
|
|
161103 |
%define dist_release_version 8
|
|
|
161103 |
%define upstream_rel_long 8.2-0
|
|
|
161103 |
%define upstream_rel 8.2
|
|
|
161103 |
%define centos_rel 2.2004
|
|
|
161103 |
#define beta Beta
|
|
|
161103 |
%define dist .el%{dist_release_version}
|
|
|
161103 |
|
|
|
161103 |
# The anaconda scripts in %%{_libexecdir} can create false requirements
|
|
|
161103 |
%global __requires_exclude_from %{_libexecdir}
|
|
|
161103 |
|
|
|
161103 |
Name: centos-release
|
|
|
161103 |
Version: %{upstream_rel}
|
|
|
161103 |
Release: %{centos_rel}.0.1%{?dist}
|
|
|
161103 |
Summary: %{product_family} release file
|
|
|
161103 |
Group: System Environment/Base
|
|
|
161103 |
License: GPLv2
|
|
|
161103 |
%ifnarch %{arm}
|
|
|
161103 |
%define pkg_name %{name}
|
|
|
161103 |
%else
|
|
|
161103 |
%define pkg_name centos-userland-release
|
|
|
161103 |
%package -n %{pkg_name}
|
|
|
161103 |
Summary: %{product_family} release file
|
|
|
161103 |
%endif
|
|
|
161103 |
Provides: centos-release = %{version}-%{release}
|
|
|
161103 |
Provides: centos-release(upstream) = %{upstream_rel}
|
|
|
161103 |
Provides: redhat-release = %{upstream_rel_long}
|
|
|
161103 |
Provides: system-release = %{upstream_rel_long}
|
|
|
161103 |
Provides: system-release(releasever) = %{base_release_version}
|
|
|
161103 |
Provides: base-module(platform:el%{base_release_version})
|
|
|
161103 |
|
|
|
161103 |
Provides: centos-release-eula
|
|
|
161103 |
Provides: redhat-release-eula
|
|
|
161103 |
|
|
|
161103 |
Requires: centos-gpg-keys = %{version}-%{release}
|
|
|
161103 |
Requires: centos-repos >= %{version}-%{release}
|
|
|
161103 |
|
|
|
161103 |
Source1: 85-display-manager.preset
|
|
|
161103 |
Source2: 90-default.preset
|
|
|
161103 |
Source3: 99-default-disable.preset
|
|
|
161103 |
Source10: RPM-GPG-KEY-centosofficial
|
|
|
161103 |
Source11: RPM-GPG-KEY-centostesting
|
|
|
161103 |
|
|
|
161103 |
Source100: rootfs-expand
|
|
|
161103 |
|
|
|
161103 |
Source200: EULA
|
|
|
161103 |
Source201: GPL
|
|
|
161103 |
Source202: Contributors
|
|
|
161103 |
|
|
|
161103 |
Source300: CentOS-Base.repo
|
|
|
161103 |
Source301: CentOS-CR.repo
|
|
|
161103 |
Source302: CentOS-Debuginfo.repo
|
|
|
161103 |
Source303: CentOS-Extras.repo
|
|
|
161103 |
Source304: CentOS-fasttrack.repo
|
|
|
161103 |
Source305: CentOS-Media.repo
|
|
|
161103 |
Source306: CentOS-Sources.repo
|
|
|
161103 |
Source307: CentOS-Vault.repo
|
|
|
161103 |
Source308: CentOS-AppStream.repo
|
|
|
161103 |
Source309: CentOS-PowerTools.repo
|
|
|
161103 |
Source310: CentOS-centosplus.repo
|
|
|
161103 |
Source311: CentOS-HA.repo
|
|
|
161103 |
Source312: CentOS-Devel.repo
|
|
|
161103 |
|
|
|
161103 |
%ifarch %{arm}
|
|
|
161103 |
%description -n %{pkg_name}
|
|
|
161103 |
%{product_family} release files
|
|
|
161103 |
%endif
|
|
|
161103 |
|
|
|
161103 |
%description
|
|
|
161103 |
%{product_family} release files
|
|
|
161103 |
|
|
|
161103 |
%package -n centos-repos
|
|
|
161103 |
Summary: %{product_family} package repositories
|
|
|
161103 |
Group: System Environment/Base
|
|
|
161103 |
Provides: centos-repos(%{base_release_version}) = %{upstream_rel}
|
|
|
161103 |
Requires: system-release = %{upstream_rel}
|
|
|
161103 |
Requires: centos-gpg-keys = %{version}-%{release}
|
|
|
161103 |
Conflicts: %{name} < 8.0-0.1905.0.10
|
|
|
161103 |
|
|
|
161103 |
%description -n centos-repos
|
|
|
161103 |
%{product_family} package repository files for yum and dnf
|
|
|
161103 |
|
|
|
161103 |
%package -n centos-gpg-keys
|
|
|
161103 |
Summary: %{product_family} RPM keys
|
|
|
161103 |
Group: System Environment/Base
|
|
|
161103 |
Conflicts: %{name} < 8.0-0.1905.0.10
|
|
|
161103 |
BuildArch: noarch
|
|
|
161103 |
|
|
|
161103 |
%description -n centos-gpg-keys
|
|
|
161103 |
%{product_family} RPM signature keys
|
|
|
161103 |
|
|
|
161103 |
%prep
|
|
|
161103 |
echo OK
|
|
|
161103 |
|
|
|
161103 |
%build
|
|
|
161103 |
echo OK
|
|
|
161103 |
|
|
|
161103 |
%install
|
|
|
161103 |
rm -rf %{buildroot}
|
|
|
161103 |
|
|
|
161103 |
# create skeleton
|
|
|
161103 |
mkdir -p %{buildroot}/etc
|
|
|
161103 |
mkdir -p %{buildroot}%{_prefix}/lib
|
|
|
161103 |
|
|
|
161103 |
# create /etc/system-release and /etc/redhat-release
|
|
|
161103 |
echo "%{product_family} release %{full_release_version}.%{centos_rel} (%{release_name}) " > %{buildroot}/etc/centos-release
|
|
|
161103 |
echo "Derived from Red Hat Enterprise Linux %{upstream_rel} (Source)" > %{buildroot}/etc/centos-release-upstream
|
|
|
161103 |
ln -s centos-release %{buildroot}/etc/system-release
|
|
|
161103 |
ln -s centos-release %{buildroot}/etc/redhat-release
|
|
|
161103 |
|
|
|
161103 |
# Create the os-release file
|
|
|
161103 |
cat << EOF >>%{buildroot}%{_prefix}/lib/os-release
|
|
|
161103 |
NAME="%{product_family}"
|
|
|
161103 |
VERSION="%{full_release_version} (%{release_name})"
|
|
|
161103 |
ID="centos"
|
|
|
161103 |
ID_LIKE="rhel fedora"
|
|
|
161103 |
VERSION_ID="%{full_release_version}"
|
|
|
161103 |
PLATFORM_ID="platform:el%{base_release_version}"
|
|
|
161103 |
PRETTY_NAME="%{product_family} %{full_release_version} (%{release_name})"
|
|
|
161103 |
ANSI_COLOR="0;31"
|
|
|
161103 |
CPE_NAME="cpe:/o:centos:centos:%{base_release_version}%{?tuned_profile}"
|
|
|
161103 |
HOME_URL="https://www.centos.org/"
|
|
|
161103 |
BUG_REPORT_URL="https://bugs.centos.org/"
|
|
|
161103 |
|
|
|
161103 |
CENTOS_MANTISBT_PROJECT="CentOS-%{base_release_version}"
|
|
|
161103 |
CENTOS_MANTISBT_PROJECT_VERSION="%{base_release_version}"
|
|
|
161103 |
REDHAT_SUPPORT_PRODUCT="centos"
|
|
|
161103 |
REDHAT_SUPPORT_PRODUCT_VERSION="%{base_release_version}"
|
|
|
161103 |
|
|
|
161103 |
EOF
|
|
|
161103 |
# Create the symlink for /etc/os-release
|
|
|
161103 |
ln -s ../usr/lib/os-release %{buildroot}%{_sysconfdir}/os-release
|
|
|
161103 |
|
|
|
161103 |
# write cpe to /etc/system/release-cpe
|
|
|
161103 |
echo "cpe:/o:centos:centos:%{base_release_version}" > %{buildroot}/etc/system-release-cpe
|
|
|
161103 |
|
|
|
161103 |
# create /etc/issue and /etc/issue.net
|
|
|
161103 |
echo '\S' > %{buildroot}/etc/issue
|
|
|
161103 |
echo 'Kernel \r on an \m' >> %{buildroot}/etc/issue
|
|
|
161103 |
cp %{buildroot}/etc/issue %{buildroot}/etc/issue.net
|
|
|
161103 |
echo >> %{buildroot}/etc/issue
|
|
|
161103 |
|
|
|
161103 |
# copy GPG keys
|
|
|
161103 |
mkdir -p -m 755 %{buildroot}/etc/pki/rpm-gpg
|
|
|
161103 |
install -m 644 %{SOURCE10} %{buildroot}/etc/pki/rpm-gpg
|
|
|
161103 |
install -m 644 %{SOURCE11} %{buildroot}/etc/pki/rpm-gpg
|
|
|
161103 |
|
|
|
161103 |
# copy yum repos
|
|
|
161103 |
mkdir -p -m 755 %{buildroot}/etc/yum.repos.d
|
|
|
161103 |
install -m 644 %{SOURCE300} %{buildroot}/etc/yum.repos.d
|
|
|
161103 |
install -m 644 %{SOURCE301} %{buildroot}/etc/yum.repos.d
|
|
|
161103 |
install -m 644 %{SOURCE302} %{buildroot}/etc/yum.repos.d
|
|
|
161103 |
install -m 644 %{SOURCE303} %{buildroot}/etc/yum.repos.d
|
|
|
161103 |
install -m 644 %{SOURCE304} %{buildroot}/etc/yum.repos.d
|
|
|
161103 |
install -m 644 %{SOURCE305} %{buildroot}/etc/yum.repos.d
|
|
|
161103 |
install -m 644 %{SOURCE306} %{buildroot}/etc/yum.repos.d
|
|
|
161103 |
install -m 644 %{SOURCE307} %{buildroot}/etc/yum.repos.d
|
|
|
161103 |
install -m 644 %{SOURCE308} %{buildroot}/etc/yum.repos.d
|
|
|
161103 |
install -m 644 %{SOURCE309} %{buildroot}/etc/yum.repos.d
|
|
|
161103 |
install -m 644 %{SOURCE310} %{buildroot}/etc/yum.repos.d
|
|
|
161103 |
install -m 644 %{SOURCE311} %{buildroot}/etc/yum.repos.d
|
|
|
161103 |
install -m 644 %{SOURCE312} %{buildroot}/etc/yum.repos.d
|
|
|
161103 |
|
|
|
161103 |
mkdir -p -m 755 %{buildroot}/etc/dnf/vars
|
|
|
161103 |
echo "%{infra_var}" > %{buildroot}/etc/dnf/vars/infra
|
|
|
161103 |
echo "%{contentdir}" >%{buildroot}/etc/dnf/vars/contentdir
|
|
|
161103 |
%ifarch %{arm}
|
|
|
161103 |
echo %{base_release_version} > %{buildroot}/etc/dnf/vars/releasever
|
|
|
161103 |
%endif
|
|
|
161103 |
|
|
|
161103 |
# set up the dist tag macros
|
|
|
161103 |
install -d -m 755 %{buildroot}/etc/rpm
|
|
|
161103 |
cat >> %{buildroot}/etc/rpm/macros.dist << EOF
|
|
|
161103 |
# dist macros.
|
|
|
161103 |
|
|
|
161103 |
%%centos_ver %{base_release_version}
|
|
|
161103 |
%%centos %{base_release_version}
|
|
|
161103 |
%%rhel %{base_release_version}
|
|
|
161103 |
%%dist .el%{base_release_version}
|
|
|
161103 |
%%el%{base_release_version} 1
|
|
|
161103 |
EOF
|
|
|
161103 |
|
|
|
161103 |
# use unbranded datadir
|
|
|
161103 |
mkdir -p -m 755 %{buildroot}/%{_datadir}/centos-release
|
|
|
161103 |
ln -s centos-release %{buildroot}/%{_datadir}/redhat-release
|
|
|
161103 |
install -m 644 %{SOURCE200} %{buildroot}/%{_datadir}/centos-release
|
|
|
161103 |
|
|
|
161103 |
# use unbranded docdir
|
|
|
161103 |
mkdir -p -m 755 %{buildroot}/%{_docdir}/centos-release
|
|
|
161103 |
ln -s centos-release %{buildroot}/%{_docdir}/redhat-release
|
|
|
161103 |
install -m 644 %{SOURCE201} %{buildroot}/%{_docdir}/centos-release
|
|
|
161103 |
install -m 644 %{SOURCE202} %{buildroot}/%{_docdir}/centos-release
|
|
|
161103 |
|
|
|
161103 |
# copy systemd presets
|
|
|
161103 |
mkdir -p %{buildroot}/%{_prefix}/lib/systemd/system-preset/
|
|
|
161103 |
install -m 0644 %{SOURCE1} %{buildroot}/%{_prefix}/lib/systemd/system-preset/
|
|
|
161103 |
install -m 0644 %{SOURCE2} %{buildroot}/%{_prefix}/lib/systemd/system-preset/
|
|
|
161103 |
install -m 0644 %{SOURCE3} %{buildroot}/%{_prefix}/lib/systemd/system-preset/
|
|
|
161103 |
|
|
|
161103 |
%ifarch %{arm} aarch64
|
|
|
161103 |
# Install armhfp/aarch64 specific tools
|
|
|
161103 |
install -D -m 0755 %{SOURCE100} %{buildroot}%{_bindir}/rootfs-expand
|
|
|
161103 |
%endif
|
|
|
161103 |
|
|
|
161103 |
|
|
|
161103 |
%clean
|
|
|
161103 |
rm -rf %{buildroot}
|
|
|
161103 |
|
|
|
161103 |
%files -n %{pkg_name}
|
|
|
161103 |
%defattr(0644,root,root,0755)
|
|
|
161103 |
/etc/redhat-release
|
|
|
161103 |
/etc/system-release
|
|
|
161103 |
/etc/centos-release
|
|
|
161103 |
/etc/centos-release-upstream
|
|
|
161103 |
%config(noreplace) /etc/os-release
|
|
|
161103 |
%config /etc/system-release-cpe
|
|
|
161103 |
%config(noreplace) /etc/issue
|
|
|
161103 |
%config(noreplace) /etc/issue.net
|
|
|
161103 |
/etc/rpm/macros.dist
|
|
|
161103 |
%{_docdir}/redhat-release
|
|
|
161103 |
%{_docdir}/centos-release/*
|
|
|
161103 |
%{_datadir}/redhat-release
|
|
|
161103 |
%{_datadir}/centos-release/*
|
|
|
161103 |
%{_prefix}/lib/os-release
|
|
|
161103 |
%{_prefix}/lib/systemd/system-preset/*
|
|
|
161103 |
%ifarch %{arm} aarch64
|
|
|
161103 |
%attr(0755,root,root) %{_bindir}/rootfs-expand
|
|
|
161103 |
%endif
|
|
|
161103 |
|
|
|
161103 |
%files -n centos-repos
|
|
|
161103 |
%config(noreplace) /etc/yum.repos.d/*
|
|
|
161103 |
%config(noreplace) /etc/dnf/vars/*
|
|
|
161103 |
|
|
|
161103 |
%files -n centos-gpg-keys
|
|
|
161103 |
/etc/pki/rpm-gpg/
|
|
|
161103 |
|
|
|
161103 |
%changelog
|
|
|
161103 |
* Fri May 15 2020 Pablo Greco <pgreco@centosproject.org> - 8-2.0.1
|
|
|
161103 |
- Relax dependency for centos-repos
|
|
|
161103 |
- Remove update_boot, it was never used in 8
|
|
|
161103 |
- Add rootfs_expand to aarch64
|
|
|
161103 |
- Bump release for 8.2
|
|
|
161103 |
|
|
|
161103 |
* Thu Mar 12 2020 bstinson@centosproject.org - 8-1.0.9
|
|
|
161103 |
- Add the Devel repo to centos-release
|
|
|
161103 |
- Install os-release(5) content to /usr/lib and have /etc/os-release be a symlink (ngompa)pr#9
|
|
|
161103 |
|
|
|
161103 |
* Thu Jan 02 2020 Brian Stinson <bstinson@centosproject.org> - 8-1.0.8
|
|
|
161103 |
- Add base module platform Provides so DNF can auto-discover modular platform (ngompa)pr#6
|
|
|
161103 |
- Switched CR repo to mirrorlist to spread the load (arrfab)pr#5
|
|
|
161103 |
|
|
|
161103 |
* Thu Dec 19 2019 bstinson@centosproject.org - 8-1.0.7
|
|
|
161103 |
- Typo fixes
|
|
|
161103 |
- Disable the HA repo by default
|
|
|
161103 |
|
|
|
161103 |
* Wed Dec 18 2019 Pablo Greco <pgreco@centosproject.org> - 8-1.el8
|
|
|
161103 |
- Fix requires in armhfp
|
|
|
161103 |
|
|
|
161103 |
* Tue Dec 17 2019 bstinson@centosproject.org - 8-1.el8
|
|
|
161103 |
- Add the HighAvailability repository
|
|
|
161103 |
|
|
|
161103 |
* Wed Aug 14 2019 Neal Gompa <ngompa@centosproject.org> 8-1.el8
|
|
|
161103 |
- Split repositories and GPG keys out into subpackages
|
|
|
161103 |
|
|
|
161103 |
* Sat Aug 10 2019 Fabian Arrotin <arrfab@centos.org> 8-0.el8
|
|
|
161103 |
- modified baseurl paths, even if disabled
|
|
|
161103 |
|
|
|
161103 |
* Sat Aug 10 2019 Fabian Arrotin <arrfab@centos.org> 8-0.el8
|
|
|
161103 |
- Enabled Extras by default.
|
|
|
161103 |
- Fixed sources paths for BaseOS/AppStream
|
|
|
161103 |
|
|
|
161103 |
* Sat Aug 10 2019 Brian Stinson <bstinson@centosproject.org> 8-0.el7
|
|
|
161103 |
- Update Debuginfo and fasttrack to use releasever
|
|
|
161103 |
- Fix CentOS-media.repo to include appstream
|
|
|
161103 |
|
|
|
161103 |
* Wed May 8 2019 Pablo Greco <pablo@fliagreco.com.ar> 8-0.el7
|
|
|
161103 |
- Initial setup for CentOS-8
|
|
|
161103 |
|