[Ovirt-devel] [PATCH] ovirt-release RPM

Perry N. Myers pmyers at redhat.com
Tue Jul 29 00:08:31 UTC 2008



Alan Pevec wrote:
> For now only ovirt.org repo configuration,
> to make it easy to install packages which aren't in Fedora yet:
> 
> rpm -ivh http://ovirt.org/repos/ovirt/9/ovirt-release-0.91-1.fc9.noarch.rpm
> yum install ovirt-wui ...

ACK

Perry

> Signed-off-by: Alan Pevec <apevec at redhat.com>
> ---
>  common/.gitignore         |    2 ++
>  common/Makefile           |   14 ++++++++++++++
>  common/ovirt-release.spec |   38 ++++++++++++++++++++++++++++++++++++++
>  common/ovirt.repo         |    5 +++++
>  common/version            |    1 +
>  5 files changed, 60 insertions(+), 0 deletions(-)
>  create mode 100644 common/.gitignore
>  create mode 100644 common/Makefile
>  create mode 100644 common/ovirt-release.spec
>  create mode 100644 common/ovirt.repo
>  create mode 100644 common/version
> 
> diff --git a/common/.gitignore b/common/.gitignore
> new file mode 100644
> index 0000000..a962f42
> --- /dev/null
> +++ b/common/.gitignore
> @@ -0,0 +1,2 @@
> +*~
> +rpm-build
> diff --git a/common/Makefile b/common/Makefile
> new file mode 100644
> index 0000000..9956ea7
> --- /dev/null
> +++ b/common/Makefile
> @@ -0,0 +1,14 @@
> +pkg_name = ovirt-release
> +FILES = ovirt-release.spec ovirt.repo version
> +
> +all: rpms
> +include ../common/release.mk
> +
> +clean:
> +	rm -rf rpm-build
> +
> +tar: clean
> +	mkdir -p rpm-build
> +	cp $(FILES) rpm-build/
> +
> +.PHONY: all clean tar
> diff --git a/common/ovirt-release.spec b/common/ovirt-release.spec
> new file mode 100644
> index 0000000..ffbda08
> --- /dev/null
> +++ b/common/ovirt-release.spec
> @@ -0,0 +1,38 @@
> +Summary:        ovirt.org Repository Configuration
> +Name:           ovirt-release
> +Source0:        ovirt.repo
> +Source1:        version
> +Version:        %(echo `awk '{ print $1 }' %{SOURCE1}`)
> +Release:        %(echo `awk '{ print $2 }' %{SOURCE1}`)%{?dist}
> +License:        GPLv2
> +Group:          System Environment/Base
> +URL:            http://ovirt.org
> +BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
> +BuildArch:      noarch
> +
> +%description
> +ovirt.org Repository contains packages and fixes required for oVirt
> +which are not yet in Fedora.
> +
> +%prep
> +%setup -c -T
> +
> +%build
> +
> +%install
> +%{__rm} -rf %{buildroot}
> +
> +install -dm 755 %{buildroot}/%{_sysconfdir}/yum.repos.d
> +install -pm 644 %{SOURCE0} %{buildroot}/%{_sysconfdir}/yum.repos.d
> +
> +
> +%clean
> +%{__rm} -rf %{buildroot}
> +
> +%files
> +%defattr(-,root,root,-)
> +%config %{_sysconfdir}/yum.repos.d/*
> +
> +%changelog
> +* Tue Jul 29 2008 Alan Pevec <apevec at redhat.com> 0.91-1
> +- Initial build.
> diff --git a/common/ovirt.repo b/common/ovirt.repo
> new file mode 100644
> index 0000000..c5d60cd
> --- /dev/null
> +++ b/common/ovirt.repo
> @@ -0,0 +1,5 @@
> +[ovirt]
> +name=ovirt
> +baseurl=http://ovirt.org/repos/ovirt/9/$basearch/
> +enabled=1
> +gpgcheck=0
> diff --git a/common/version b/common/version
> new file mode 100644
> index 0000000..f644984
> --- /dev/null
> +++ b/common/version
> @@ -0,0 +1 @@
> +0.91 1

-- 
|=-        Red Hat, Engineering, Emerging Technologies, Boston        -=|
|=-                     Email: pmyers at redhat.com                      -=|
|=-         Office: +1 412 474 3552   Mobile: +1 703 362 9622         -=|
|=- GnuPG: E65E4F3D 88F9 F1C9 C2F3 1303 01FE 817C C5D2 8B91 E65E 4F3D -=|




More information about the ovirt-devel mailing list