645bb5b
Summary:        Fedora package repositories
645bb5b
Name:           fedora-repos
1de5783
Version:        25
Mohan Boddu 9ad2093
Release:        4
645bb5b
License:        MIT
645bb5b
Group:          System Environment/Base
1de5783
URL:            https://pagure.io/fedora-repos/
645bb5b
# tarball is created by running make archive in the git checkout
645bb5b
Source:         %{name}-%{version}.tar.bz2
645bb5b
Provides:       fedora-repos(%{version})
645bb5b
Requires:       system-release(%{version})
Mohan Boddu f6f10dc
Obsoletes:      fedora-repos-rawhide <= 25-0.3
26a3771
Obsoletes:      fedora-repos-anaconda < 22-0.3
645bb5b
BuildArch:      noarch
645bb5b
645bb5b
%description
645bb5b
Fedora package repository files for yum and dnf along with gpg public keys
645bb5b
645bb5b
%package rawhide
645bb5b
Summary:        Rawhide repo definitions
645bb5b
Requires:       fedora-repos = %{version}-%{release}
26a3771
Obsoletes:      fedora-release-rawhide <= 22-0.3
645bb5b
645bb5b
%description rawhide
645bb5b
This package provides the rawhide repo definitions.
645bb5b
645bb5b
645bb5b
%prep
645bb5b
%setup -q
645bb5b
645bb5b
%build
645bb5b
645bb5b
%install
645bb5b
# Install the keys
645bb5b
install -d -m 755 $RPM_BUILD_ROOT/etc/pki/rpm-gpg
645bb5b
install -m 644 RPM-GPG-KEY* $RPM_BUILD_ROOT/etc/pki/rpm-gpg/
645bb5b
645bb5b
# Link the primary/secondary keys to arch files, according to archmap.
645bb5b
# Ex: if there's a key named RPM-GPG-KEY-fedora-19-primary, and archmap
645bb5b
#     says "fedora-19-primary: i386 x86_64",
645bb5b
#     RPM-GPG-KEY-fedora-19-{i386,x86_64} will be symlinked to that key.
645bb5b
pushd $RPM_BUILD_ROOT/etc/pki/rpm-gpg/
645bb5b
for keyfile in RPM-GPG-KEY*; do
645bb5b
    key=${keyfile#RPM-GPG-KEY-} # e.g. 'fedora-20-primary'
645bb5b
    arches=$(sed -ne "s/^${key}://p" $RPM_BUILD_DIR/%{name}-%{version}/archmap) \
645bb5b
        || echo "WARNING: no archmap entry for $key"
645bb5b
    for arch in $arches; do
645bb5b
        # replace last part with $arch (fedora-20-primary -> fedora-20-$arch)
645bb5b
        ln -s $keyfile ${keyfile%%-*}-$arch # NOTE: RPM replaces %% with %
645bb5b
    done
645bb5b
done
645bb5b
# and add symlink for compat generic location
645bb5b
ln -s RPM-GPG-KEY-fedora-%{version}-primary RPM-GPG-KEY-%{version}-fedora
645bb5b
popd
645bb5b
645bb5b
install -d -m 755 $RPM_BUILD_ROOT/etc/yum.repos.d
645bb5b
for file in fedora*repo ; do
645bb5b
  install -m 644 $file $RPM_BUILD_ROOT/etc/yum.repos.d
645bb5b
done
645bb5b
645bb5b
645bb5b
%files
645bb5b
%defattr(-,root,root,-)
645bb5b
%dir /etc/yum.repos.d
645bb5b
%config(noreplace) /etc/yum.repos.d/fedora.repo
Mohan Boddu f6f10dc
%config(noreplace) /etc/yum.repos.d/fedora-cisco-openh264.repo
645bb5b
%config(noreplace) /etc/yum.repos.d/fedora-updates*.repo
645bb5b
%dir /etc/pki/rpm-gpg
645bb5b
/etc/pki/rpm-gpg/*
645bb5b
645bb5b
%files rawhide
645bb5b
%defattr(-,root,root,-)
645bb5b
%config(noreplace) /etc/yum.repos.d/fedora-rawhide.repo
645bb5b
645bb5b
%changelog
Mohan Boddu 9ad2093
* Tue May 16 2017 Dennis Gilmore <dennis@ausil.us> - 25-4
Mohan Boddu 9ad2093
- add the missing Fedora 14 secondary arch key
Mohan Boddu 9ad2093
- add the new modularity key
Mohan Boddu 9ad2093
Mohan Boddu 945aaa0
* Sun Mar 05 2017 Mohan Boddu <mboddu@redhat.com> - 25-3
Mohan Boddu 945aaa0
- Updating Fedora 26 key 
Mohan Boddu 945aaa0
a31c591
* Thu Feb 23 2017 Dennis Gilmore <dennis@ausil.us> - 25-2
a31c591
- add the Fedora 27 key and matching archmap entry
a31c591
- fixup archmap for f26 arch changes
a31c591
Mohan Boddu b0e1e2d
* Wed Nov 02 2016 Mohan Boddu <mboddu@redhat.com> - 25-1
Mohan Boddu b0e1e2d
- setup for f25 final		
Mohan Boddu b0e1e2d
- disable updates-testing		
Mohan Boddu b0e1e2d
- set metadata expiry for fedora repo
Mohan Boddu b0e1e2d
0bebd88
* Mon Aug 08 2016 Dennis Gilmore <dennis@ausil.us> - 25-0.5
0bebd88
- fix up archmap file
0bebd88
- add f26 gpg keys
0bebd88
Mohan Boddu f6f10dc
* Fri Jul 22 2016 Mohan Boddu <mboddu@redhat.com> - 25-0.4
Mohan Boddu f6f10dc
- Disable Rawhide
Mohan Boddu f6f10dc
- Enable fedora, updates, updates-testing
Mohan Boddu f6f10dc
Mohan Boddu f6f10dc
* Fri Jun 06 2016 Dennis Gilmore <dennis@ausil.us> - 25-0.3
Mohan Boddu f6f10dc
- add the fedora build cisco shipped openh264 repo
Mohan Boddu f6f10dc
Mohan Boddu f6f10dc
* Thu Mar 31 2016 Dennis Gilmore <dennis@ausil.us> - 25-0.2
Mohan Boddu f6f10dc
- add the Fedora 25 gpg keys
Mohan Boddu f6f10dc
1de5783
* Tue Feb 23 2016 Dennis Gilmore <dennis@ausil.us> - 25-0.1
1de5783
- Setup for rawhide being f25