Name: Epoch: 1 Version: 1 Release: 1 Summary: repository files Group: System Environment/Base License: BSD URL: "Any Address" http://scotland.proximity.on.ca Source0: "name of GPG file" Source1: "name of repo file" BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch %description repository contains open source and other distributable software for Fedora. This package contains the repository GPG key as well as configuration for Yum. %prep %setup -c -T %build %install rm -rf $RPM_BUILD_ROOT # common install -Dpm 644 %{SOURCE0} \ $RPM_BUILD_ROOT%{_sysconfdir}/pki/rpm-gpg/"name of GPG file" # yum install -dm 755 $RPM_BUILD_ROOT%{_sysconfdir}/yum.repos.d install -pm 644 %{SOURCE1} \ $RPM_BUILD_ROOT%{_sysconfdir}/yum.repos.d %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{_sysconfdir}/pki/rpm-gpg/* %config(noreplace) %{_sysconfdir}/yum.repos.d/* %changelog * Tue Oct 06 2009 - 1-1 - Based on the old livna-release package