forked from pool/libmirage
Jan Engelhardt
8663f54222
OBS-URL: https://build.opensuse.org/package/show/filesystems/libmirage?expand=0&rev=55
177 lines
5.2 KiB
RPMSpec
177 lines
5.2 KiB
RPMSpec
#
|
|
# spec file for package libmirage
|
|
#
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: libmirage
|
|
%define lname libmirage11
|
|
%define pname 3_2
|
|
Summary: A CD-ROM image access library
|
|
License: GPL-2.0-or-later
|
|
Group: Development/Libraries/C and C++
|
|
Version: 3.2.2
|
|
Release: 0
|
|
URL: http://cdemu.sf.net/about/libmirage/
|
|
|
|
#Git-Clone: git://git.code.sf.net/p/cdemu/code
|
|
Source: https://downloads.sf.net/cdemu/%name-%version.tar.bz2
|
|
Patch1: 0001-libMirage-CSO-filter-validate-part-size.patch
|
|
Patch2: 0002-libMirage-CSO-filter-replaced-a-g_assert-with-error-.patch
|
|
Patch3: CVE-2019-15757.patch
|
|
BuildRequires: cmake >= 2.8.5
|
|
BuildRequires: intltool >= 0.21
|
|
BuildRequires: pkg-config >= 0.16
|
|
BuildRequires: pkgconfig(bzip2) >= 1.0.0
|
|
BuildRequires: pkgconfig(gio-2.0) >= 2.38
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.38
|
|
BuildRequires: pkgconfig(gmodule-2.0) >= 2.38
|
|
BuildRequires: pkgconfig(gobject-2.0) >= 2.38
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 1.30.0
|
|
BuildRequires: pkgconfig(gtk-doc) >= 1.4
|
|
BuildRequires: pkgconfig(liblzma) >= 5.0.0
|
|
BuildRequires: pkgconfig(samplerate) >= 0.1.0
|
|
BuildRequires: pkgconfig(shared-mime-info)
|
|
BuildRequires: pkgconfig(sndfile) >= 1.0.0
|
|
BuildRequires: pkgconfig(zlib) >= 1.2.4
|
|
Recommends: %name-lang
|
|
|
|
%description
|
|
A CD-ROM image access library part of the cdemu suite.
|
|
|
|
libmirage provides uniform access to the data stored in different
|
|
image formats by creating a representation of disc stored in image
|
|
file.
|
|
|
|
%package lang
|
|
Summary: Translations for libmirage
|
|
Group: System/Localization
|
|
Provides: %name-lang-all = %version
|
|
Supplements: packageand(bundle-lang-other:%lname)
|
|
BuildArch: noarch
|
|
|
|
%description lang
|
|
Provides translations for the "%name" package.
|
|
|
|
%package -n %lname
|
|
Summary: A CD-ROM image access library
|
|
# Technically Suggests:, but pretty useless without
|
|
Group: System/Libraries
|
|
Requires: libmirage-%pname >= %version
|
|
|
|
%description -n %lname
|
|
A CD-ROM image access library part of the cdemu suite.
|
|
|
|
libmirage provides uniform access to the data stored in different
|
|
image formats by creating a representation of disc stored in image
|
|
file.
|
|
|
|
%package %pname
|
|
Summary: CD-ROM image format plugins for libmirage
|
|
Group: System/Libraries
|
|
Recommends: libmirage-data
|
|
|
|
%description %pname
|
|
A CD-ROM image access library part of the cdemu suite.
|
|
|
|
libmirage provides uniform access to the data stored in different
|
|
image formats by creating a representation of disc stored in image
|
|
file.
|
|
|
|
This package provides the image format plugins for libmirage.
|
|
|
|
%package devel
|
|
Summary: Development files for libmirage, a CD-ROM image access library
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %lname = %version
|
|
Requires: glib2-devel
|
|
|
|
%description devel
|
|
A CD-ROM image access library part of the cdemu suite.
|
|
|
|
libmirage provides uniform access to the data stored in different
|
|
image formats by creating a representation of disc stored in image
|
|
file.
|
|
|
|
This package contains files needed to develop with libmirage.
|
|
|
|
%package data
|
|
Summary: MIME type definitions and documentation for libmirage
|
|
Group: Development/Libraries/C and C++
|
|
Requires(post): shared-mime-info
|
|
Requires(postun): shared-mime-info
|
|
BuildArch: noarch
|
|
|
|
%description data
|
|
libmirage provides uniform access to the data stored in different
|
|
image formats by creating a representation of disc stored in image
|
|
file.
|
|
|
|
This package contains the MIME type definitions and documentation.
|
|
|
|
%package -n typelib-1_0-libmirage-%pname
|
|
Summary: Introspection bindings for the libmirage CD-ROM image access library
|
|
Group: System/Libraries
|
|
|
|
%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.
|
|
|
|
This package provides the GObject Introspection bindings for libmirage.
|
|
|
|
%prep
|
|
%autosetup -p2
|
|
|
|
%build
|
|
%cmake -DCMAKE_MODULE_LINKER_FLAGS=""
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%cmake_install
|
|
%find_lang %name
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
%post data
|
|
%mime_database_post
|
|
|
|
%postun data
|
|
%mime_database_postun
|
|
|
|
%files -n %lname
|
|
%_libdir/libmirage.so.11*
|
|
|
|
%files %pname
|
|
%_libdir/libmirage-3*/
|
|
|
|
%files data
|
|
%_datadir/gtk-doc/
|
|
%_datadir/mime/packages/*
|
|
|
|
%files devel
|
|
%_includedir/libmirage-3*/
|
|
%_libdir/libmirage.so
|
|
%_libdir/pkgconfig/libmirage.pc
|
|
%_datadir/gir-1.0
|
|
|
|
%files lang -f %name.lang
|
|
|
|
%files -n typelib-1_0-libmirage-%pname
|
|
%_libdir/girepository-1.0
|
|
|
|
%changelog
|