diff --git a/0001-oses-Add-Fedora21.patch b/0001-oses-Add-Fedora21.patch new file mode 100644 index 0000000..06f469d --- /dev/null +++ b/0001-oses-Add-Fedora21.patch @@ -0,0 +1,154 @@ +From 6c6d713927bfe19627fc22ec67a211d6a1a28fc9 Mon Sep 17 00:00:00 2001 +Message-Id: <6c6d713927bfe19627fc22ec67a211d6a1a28fc9.1411422080.git.crobinso@redhat.com> +From: Cole Robinson +Date: Sun, 21 Sep 2014 15:41:51 -0400 +Subject: [PATCH libosinfo] oses: Add Fedora21 + +This just adds a plain Fedora21 entry. F21 is going to have different +versions like 'Workstation' and 'Server' but we don't seem to distinguish +for other distros so I just stuck with the pattern here. + +This currently doesn't work for detecting Workstation media, since their +volume IDs are truncated. Bug tracking that: + +https://bugzilla.redhat.com/show_bug.cgi?id=1145264 +Signed-off-by: Cole Robinson +--- + data/oses/fedora.xml.in | 86 ++++++++++++++++++++++ + .../Fedora-Server-DVD-x86_64-21_Alpha_TC7.iso.txt | 29 ++++++++ + 2 files changed, 115 insertions(+) + create mode 100644 test/isodata/fedora/fedora21/Fedora-Server-DVD-x86_64-21_Alpha_TC7.iso.txt + +diff --git a/data/oses/fedora.xml.in b/data/oses/fedora.xml.in +index 27cdd4a..1848a78 100644 +--- a/data/oses/fedora.xml.in ++++ b/data/oses/fedora.xml.in +@@ -1584,4 +1584,90 @@ + + + ++ ++ ++ fedora21 ++ <_name>Fedora 21 ++ 21 ++ <_vendor>Fedora Project ++ linux ++ fedora ++ ++ ++ ++ ++ ++ ++ Fedora.*21.*-i386 ++ LINUX ++ ++ isolinux/vmlinuz ++ isolinux/initrd.img ++ ++ ++ ++ ++ Fedora.*-21.*-x86_64 ++ LINUX ++ ++ isolinux/vmlinuz ++ isolinux/initrd.img ++ ++ ++ ++ ++ ++ ++ Fedora-Live-.*-i686-21 ++ LINUX ++ ++ isolinux/vmlinuz0 ++ isolinux/initrd0.img ++ ++ ++ ++ ++ Fedora-Live-.*-x86_64-21 ++ LINUX ++ ++ isolinux/vmlinuz0 ++ isolinux/initrd0.img ++ ++ ++ ++ ++ ++ Fedora ++ 21 ++ i386 ++ ++ ++ ++ ++ ++ Fedora ++ 21 ++ x86_64 ++ ++ ++ ++ ++ ++ 1 ++ 1000000000 ++ 1073741824 ++ 10737418240 ++ ++ ++ ++ ++ ++ + +diff --git a/test/isodata/fedora/fedora21/Fedora-Server-DVD-x86_64-21_Alpha_TC7.iso.txt b/test/isodata/fedora/fedora21/Fedora-Server-DVD-x86_64-21_Alpha_TC7.iso.txt +new file mode 100644 +index 0000000..f4e9436 +--- /dev/null ++++ b/test/isodata/fedora/fedora21/Fedora-Server-DVD-x86_64-21_Alpha_TC7.iso.txt +@@ -0,0 +1,29 @@ ++CD-ROM is in ISO 9660 format ++System id: LINUX ++Volume id: Fedora-S-21_A_T7-x86_64 ++Volume set id: ++Publisher id: ++Data preparer id: ++Application id: GENISOIMAGE ISO 9660/HFS FILESYSTEM CREATOR (C) 1993 E.YOUNGDALE (C) 1997-2006 J.PEARSON/J.SCHILLING (C) 2006-2007 CDRKIT TEAM ++Copyright File id: ++Abstract File id: ++Bibliographic File id: ++Volume set size is: 1 ++Volume set sequence number is: 1 ++Logical block size is: 2048 ++Volume size is: 979923 ++El Torito VD version 1 found, boot catalog is in sector 439 ++Joliet with UCS level 3 found ++Rock Ridge signatures version 1 found ++Eltorito validation header: ++ Hid 1 ++ Arch 0 (x86) ++ ID '' ++ Key 55 AA ++ Eltorito defaultboot header: ++ Bootid 88 (bootable) ++ Boot media 0 (No Emulation Boot) ++ Load segment 0 ++ Sys type 0 ++ Nsect 4 ++ Bootoff 1B8 440 +-- +2.1.0 + diff --git a/libosinfo.spec b/libosinfo.spec index e85492e..190b15b 100644 --- a/libosinfo.spec +++ b/libosinfo.spec @@ -18,10 +18,13 @@ Summary: A library for managing OS information for virtualization Name: libosinfo Version: 0.2.11 -Release: 1%{?dist}%{?extra_release} +Release: 2%{?dist}%{?extra_release} License: LGPLv2+ Group: Development/Libraries Source: https://fedorahosted.org/releases/l/i/%{name}/%{name}-%{version}.tar.gz + +# os: Add Fedora 21 +Patch0001: 0001-oses-Add-Fedora21.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) URL: http://libosinfo.org/ BuildRequires: intltool @@ -75,6 +78,9 @@ This package provides the Vala bindings for libosinfo library. %prep %setup -q +# os: Add Fedora 21 +%patch0001 -p1 + %build %if %{with_gir} %define gir_arg --enable-introspection=yes @@ -160,6 +166,9 @@ rm -fr %{buildroot} %{_datadir}/vala/vapi/libosinfo-1.0.vapi %changelog +* Mon Sep 22 2014 Cole Robinson - 0.2.11-2 +- os: Add Fedora 21 + * Tue Aug 26 2014 Christophe Fergeau 0.2.11-1 - New upstream release 0.2.11