| 1 | Name: virtualbox-repo
|
|---|
| 2 | Version: 5
|
|---|
| 3 | Release: 1
|
|---|
| 4 | Summary: VirtualBox Repository Configuration
|
|---|
| 5 | Group: System Environment/Base
|
|---|
| 6 | License: MIT
|
|---|
| 7 | URL: http://www.virtualbox.org
|
|---|
| 8 | Source0: RPM-GPG-KEY-virtualbox
|
|---|
| 9 | Source1: virtualbox.repo
|
|---|
| 10 | BuildRoot: %{_builddir}/%{name}-%{version}-rpmroot
|
|---|
| 11 | BuildArch: noarch
|
|---|
| 12 | Requires: redhat-release >= %{version}
|
|---|
| 13 |
|
|---|
| 14 | %description
|
|---|
| 15 | This package installs the repository GPG and repo files for the VirtualBox software repository.
|
|---|
| 16 |
|
|---|
| 17 | %prep
|
|---|
| 18 | %setup -c -T
|
|---|
| 19 |
|
|---|
| 20 | %build
|
|---|
| 21 |
|
|---|
| 22 | %install
|
|---|
| 23 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 24 |
|
|---|
| 25 | # gpg
|
|---|
| 26 | install -Dpm 644 %{SOURCE0} $RPM_BUILD_ROOT%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-virtualbox
|
|---|
| 27 |
|
|---|
| 28 | # yum
|
|---|
| 29 | install -dm 755 $RPM_BUILD_ROOT%{_sysconfdir}/yum.repos.d
|
|---|
| 30 | install -pm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/yum.repos.d
|
|---|
| 31 |
|
|---|
| 32 | %clean
|
|---|
| 33 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 34 |
|
|---|
| 35 | %files
|
|---|
| 36 | %defattr(-,root,root,-)
|
|---|
| 37 | %{_sysconfdir}/pki/rpm-gpg/*
|
|---|
| 38 | %config %{_sysconfdir}/yum.repos.d/*
|
|---|
| 39 |
|
|---|
| 40 | %changelog
|
|---|
| 41 | * Fri Oct 23 2009 James Lucas - 5-1
|
|---|
| 42 | - Initial spec file
|
|---|