|
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
|
|
|
c742ab |
%define release_name Core
|
|
Karanbir Singh |
b7269c |
%define base_release_version 7
|
|
Karanbir Singh |
b7269c |
%define full_release_version 7
|
|
Karanbir Singh |
a5b8a1 |
%define dist_release_version 7
|
|
|
c742ab |
%define upstream_rel 7.0
|
|
|
c742ab |
%define centos_rel 0.1406
|
|
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}
|
|
|
c742ab |
Release: %{centos_rel}%{?dist}.2.3
|
|
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 |
Source0: centos-release-%{base_release_version}.tar.gz
|
|
Karanbir Singh |
a5b8a1 |
Source1: 85-display-manager.preset
|
|
Karanbir Singh |
a5b8a1 |
Source2: 90-default.preset
|
|
Karanbir Singh |
a5b8a1 |
|
|
Karanbir Singh |
a5b8a1 |
|
|
Karanbir Singh |
a5b8a1 |
%description
|
|
Karanbir Singh |
a5b8a1 |
%{product_family} release files
|
|
Karanbir Singh |
a5b8a1 |
|
|
Karanbir Singh |
a5b8a1 |
%prep
|
|
Karanbir Singh |
a5b8a1 |
%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
|
|
|
c742ab |
#echo "%{product_family} release %{full_release_version} (Rebuilt from: RHEL %{upstream_rel})" > %{buildroot}/etc/redhat-release
|
|
Karanbir Singh |
a5b8a1 |
ln -s centos-release %{buildroot}/etc/system-release
|
|
Karanbir Singh |
a5b8a1 |
ln -s centos-release %{buildroot}/etc/redhat-release
|
|
|
c742ab |
#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/"
|
|
Karanbir Singh |
8862a1 |
|
|
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
|
|
Karanbir Singh |
a5b8a1 |
for file in RPM-GPG-KEY* ; do
|
|
Karanbir Singh |
a5b8a1 |
install -m 644 $file %{buildroot}/etc/pki/rpm-gpg
|
|
Karanbir Singh |
a5b8a1 |
done
|
|
Karanbir Singh |
a5b8a1 |
|
|
|
c742ab |
# copy yum repos
|
|
|
c742ab |
mkdir -p -m 755 %{buildroot}/etc/yum.repos.d
|
|
|
c742ab |
for file in CentOS-*.repo; do
|
|
|
c742ab |
install -m 644 $file %{buildroot}/etc/yum.repos.d
|
|
|
c742ab |
done
|
|
|
c742ab |
|
|
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
|
|
|
c742ab |
install -m 644 EULA %{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
|
|
|
c742ab |
install -m 644 GPL %{buildroot}/%{_docdir}/centos-release
|
|
|
c742ab |
install -m 644 Contributors %{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 |
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
|
|
|
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
|