Accepting request 240827 from home:XRevan86

OBS-URL: https://build.opensuse.org/request/show/240827
OBS-URL: https://build.opensuse.org/package/show/filesystems/libmirage?expand=0&rev=28
This commit is contained in:
Jan Engelhardt 2014-07-14 11:26:27 +00:00 committed by Git OBS Bridge
parent be7d4c4db0
commit 1f576592c4
4 changed files with 41 additions and 65 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3743d979c8bb2118d1d74ded815e81138cb9f6124b19c4c2161200f15c82f05f
size 191732

3
libmirage-3.0.0.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bb0e0f0ed082efe03be4254d1be1310956652b1cec9fad10f9e602a088d17f84
size 210658

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Jul 13 08:48:46 UTC 2014 - sor.alexei@meowr.ru
- Update to 3.0.0
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Nov 24 11:18:45 UTC 2013 - jengelh@inai.de Sun Nov 24 11:18:45 UTC 2013 - jengelh@inai.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package libmirage # spec file for package libmirage
# #
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -17,22 +17,20 @@
Name: libmirage Name: libmirage
%define lname libmirage9 %define lname libmirage10
%define pname 2_1 %define pname 3_0
Summary: A CD-ROM image access library Summary: A CD-ROM image access library
License: GPL-2.0+ License: GPL-2.0+
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Version: 2.1.1 Version: 3.0.0
Release: 0 Release: 0
Url: http://cdemu.sf.net/ Url: http://cdemu.sourceforge.net/about/libmirage/
#Freecode-URL: https://freecode.com/projects/cdemu-for-linux Source: %{name}-%{version}.tar.bz2
#Git-Clone: git://git.code.sf.net/p/cdemu/code
#DL-URL: http://downloads.sf.net/cdemu/%name-%version.tar.bz2
Source: %name-%version.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: cmake >= 2.8.5 BuildRequires: cmake >= 2.8.5
BuildRequires: pkgconfig >= 0.16 BuildRequires: pkgconfig >= 0.16
BuildRequires: xz
BuildRequires: pkgconfig(bzip2) >= 1.0.0
BuildRequires: pkgconfig(glib-2.0) >= 2.28 BuildRequires: pkgconfig(glib-2.0) >= 2.28
BuildRequires: pkgconfig(gmodule-2.0) >= 2.28 BuildRequires: pkgconfig(gmodule-2.0) >= 2.28
BuildRequires: pkgconfig(gobject-2.0) >= 2.28 BuildRequires: pkgconfig(gobject-2.0) >= 2.28
@ -42,12 +40,6 @@ BuildRequires: pkgconfig(liblzma) >= 5.0.0
BuildRequires: pkgconfig(samplerate) >= 0.1.0 BuildRequires: pkgconfig(samplerate) >= 0.1.0
BuildRequires: pkgconfig(sndfile) >= 1.0.0 BuildRequires: pkgconfig(sndfile) >= 1.0.0
BuildRequires: pkgconfig(zlib) >= 1.2.0 BuildRequires: pkgconfig(zlib) >= 1.2.0
%if 0%{?fedora_version}
BuildRequires: bzip2-devel >= 1.0.0
%else
BuildRequires: pkgconfig(bzip2) >= 1.0.0
%endif
BuildRequires: xz
%description %description
A CD-ROM image access library part of the cdemu suite. A CD-ROM image access library part of the cdemu suite.
@ -56,29 +48,25 @@ libmirage provides uniform access to the data stored in different
image formats by creating a representation of disc stored in image image formats by creating a representation of disc stored in image
file. file.
%package -n %lname %package -n %{lname}
Summary: A CD-ROM image access library Summary: A CD-ROM image access library
Group: System/Libraries Group: System/Libraries
# Technically Suggests:, but pretty useless without # Technically Suggests:, but pretty useless without
Requires: libmirage-%pname >= %version Requires: libmirage-%{pname} >= %{version}
%description -n %lname %description -n %{lname}
A CD-ROM image access library part of the cdemu suite. A CD-ROM image access library part of the cdemu suite.
libmirage provides uniform access to the data stored in different libmirage provides uniform access to the data stored in different
image formats by creating a representation of disc stored in image image formats by creating a representation of disc stored in image
file. file.
%package %pname %package %{pname}
Summary: CD-ROM image format plugins for libmirage Summary: CD-ROM image format plugins for libmirage
Group: System/Libraries Group: System/Libraries
%if 0%{?suse_version}
Recommends: libmirage-data Recommends: libmirage-data
%else
Requires: libmirage-data
%endif
%description %pname %description %{pname}
A CD-ROM image access library part of the cdemu suite. A CD-ROM image access library part of the cdemu suite.
libmirage provides uniform access to the data stored in different libmirage provides uniform access to the data stored in different
@ -90,7 +78,7 @@ This package provides the image format plugins for libmirage.
%package devel %package devel
Summary: Development files for libmirage, a CD-ROM image access library Summary: Development files for libmirage, a CD-ROM image access library
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: %lname = %version Requires: %{lname} = %{version}
%description devel %description devel
A CD-ROM image access library part of the cdemu suite. A CD-ROM image access library part of the cdemu suite.
@ -104,11 +92,9 @@ This package contains files needed to develop with libmirage.
%package data %package data
Summary: MIME type definitions and documentation for libmirage Summary: MIME type definitions and documentation for libmirage
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires(post): shared-mime-info Requires(post): shared-mime-info
Requires(postun): shared-mime-info Requires(postun): shared-mime-info
%if 0%{?suse_version} >= 1140
BuildArch: noarch BuildArch: noarch
%endif
%description data %description data
libmirage provides uniform access to the data stored in different libmirage provides uniform access to the data stored in different
@ -117,11 +103,11 @@ file.
This package contains the MIME type definitions and documentation. This package contains the MIME type definitions and documentation.
%package -n typelib-1_0-libmirage-%pname %package -n typelib-1_0-libmirage-%{pname}
Summary: The libmirage CD-ROM image access library - introspection bindings Summary: The libmirage CD-ROM image access library - introspection bindings
Group: System/Libraries Group: System/Libraries
%description -n typelib-1_0-libmirage-%pname %description -n typelib-1_0-libmirage-%{pname}
libmirage provides uniform access to the data stored in different libmirage provides uniform access to the data stored in different
image formats by creating a representation of disc stored in image image formats by creating a representation of disc stored in image
file. file.
@ -132,54 +118,39 @@ This package provides the GObject Introspection bindings for libmirage.
%setup -q %setup -q
%build %build
# gir is busted on 12.1
cmake . \ cmake . \
%if 0%{?suse_version} == 1210 -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
-DINTROSPECTION_ENABLED=0 \ -DCMAKE_C_FLAGS:STRING="%{optflags}"
%endif make %{?_smp_mflags}
-DCMAKE_INSTALL_PREFIX:PATH="%_prefix" \
-DCMAKE_C_FLAGS:STRING="%optflags";
make %{?_smp_mflags};
%install %install
b="%buildroot"; make install DESTDIR=%{buildroot}
make install DESTDIR="$b";
%post -n %lname -p /sbin/ldconfig %post -n %{lname} -p /sbin/ldconfig
%postun -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 || :;
%files -n %lname %files -n %lname
%defattr(-,root,root) %defattr(-,root,root)
%_libdir/libmirage.so.9* %{_libdir}/libmirage.so.10*
%files %pname %files %pname
%defattr(-,root,root) %defattr(-,root,root)
%_libdir/libmirage-2.1/ %{_libdir}/libmirage-3.0/
%files data %files data
%defattr(-,root,root) %defattr(-,root,root)
%_datadir/gtk-doc/ %{_datadir}/gtk-doc/
%_datadir/mime/packages/* %{_datadir}/mime/packages/*
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
%_includedir/libmirage/ %{_includedir}/libmirage-3.0/
%_libdir/libmirage.so %{_libdir}/libmirage.so
%_libdir/pkgconfig/libmirage.pc %{_libdir}/pkgconfig/libmirage.pc
%if 0%{?suse_version} != 1210 %{_datadir}/gir-1.0
%_datadir/gir-1.0
%endif
%if 0%{?suse_version} != 1210
%files -n typelib-1_0-libmirage-%pname %files -n typelib-1_0-libmirage-%pname
%defattr(-,root,root) %defattr(-,root,root)
%_libdir/girepository-1.0 %{_libdir}/girepository-1.0
%endif
%changelog %changelog