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