|
|
91a08e |
Summary: Common release file to establish shared metadata for CentOS Storage SIG
|
|
|
91a08e |
Name: centos-release-storage-common
|
|
|
91a08e |
Epoch: 0
|
|
|
91a08e |
Version: 2
|
|
|
91a08e |
Release: 2%{?dist}
|
|
|
91a08e |
License: GPL
|
|
|
91a08e |
Group: System Environment/Base
|
|
|
91a08e |
Source0: RPM-GPG-KEY-CentOS-SIG-Storage
|
|
|
91a08e |
Source1: CentOS-Storage-common.repo
|
|
|
91a08e |
URL: http://wiki.centos.org/SpecialInterestGroup/Storage
|
|
|
91a08e |
BuildArch: noarch
|
|
|
91a08e |
|
|
|
91a08e |
Provides: centos-release-storage-common
|
|
|
91a08e |
%if 0%{?centos} >= 7
|
|
|
91a08e |
# $contentdir for altarch support was added with CentOS-7.5
|
|
|
91a08e |
Requires: centos-release >= 7-5.1804.el7.centos.2
|
|
|
91a08e |
%else
|
|
|
91a08e |
Requires: centos-release
|
|
|
91a08e |
%endif
|
|
|
91a08e |
|
|
|
91a08e |
BuildRoot: %{_tmppath}/%{name}-root
|
|
|
91a08e |
|
|
|
91a08e |
%description
|
|
|
91a08e |
Common files needed by other centos-release components in the Storage SIG
|
|
|
91a08e |
|
|
|
91a08e |
%prep
|
|
|
91a08e |
%setup -q -n %{name} -T -c
|
|
|
91a08e |
|
|
|
91a08e |
%install
|
|
|
91a08e |
rm -rf $RPM_BUILD_ROOT
|
|
|
91a08e |
mkdir -p $RPM_BUILD_ROOT/etc/pki/rpm-gpg/
|
|
|
91a08e |
install -m 644 %SOURCE0 $RPM_BUILD_ROOT/etc/pki/rpm-gpg/
|
|
|
91a08e |
mkdir -p $RPM_BUILD_ROOT/etc/yum.repos.d
|
|
|
91a08e |
install -m 644 %SOURCE1 $RPM_BUILD_ROOT/etc/yum.repos.d/
|
|
|
91a08e |
%if 0%{?centos} < 7
|
|
|
91a08e |
sed -i 's/\$contentdir/centos/g' $RPM_BUILD_ROOT/etc/yum.repos.d/$(basename %SOURCE1)
|
|
|
91a08e |
%endif
|
|
|
91a08e |
|
|
|
91a08e |
%clean
|
|
|
91a08e |
rm -rf $RPM_BUILD_ROOT
|
|
|
91a08e |
|
|
|
91a08e |
%files
|
|
|
91a08e |
%defattr(-,root,root)
|
|
|
91a08e |
/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Storage
|
|
|
91a08e |
/etc/yum.repos.d/CentOS-Storage-common.repo
|
|
|
91a08e |
|
|
|
91a08e |
%changelog
|
|
|
91a08e |
* Tue Jul 31 2018 Niels de Vos <ndevos@redhat.com> - 2-2
|
|
|
91a08e |
- Add support for altarch repositories
|
|
|
91a08e |
|
|
|
91a08e |
* Fri Sep 22 2017 Niels de Vos <ndevos@redhat.com> - 2-1
|
|
|
91a08e |
- Add CentOS-Storage-common.repo with shared debuginfo repo
|
|
|
91a08e |
|
|
|
91a08e |
* Thu Nov 12 2015 Niels de Vos <ndevos@redha.com> - 1-2
|
|
|
91a08e |
- rebuild for CentOS Extras
|
|
|
91a08e |
|
|
|
91a08e |
* Thu Nov 12 2015 Niels de Vos <ndevos@redha.com> - 1-1
|
|
|
91a08e |
- Basic setup with the gpg key
|
|
|
91a08e |
- Based on the centos-release-virt-common package
|