2012-05-21 19:31:11 +02:00
|
|
|
#
|
|
|
|
# spec file for package libmirage
|
|
|
|
#
|
2013-01-05 22:54:10 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2012-05-21 19:31:11 +02:00
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
2012-11-15 01:07:30 +01:00
|
|
|
|
|
|
|
|
2012-05-21 19:31:11 +02:00
|
|
|
Name: libmirage
|
2013-01-05 22:54:10 +01:00
|
|
|
%define lname libmirage7
|
2012-12-22 14:45:28 +01:00
|
|
|
%define pname 2_0
|
2012-05-21 19:31:11 +02:00
|
|
|
Summary: A CD-ROM image access library
|
|
|
|
License: GPL-2.0+
|
|
|
|
Group: Development/Libraries/C and C++
|
2012-12-22 14:45:28 +01:00
|
|
|
Version: 2.0.0
|
2012-11-15 01:07:30 +01:00
|
|
|
Release: 0
|
|
|
|
Url: http://cdemu.sf.net/
|
2012-05-21 19:31:11 +02:00
|
|
|
|
2012-11-15 01:07:30 +01:00
|
|
|
#Freecode-URL: https://freecode.com/projects/cdemu-for-linux
|
2012-12-22 14:45:28 +01:00
|
|
|
#Git-Clone: git://git.code.sf.net/p/cdemu/code
|
2013-03-15 23:50:47 +01:00
|
|
|
#DL-URL: http://downloads.sf.net/cdemu/%name-%version.tar.bz2
|
|
|
|
Source: %name-%version.tar.xz
|
2013-01-05 22:54:10 +01:00
|
|
|
Patch1: 0001-libMirage-CMake-fix-SOVERSION-which-should-be-set-to.patch
|
2013-02-24 21:10:53 +01:00
|
|
|
Patch2: 0001-libMirage-READCD-Parser-when-verifying-the-file-don-.patch
|
2013-02-24 23:57:44 +01:00
|
|
|
Patch3: 0001-libMirage-READCD-Parser-readcd-from-cdrtools-appears.patch
|
2013-03-12 10:34:26 +01:00
|
|
|
Patch4: 0001-libMirage-SNDFILE-filter-instead-of-a-single-frame-c.patch
|
2012-05-21 19:31:11 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-12-22 17:47:06 +01:00
|
|
|
BuildRequires: cmake >= 2.8.5
|
2013-01-05 22:54:10 +01:00
|
|
|
BuildRequires: pkgconfig >= 0.16
|
2012-11-15 01:07:30 +01:00
|
|
|
BuildRequires: xz
|
2012-12-22 14:45:28 +01:00
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.28
|
|
|
|
BuildRequires: pkgconfig(gmodule-2.0) >= 2.28
|
|
|
|
BuildRequires: pkgconfig(gobject-2.0) >= 2.28
|
|
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 1.30.0
|
|
|
|
BuildRequires: pkgconfig(gtk-doc) >= 1.4
|
|
|
|
BuildRequires: pkgconfig(liblzma) >= 5.0.0
|
2012-11-15 01:07:30 +01:00
|
|
|
BuildRequires: pkgconfig(sndfile) >= 1.0.0
|
2012-12-22 14:45:28 +01:00
|
|
|
BuildRequires: pkgconfig(zlib) >= 1.2.0
|
2013-02-23 12:53:55 +01:00
|
|
|
%if 0%{?fedora_version}
|
|
|
|
BuildRequires: bzip2-devel >= 1.0.0
|
|
|
|
%else
|
|
|
|
BuildRequires: pkgconfig(bzip2) >= 1.0.0
|
|
|
|
%endif
|
2012-05-21 19:31:11 +02:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2012-12-22 14:45:28 +01:00
|
|
|
%package -n %lname
|
2012-05-21 19:31:11 +02:00
|
|
|
Summary: A CD-ROM image access library
|
|
|
|
Group: System/Libraries
|
|
|
|
# Technically Suggests:, but pretty useless without
|
2012-12-22 14:45:28 +01:00
|
|
|
Requires: libmirage-2_0 >= 2.0
|
2012-05-21 19:31:11 +02:00
|
|
|
|
2012-12-22 14:45:28 +01:00
|
|
|
%description -n %lname
|
2012-05-21 19:31:11 +02:00
|
|
|
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.
|
|
|
|
|
2012-12-22 14:45:28 +01:00
|
|
|
%package 2_0
|
2012-11-15 01:07:30 +01:00
|
|
|
Summary: CD-ROM image format plugins for libmirage
|
|
|
|
Group: System/Libraries
|
2012-12-22 14:45:28 +01:00
|
|
|
%if 0%{?suse_version}
|
2012-11-15 01:07:30 +01:00
|
|
|
Recommends: libmirage-data
|
2012-12-22 14:45:28 +01:00
|
|
|
%else
|
|
|
|
Requires: libmirage-data
|
|
|
|
%endif
|
2012-05-21 19:31:11 +02:00
|
|
|
|
2012-12-22 14:45:28 +01:00
|
|
|
%description 2_0
|
2012-05-21 19:31:11 +02:00
|
|
|
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
|
|
|
|
|
|
|
|
%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
|
2012-11-15 01:07:30 +01:00
|
|
|
Summary: MIME type definitions and documentation for libmirage
|
|
|
|
Group: Development/Libraries/C and C++
|
2012-05-21 19:31:11 +02:00
|
|
|
Requires(post): shared-mime-info
|
|
|
|
Requires(postun): shared-mime-info
|
|
|
|
%if 0%{?suse_version} >= 1140
|
2012-11-15 01:07:30 +01:00
|
|
|
BuildArch: noarch
|
2012-05-21 19:31:11 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2012-12-22 14:45:28 +01:00
|
|
|
%package -n typelib-1_0-libmirage-2_0
|
|
|
|
Summary: The libmirage CD-ROM image access library - introspection bindings
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n typelib-1_0-libmirage-2_0
|
|
|
|
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.
|
|
|
|
|
2012-05-21 19:31:11 +02:00
|
|
|
%prep
|
2012-12-22 14:45:28 +01:00
|
|
|
%setup -Tcqa0
|
2013-03-12 10:34:26 +01:00
|
|
|
%patch -P 1 -P 2 -P 3 -P 4 -p2
|
2012-05-21 19:31:11 +02:00
|
|
|
|
|
|
|
%build
|
2013-01-05 22:54:10 +01:00
|
|
|
# gir is busted on 12.1
|
|
|
|
cmake . \
|
|
|
|
%if 0%{?suse_version} == 1210
|
|
|
|
-DINTROSPECTION_ENABLED=0 \
|
|
|
|
%endif
|
|
|
|
-DCMAKE_INSTALL_PREFIX:PATH="%_prefix" \
|
|
|
|
-DCMAKE_C_FLAGS:STRING="%optflags";
|
2012-05-21 19:31:11 +02:00
|
|
|
make %{?_smp_mflags};
|
|
|
|
|
|
|
|
%install
|
|
|
|
b="%buildroot";
|
|
|
|
make install DESTDIR="$b";
|
|
|
|
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post data
|
|
|
|
update-mime-database %{_datadir}/mime || :;
|
|
|
|
|
|
|
|
%postun data
|
|
|
|
update-mime-database %{_datadir}/mime || :;
|
|
|
|
|
2012-12-22 14:45:28 +01:00
|
|
|
%files -n %lname
|
2012-05-21 19:31:11 +02:00
|
|
|
%defattr(-,root,root)
|
2012-12-22 14:45:28 +01:00
|
|
|
%_libdir/libmirage.so.*
|
2012-05-21 19:31:11 +02:00
|
|
|
|
2012-12-22 14:45:28 +01:00
|
|
|
%files 2_0
|
2012-05-21 19:31:11 +02:00
|
|
|
%defattr(-,root,root)
|
2012-12-22 14:45:28 +01:00
|
|
|
%_libdir/libmirage-2.0
|
2012-05-21 19:31:11 +02:00
|
|
|
|
|
|
|
%files data
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_datadir/gtk-doc
|
|
|
|
%_datadir/mime/packages/*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_includedir/libmirage
|
|
|
|
%_libdir/libmirage.so
|
|
|
|
%_libdir/pkgconfig/libmirage.pc
|
2013-01-05 22:54:10 +01:00
|
|
|
%if 0%{?suse_version} != 1210
|
2012-12-22 14:45:28 +01:00
|
|
|
%_datadir/gir-1.0
|
2013-01-05 22:54:10 +01:00
|
|
|
%endif
|
2012-12-22 14:45:28 +01:00
|
|
|
|
2013-01-05 22:54:10 +01:00
|
|
|
%if 0%{?suse_version} != 1210
|
2012-12-22 14:45:28 +01:00
|
|
|
%files -n typelib-1_0-libmirage-2_0
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/girepository-1.0
|
2013-01-05 22:54:10 +01:00
|
|
|
%endif
|
2012-05-21 19:31:11 +02:00
|
|
|
|
|
|
|
%changelog
|