From fb1cf1fe13edfbf6c52ee7132ceeaf7463107345cc358cbf98dc152d98ebe654 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 10 Jun 2013 12:06:23 +0000 Subject: [PATCH] Add patch: proper-versioning-of-the-introspection-typelib OBS-URL: https://build.opensuse.org/package/show/filesystems/libmirage?expand=0&rev=23 --- ...-versioning-of-the-introspection-typ.patch | 25 +++++++++++++++++++ libmirage.changes | 2 ++ libmirage.spec | 8 +++--- 3 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 0001-libMirage-proper-versioning-of-the-introspection-typ.patch diff --git a/0001-libMirage-proper-versioning-of-the-introspection-typ.patch b/0001-libMirage-proper-versioning-of-the-introspection-typ.patch new file mode 100644 index 0000000..dabcdab --- /dev/null +++ b/0001-libMirage-proper-versioning-of-the-introspection-typ.patch @@ -0,0 +1,25 @@ +From 1f13f0af6dcc0014b27dc9135279267ff21c3199 Mon Sep 17 00:00:00 2001 +From: Rok Mandeljc +Date: Sun, 9 Jun 2013 18:35:00 +0200 +Subject: [PATCH] libMirage: proper versioning of the introspection typelib + +--- + libmirage/CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libmirage/CMakeLists.txt b/libmirage/CMakeLists.txt +index c265dd2..6d33b40 100644 +--- a/libmirage/CMakeLists.txt ++++ b/libmirage/CMakeLists.txt +@@ -221,7 +221,7 @@ endif () + # *** Introspection *** + if (INTROSPECTION_ENABLED AND INTROSPECTION_FOUND) + gobject_introspection ( +- FILENAME libMirage-2.0.gir ++ FILENAME libMirage-${MIRAGE_MAJOR_VERSION}.${MIRAGE_MINOR_VERSION}.gir + NSVERSION ${MIRAGE_VERSION_SHORT} + INCLUDES GObject-2.0 Gio-2.0 GLib-2.0 GModule-2.0 + LIBRARY mirage +-- +1.8.2 + diff --git a/libmirage.changes b/libmirage.changes index 4813c2b..e7a68cb 100644 --- a/libmirage.changes +++ b/libmirage.changes @@ -10,6 +10,8 @@ Sun Jun 9 13:54:54 UTC 2013 - jengelh@inai.de 0001-libMirage-READCD-Parser-readcd-from-cdrtools-appears.patch, 0001-libMirage-READCD-Parser-when-verifying-the-file-don-.patch, 0001-libMirage-SNDFILE-filter-instead-of-a-single-frame-c.patch +- Add (cherry-picked fixes): + 0001-libMirage-proper-versioning-of-the-introspection-typ.patch ------------------------------------------------------------------- Tue Mar 12 09:30:09 UTC 2013 - jengelh@inai.de diff --git a/libmirage.spec b/libmirage.spec index 7306b90..3ee9fc5 100644 --- a/libmirage.spec +++ b/libmirage.spec @@ -30,6 +30,7 @@ Url: http://cdemu.sf.net/ #Git-Clone: git://git.code.sf.net/p/cdemu/code #DL-URL: http://downloads.sf.net/cdemu/%name-%version.tar.bz2 Source: http://downloads.sf.net/cdemu/%name-%version.tar.xz +Patch1: 0001-libMirage-proper-versioning-of-the-introspection-typ.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: cmake >= 2.8.5 BuildRequires: pkgconfig >= 0.16 @@ -116,11 +117,11 @@ file. This package contains the MIME type definitions and documentation. -%package -n typelib-1_0-libmirage-2_0 +%package -n typelib-1_0-libmirage-%pname Summary: The libmirage CD-ROM image access library - introspection bindings Group: System/Libraries -%description -n typelib-1_0-libmirage-2_0 +%description -n typelib-1_0-libmirage-%pname libmirage provides uniform access to the data stored in different image formats by creating a representation of disc stored in image file. @@ -129,6 +130,7 @@ This package provides the GObject Introspection bindings for libmirage. %prep %setup -q +%patch -P 1 -p2 %build # gir is busted on 12.1 @@ -176,7 +178,7 @@ update-mime-database %{_datadir}/mime || :; %endif %if 0%{?suse_version} != 1210 -%files -n typelib-1_0-libmirage-2_0 +%files -n typelib-1_0-libmirage-%pname %defattr(-,root,root) %_libdir/girepository-1.0 %endif