|
Karanbir Singh |
a5b8a1 |
%define debug_package %{nil}
|
|
Karanbir Singh |
8862a1 |
%define product_family CentOS Linux
|
|
Karanbir Singh |
a5b8a1 |
%define variant_titlecase Server
|
|
Karanbir Singh |
a5b8a1 |
%define variant_lowercase server
|
|
|
baf198 |
%define release_name AltArch
|
|
Karanbir Singh |
b7269c |
%define base_release_version 7
|
|
Karanbir Singh |
b7269c |
%define full_release_version 7
|
|
Karanbir Singh |
a5b8a1 |
%define dist_release_version 7
|
|
Karanbir Singh |
54ca24 |
%define upstream_rel 7.1
|
|
Karanbir Singh |
54ca24 |
%define centos_rel 1.1503
|
|
Karanbir Singh |
a5b8a1 |
#define beta Beta
|
|
|
c742ab |
%define dist .el%{dist_release_version}.centos
|
|
Karanbir Singh |
a5b8a1 |
|
|
Karanbir Singh |
a5b8a1 |
Name: centos-release
|
|
Karanbir Singh |
a5b8a1 |
Version: %{base_release_version}
|
|
|
baf198 |
Release: %{centos_rel}%{?dist}.2.8.altarch
|
|
Karanbir Singh |
a5b8a1 |
Summary: %{product_family} release file
|
|
Karanbir Singh |
a5b8a1 |
Group: System Environment/Base
|
|
Karanbir Singh |
a5b8a1 |
License: GPLv2
|
|
Karanbir Singh |
a5b8a1 |
Provides: centos-release = %{version}-%{release}
|
|
|
c742ab |
Provides: centos-release(upstream) = %{upstream_rel}
|
|
|
c742ab |
Provides: redhat-release = %{upstream_rel}
|
|
|
c742ab |
Provides: system-release = %{upstream_rel}
|
|
Karanbir Singh |
b7269c |
Provides: system-release(releasever) = %{base_release_version}
|
|
Karanbir Singh |
a5b8a1 |
Source1: 85-display-manager.preset
|
|
Karanbir Singh |
a5b8a1 |
Source2: 90-default.preset
|
|
|
baf198 |
Source3: GPL
|
|
|
baf198 |
Source4: EULA
|
|
Karanbir Singh |
a5b8a1 |
|
|
|
baf198 |
# Repository Sources
|
|
|
baf198 |
Source100: CentOS-Base.repo
|
|
|
baf198 |
|
|
|
baf198 |
# Repository GPG keys
|
|
|
baf198 |
Source101: RPM-GPG-KEY-CentOS-7.%{_arch}
|
|
Karanbir Singh |
a5b8a1 |
|
|
Karanbir Singh |
a5b8a1 |
%description
|
|
Karanbir Singh |
a5b8a1 |
%{product_family} release files
|
|
Karanbir Singh |
a5b8a1 |
|
|
Karanbir Singh |
a5b8a1 |
%prep
|
|
|
baf198 |
#%setup -q -n centos-release-%{base_release_version}
|
|
Karanbir Singh |
a5b8a1 |
|
|
Karanbir Singh |
a5b8a1 |
%build
|
|
Karanbir Singh |
a5b8a1 |
echo OK
|
|
Karanbir Singh |
a5b8a1 |
|
|
Karanbir Singh |
a5b8a1 |
%install
|
|
Karanbir Singh |
a5b8a1 |
rm -rf %{buildroot}
|
|
Karanbir Singh |
a5b8a1 |
|
|
Karanbir Singh |
a5b8a1 |
# create /etc
|
|
Karanbir Singh |
a5b8a1 |
mkdir -p %{buildroot}/etc
|
|
Karanbir Singh |
a5b8a1 |
|
|
Karanbir Singh |
a5b8a1 |
# create /etc/system-release and /etc/redhat-release
|
|
|
c742ab |
echo "%{product_family} release %{full_release_version}.%{centos_rel} (%{release_name}) " > %{buildroot}/etc/centos-release
|
|
Karanbir Singh |
f3a9a7 |
echo "Derived from Red Hat Enterprise Linux %{upstream_rel} (Source)" > %{buildroot}/etc/centos-release-upstream
|
|
Karanbir Singh |
a5b8a1 |
ln -s centos-release %{buildroot}/etc/system-release
|
|
Karanbir Singh |
f3a9a7 |
ln -s centos-release %{buildroot}/etc/redhat-release
|
|
Karanbir Singh |
a5b8a1 |
|
|
Karanbir Singh |
a5b8a1 |
# create /etc/os-release
|
|
Karanbir Singh |
a5b8a1 |
cat << EOF >>%{buildroot}/etc/os-release
|
|
Karanbir Singh |
8862a1 |
NAME="%{product_family}"
|
|
Karanbir Singh |
a5b8a1 |
VERSION="%{full_release_version} (%{release_name})"
|
|
Karanbir Singh |
8862a1 |
ID="centos"
|
|
|
c742ab |
ID_LIKE="rhel fedora"
|
|
Karanbir Singh |
a5b8a1 |
VERSION_ID="%{full_release_version}"
|
|
Karanbir Singh |
8862a1 |
PRETTY_NAME="%{product_family} %{full_release_version} (%{release_name})"
|
|
Karanbir Singh |
a5b8a1 |
ANSI_COLOR="0;31"
|
|
Karanbir Singh |
8862a1 |
CPE_NAME="cpe:/o:centos:centos:7"
|
|
Karanbir Singh |
8862a1 |
HOME_URL="https://www.centos.org/"
|
|
Karanbir Singh |
8862a1 |
BUG_REPORT_URL="https://bugs.centos.org/"
|
|
|
baf198 |
SIG_FAMILY="AltArch %{_arch}"
|
|
Karanbir Singh |
8862a1 |
|
|
Karanbir Singh |
54ca24 |
CENTOS_MANTISBT_PROJECT="CentOS-7"
|
|
Karanbir Singh |
54ca24 |
CENTOS_MANTISBT_PROJECT_VERSION="7"
|
|
Karanbir Singh |
54ca24 |
REDHAT_SUPPORT_PRODUCT="centos"
|
|
Karanbir Singh |
54ca24 |
REDHAT_SUPPORT_PRODUCT_VERSION="7"
|
|
Karanbir Singh |
54ca24 |
|
|
Karanbir Singh |
a5b8a1 |
EOF
|
|
Karanbir Singh |
a5b8a1 |
# write cpe to /etc/system/release-cpe
|
|
Karanbir Singh |
8862a1 |
echo "cpe:/o:centos:centos:7" > %{buildroot}/etc/system-release-cpe
|
|
Karanbir Singh |
a5b8a1 |
|
|
Karanbir Singh |
a5b8a1 |
# create /etc/issue and /etc/issue.net
|
|
Karanbir Singh |
a5b8a1 |
echo '\S' > %{buildroot}/etc/issue
|
|
Karanbir Singh |
a5b8a1 |
echo 'Kernel \r on an \m' >> %{buildroot}/etc/issue
|
|
Karanbir Singh |
a5b8a1 |
cp %{buildroot}/etc/issue %{buildroot}/etc/issue.net
|
|
Karanbir Singh |
a5b8a1 |
echo >> %{buildroot}/etc/issue
|
|
Karanbir Singh |
a5b8a1 |
|
|
Karanbir Singh |
a5b8a1 |
# copy GPG keys
|
|
Karanbir Singh |
a5b8a1 |
mkdir -p -m 755 %{buildroot}/etc/pki/rpm-gpg
|
|
|
baf198 |
install -m 644 %{SOURCE101} %{buildroot}/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
|
|
Karanbir Singh |
a5b8a1 |
|
|
|
c742ab |
# copy yum repos
|
|
|
c742ab |
mkdir -p -m 755 %{buildroot}/etc/yum.repos.d
|
|
|
baf198 |
install -m 644 %{SOURCE100} %{buildroot}/etc/yum.repos.d
|
|
|
c742ab |
|
|
Karanbir Singh |
84825e |
|
|
Karanbir Singh |
a5b8a1 |
# set up the dist tag macros
|
|
Karanbir Singh |
a5b8a1 |
install -d -m 755 %{buildroot}/etc/rpm
|
|
Karanbir Singh |
a5b8a1 |
cat >> %{buildroot}/etc/rpm/macros.dist << EOF
|
|
Karanbir Singh |
a5b8a1 |
# dist macros.
|
|
Karanbir Singh |
a5b8a1 |
|
|
Karanbir Singh |
a5b8a1 |
%%centos_ver %{base_release_version}
|
|
|
c742ab |
%%centos %{base_release_version}
|
|
Karanbir Singh |
a5b8a1 |
%%rhel %{base_release_version}
|
|
Karanbir Singh |
a5b8a1 |
%%dist %dist
|
|
Karanbir Singh |
a5b8a1 |
%%el%{base_release_version} 1
|
|
Karanbir Singh |
a5b8a1 |
EOF
|
|
Karanbir Singh |
a5b8a1 |
|
|
Karanbir Singh |
a5b8a1 |
# use unbranded datadir
|
|
|
c742ab |
mkdir -p -m 755 %{buildroot}/%{_datadir}/centos-release
|
|
|
c742ab |
ln -s centos-release %{buildroot}/%{_datadir}/redhat-release
|
|
|
baf198 |
install -m 644 %{SOURCE4} %{buildroot}/%{_datadir}/centos-release
|
|
Karanbir Singh |
a5b8a1 |
|
|
Karanbir Singh |
a5b8a1 |
# use unbranded docdir
|
|
|
c742ab |
mkdir -p -m 755 %{buildroot}/%{_docdir}/centos-release
|
|
|
c742ab |
ln -s centos-release %{buildroot}/%{_docdir}/redhat-release
|
|
|
baf198 |
install -m 644 %{SOURCE3} %{buildroot}/%{_docdir}/centos-release
|
|
Karanbir Singh |
a5b8a1 |
|
|
Karanbir Singh |
a5b8a1 |
# copy systemd presets
|
|
Karanbir Singh |
a5b8a1 |
mkdir -p %{buildroot}%{_prefix}/lib/systemd/system-preset/
|
|
Karanbir Singh |
a5b8a1 |
install -m 0644 %{SOURCE1} %{buildroot}%{_prefix}/lib/systemd/system-preset/
|
|
Karanbir Singh |
a5b8a1 |
install -m 0644 %{SOURCE2} %{buildroot}%{_prefix}/lib/systemd/system-preset/
|
|
Karanbir Singh |
a5b8a1 |
|
|
Karanbir Singh |
a5b8a1 |
|
|
Karanbir Singh |
a5b8a1 |
%clean
|
|
Karanbir Singh |
a5b8a1 |
rm -rf %{buildroot}
|
|
Karanbir Singh |
a5b8a1 |
|
|
Karanbir Singh |
a5b8a1 |
%files
|
|
Karanbir Singh |
a5b8a1 |
%defattr(0644,root,root,0755)
|
|
Karanbir Singh |
a5b8a1 |
/etc/redhat-release
|
|
Karanbir Singh |
a5b8a1 |
/etc/system-release
|
|
Karanbir Singh |
a5b8a1 |
/etc/centos-release
|
|
Karanbir Singh |
a3866a |
/etc/centos-release-upstream
|
|
Karanbir Singh |
a5b8a1 |
%config(noreplace) /etc/os-release
|
|
Karanbir Singh |
a5b8a1 |
%config /etc/system-release-cpe
|
|
Karanbir Singh |
a5b8a1 |
%config(noreplace) /etc/issue
|
|
Karanbir Singh |
a5b8a1 |
%config(noreplace) /etc/issue.net
|
|
Karanbir Singh |
a5b8a1 |
/etc/pki/rpm-gpg/
|
|
|
c742ab |
%config(noreplace) /etc/yum.repos.d/*
|
|
Karanbir Singh |
a5b8a1 |
/etc/rpm/macros.dist
|
|
|
c742ab |
%{_docdir}/redhat-release
|
|
|
c742ab |
%{_docdir}/centos-release/*
|
|
|
c742ab |
%{_datadir}/redhat-release
|
|
|
c742ab |
%{_datadir}/centos-release/*
|
|
Karanbir Singh |
a5b8a1 |
%{_prefix}/lib/systemd/system-preset/*
|
|
Karanbir Singh |
a5b8a1 |
|
|
Karanbir Singh |
a5b8a1 |
%changelog
|
|
Karanbir Singh |
f3a9a7 |
* Tue Mar 31 2015 Karanbir Singh <kbsingh@centos.org>
|
|
Karanbir Singh |
f3a9a7 |
- rework upstream communication
|
|
Karanbir Singh |
f3a9a7 |
- re-establish redhat-release as a symlink from centos-release
|
|
Karanbir Singh |
f3a9a7 |
|
|
Karanbir Singh |
6308ee |
* Fri Mar 27 2015 Karanbir Singh <kbsingh@centos.org>
|
|
Karanbir Singh |
6308ee |
- dont auto enable the initial-setup tui mode
|
|
Karanbir Singh |
6308ee |
|
|
Karanbir Singh |
54ca24 |
* Thu Mar 19 2015 Karanbir Singh <kbsingh@centos.org>
|
|
Karanbir Singh |
54ca24 |
- Bump Release for 1503
|
|
Karanbir Singh |
54ca24 |
- add ABRT specific content to os-release
|
|
Karanbir Singh |
54ca24 |
- split redhat-release from centos-release
|
|
Karanbir Singh |
54ca24 |
|
|
Karanbir Singh |
cfa6c6 |
* Tue Feb 17 2015 Karanbir Singh <kbsingh@centos.org>
|
|
Karanbir Singh |
cfa6c6 |
- Include the CR repo for upcoming 7.1 release ( and beyond )
|
|
Karanbir Singh |
cfa6c6 |
|
|
Karanbir Singh |
84825e |
* Thu Aug 21 2014 Karanbir Singh <kbsingh@centos.org>
|
|
Karanbir Singh |
84825e |
- add a yum var to route mirrorlist accurately
|
|
Karanbir Singh |
84825e |
- add CentOS-fastrack repo
|
|
Karanbir Singh |
84825e |
- Trim the CentOS-Debug-7 key
|
|
Karanbir Singh |
84825e |
- rename the Debug repo to base-debug so yum-utils can consume easier
|
|
Karanbir Singh |
84825e |
|
|
Karanbir Singh |
c3f036 |
* Tue Jul 15 2014 Karanbir Singh <kbsingh@centos.org>
|
|
Karanbir Singh |
c3f036 |
- add CentOS-7 Debug rpm key
|
|
Karanbir Singh |
c3f036 |
|
|
|
c742ab |
* Fri Jul 4 2014 Karanbir Singh <kbsingh@centos.org>
|
|
|
c742ab |
- Roll in the final name change conversation results
|
|
|
c742ab |
- Stage for release content
|
|
|
c742ab |
- Add yum repos
|
|
|
c742ab |
- Add distro keys ( incomplete )
|
|
|
c742ab |
|
|
|
c742ab |
* Mon Jun 30 2014 Karanbir Singh <kbsingh@centos.org>
|
|
|
c742ab |
- add a macro to macros.dist to indicate just centos as well
|
|
|
c742ab |
|
|
|
c742ab |
* Tue Jun 24 2014 Karanbir Singh <kbsingh@centos.org>
|
|
|
c742ab |
- Trial run for CentOS DateStamp release
|
|
|
c742ab |
- Add stubs for the yum repos
|
|
|
c742ab |
- fix os-release to only have one ID_LIKE ( Avij #7171)
|
|
|
c742ab |
- make the yum repo definitions be config noreplace ( Trevor )
|
|
|
c742ab |
|
|
Karanbir Singh |
515186 |
* Tue Jun 17 2014 Karanbir Singh <kbsingh@centos.org> 7.0.el7.0.140617.3
|
|
Karanbir Singh |
515186 |
- rebuild for 2014-06-17 pub qa release
|
|
Karanbir Singh |
8862a1 |
- ensure we get the right cpe info
|
|
Karanbir Singh |
8862a1 |
- ensure centos-release is trackable
|
|
Karanbir Singh |
515186 |
|
|
Karanbir Singh |
b7269c |
* Sat Jun 14 2014 Karanbir Singh <kbsingh@centos.org> 7.0.el7.0.140614.2
|
|
Karanbir Singh |
b7269c |
- prep for public QA release tag as broken
|
|
Karanbir Singh |
b7269c |
|
|
Karanbir Singh |
a5b8a1 |
* Fri Jun 13 2014 Karanbir Singh <kbsingh@centos.org> 7-0.el7
|
|
Karanbir Singh |
a5b8a1 |
- initial setup for centos-rc
|