2012-05-21 19:31:11 +02:00
|
|
|
|
#
|
|
|
|
|
# spec file for package libmirage
|
|
|
|
|
#
|
2017-02-06 19:34:37 +01:00
|
|
|
|
# Copyright (c) 2017 SUSE LINUX 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
|
2017-08-07 21:25:15 +02:00
|
|
|
|
%define lname libmirage11
|
|
|
|
|
%define pname 3_1
|
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++
|
2017-08-07 21:25:15 +02:00
|
|
|
|
Version: 3.1.0
|
2012-11-15 01:07:30 +01:00
|
|
|
|
Release: 0
|
2014-07-14 13:32:06 +02:00
|
|
|
|
Url: http://cdemu.sf.net/about/libmirage/
|
2012-05-21 19:31:11 +02:00
|
|
|
|
|
2014-07-14 13:32:06 +02:00
|
|
|
|
#Git-Clone: git://git.code.sf.net/p/cdemu/code
|
|
|
|
|
Source: http://downloads.sf.net/cdemu/%name-%version.tar.bz2
|
2017-08-07 21:25:15 +02:00
|
|
|
|
BuildRequires: cmake >= 2.8.5
|
|
|
|
|
BuildRequires: intltool >= 0.21
|
|
|
|
|
BuildRequires: pkg-config >= 0.16
|
2017-04-11 23:10:21 +02:00
|
|
|
|
%if 0%{?sles_version} && 0%{?suse_version} == 1110
|
2017-08-07 21:25:15 +02:00
|
|
|
|
# SLES 11 is still supported
|
2017-04-11 23:10:21 +02:00
|
|
|
|
# Dependencies list in an old style
|
|
|
|
|
BuildRequires: glib2-devel >= 2.28
|
|
|
|
|
BuildRequires: gtk-doc >= 1.4
|
2017-04-11 23:14:04 +02:00
|
|
|
|
BuildRequires: libbz2-devel >= 1.0.0
|
2017-04-11 23:10:21 +02:00
|
|
|
|
BuildRequires: libsamplerate-devel >= 0.1.0
|
|
|
|
|
BuildRequires: libsndfile-devel >= 1.0.0
|
2017-04-11 23:14:04 +02:00
|
|
|
|
BuildRequires: shared-mime-info
|
|
|
|
|
BuildRequires: xz-devel >= 5.0.0
|
2017-08-07 21:25:15 +02:00
|
|
|
|
BuildRequires: zlib-devel >= 1.2.4
|
2017-04-11 23:10:21 +02:00
|
|
|
|
%else
|
2014-07-14 13:26:27 +02:00
|
|
|
|
BuildRequires: pkgconfig(bzip2) >= 1.0.0
|
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
|
2013-06-09 15:58:07 +02:00
|
|
|
|
BuildRequires: pkgconfig(samplerate) >= 0.1.0
|
2015-11-23 23:02:33 +01:00
|
|
|
|
BuildRequires: pkgconfig(shared-mime-info)
|
2012-11-15 01:07:30 +01:00
|
|
|
|
BuildRequires: pkgconfig(sndfile) >= 1.0.0
|
2017-08-07 21:25:15 +02:00
|
|
|
|
BuildRequires: pkgconfig(zlib) >= 1.2.4
|
2017-04-11 23:10:21 +02:00
|
|
|
|
%endif
|
2017-08-07 21:25:15 +02:00
|
|
|
|
Recommends: %name-lang
|
2017-04-11 23:14:04 +02:00
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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.
|
|
|
|
|
|
2017-08-08 16:53:48 +02:00
|
|
|
|
%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.
|
|
|
|
|
|
2014-07-14 13:32:06 +02:00
|
|
|
|
%package -n %lname
|
2012-05-21 19:31:11 +02:00
|
|
|
|
Summary: A CD-ROM image access library
|
|
|
|
|
# Technically Suggests:, but pretty useless without
|
2017-02-06 19:34:37 +01:00
|
|
|
|
Group: System/Libraries
|
2014-07-14 13:32:06 +02:00
|
|
|
|
Requires: libmirage-%pname >= %version
|
2012-05-21 19:31:11 +02:00
|
|
|
|
|
2014-07-14 13:32:06 +02: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.
|
|
|
|
|
|
2014-07-14 13:32:06 +02:00
|
|
|
|
%package %pname
|
2012-11-15 01:07:30 +01:00
|
|
|
|
Summary: CD-ROM image format plugins for libmirage
|
|
|
|
|
Group: System/Libraries
|
|
|
|
|
Recommends: libmirage-data
|
2012-05-21 19:31:11 +02:00
|
|
|
|
|
2014-07-14 13:32:06 +02:00
|
|
|
|
%description %pname
|
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++
|
2014-07-14 13:32:06 +02:00
|
|
|
|
Requires: %lname = %version
|
2017-04-11 23:10:21 +02:00
|
|
|
|
Requires: glib2-devel
|
2012-05-21 19:31:11 +02:00
|
|
|
|
|
|
|
|
|
%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++
|
2014-07-14 13:26:27 +02:00
|
|
|
|
Requires(post): shared-mime-info
|
|
|
|
|
Requires(postun): shared-mime-info
|
2017-04-11 23:10:21 +02:00
|
|
|
|
%if 0%{?suse_version} >= 1130
|
2012-11-15 01:07:30 +01:00
|
|
|
|
BuildArch: noarch
|
2017-04-11 23:10:21 +02:00
|
|
|
|
%endif
|
2012-05-21 19:31:11 +02:00
|
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
2014-07-14 13:32:06 +02:00
|
|
|
|
%package -n typelib-1_0-libmirage-%pname
|
2017-04-11 23:10:21 +02:00
|
|
|
|
Summary: The libmirage CD-ROM image access library – introspection bindings
|
2012-12-22 14:45:28 +01:00
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
2014-07-14 13:32:06 +02:00
|
|
|
|
%description -n typelib-1_0-libmirage-%pname
|
2012-12-22 14:45:28 +01:00
|
|
|
|
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
|
2013-06-09 15:58:07 +02:00
|
|
|
|
%setup -q
|
2012-05-21 19:31:11 +02:00
|
|
|
|
|
|
|
|
|
%build
|
2015-11-23 23:02:33 +01:00
|
|
|
|
%cmake -DCMAKE_MODULE_LINKER_FLAGS=""
|
2014-07-14 13:26:27 +02:00
|
|
|
|
make %{?_smp_mflags}
|
2012-05-21 19:31:11 +02:00
|
|
|
|
|
|
|
|
|
%install
|
2015-11-23 23:02:33 +01:00
|
|
|
|
%cmake_install
|
2017-08-07 21:35:41 +02:00
|
|
|
|
%find_lang %name
|
2012-05-21 19:31:11 +02:00
|
|
|
|
|
2014-07-14 13:32:06 +02:00
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
2012-05-21 19:31:11 +02:00
|
|
|
|
|
2015-11-23 23:02:33 +01:00
|
|
|
|
%post data
|
2017-04-11 23:10:21 +02:00
|
|
|
|
%if 0%{?sles_version} && 0%{?suse_version} == 1110
|
2017-08-07 21:25:15 +02:00
|
|
|
|
/usr/bin/update-mime-database %{_datadir}/mime >/dev/null || :
|
2017-04-11 23:10:21 +02:00
|
|
|
|
%else
|
2015-11-23 23:02:33 +01:00
|
|
|
|
%mime_database_post
|
2017-04-11 23:10:21 +02:00
|
|
|
|
%endif
|
2015-11-23 23:02:33 +01:00
|
|
|
|
|
|
|
|
|
%postun data
|
2017-04-11 23:10:21 +02:00
|
|
|
|
%if 0%{?sles_version} && 0%{?suse_version} == 1110
|
2017-08-07 21:25:15 +02:00
|
|
|
|
/usr/bin/update-mime-database %{_datadir}/mime >/dev/null || :
|
2017-04-11 23:10:21 +02:00
|
|
|
|
%else
|
2015-11-23 23:02:33 +01:00
|
|
|
|
%mime_database_postun
|
2017-04-11 23:10:21 +02:00
|
|
|
|
%endif
|
2015-11-23 23:02:33 +01:00
|
|
|
|
|
2012-12-22 14:45:28 +01:00
|
|
|
|
%files -n %lname
|
2012-05-21 19:31:11 +02:00
|
|
|
|
%defattr(-,root,root)
|
2017-08-07 21:25:15 +02:00
|
|
|
|
%_libdir/libmirage.so.11*
|
2012-05-21 19:31:11 +02:00
|
|
|
|
|
2013-06-09 16:05:45 +02:00
|
|
|
|
%files %pname
|
2012-05-21 19:31:11 +02:00
|
|
|
|
%defattr(-,root,root)
|
2017-08-07 21:25:15 +02:00
|
|
|
|
%_libdir/libmirage-3.1/
|
2012-05-21 19:31:11 +02:00
|
|
|
|
|
|
|
|
|
%files data
|
|
|
|
|
%defattr(-,root,root)
|
2014-07-14 13:32:06 +02:00
|
|
|
|
%_datadir/gtk-doc/
|
|
|
|
|
%_datadir/mime/packages/*
|
2012-05-21 19:31:11 +02:00
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root)
|
2017-08-07 21:25:15 +02:00
|
|
|
|
%_includedir/libmirage-3.1/
|
2014-07-14 13:32:06 +02:00
|
|
|
|
%_libdir/libmirage.so
|
|
|
|
|
%_libdir/pkgconfig/libmirage.pc
|
2017-04-11 23:10:21 +02:00
|
|
|
|
%if 0%{?suse_version} > 1110
|
2014-07-14 13:32:06 +02:00
|
|
|
|
%_datadir/gir-1.0
|
2014-07-14 13:26:27 +02:00
|
|
|
|
|
2017-08-07 21:35:41 +02:00
|
|
|
|
%files lang -f %name.lang
|
2017-08-07 21:25:15 +02:00
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
|
2013-06-10 14:06:23 +02:00
|
|
|
|
%files -n typelib-1_0-libmirage-%pname
|
2012-12-22 14:45:28 +01:00
|
|
|
|
%defattr(-,root,root)
|
2014-07-14 13:32:06 +02:00
|
|
|
|
%_libdir/girepository-1.0
|
2017-04-11 23:10:21 +02:00
|
|
|
|
%endif
|
2012-05-21 19:31:11 +02:00
|
|
|
|
|
|
|
|
|
%changelog
|