From 9554691937163b764e9e82a4bbaebeda3bf785e502d796042ae4a39193ae30ad Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Wed, 26 Jun 2019 06:08:39 +0000 Subject: [PATCH] Accepting request 711395 from home:mgorse:branches:multimedia:libs OBS-URL: https://build.opensuse.org/request/show/711395 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libcuefile?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + libcuefile.changes | 19 ++++++++++ libcuefile.spec | 83 ++++++++++++++++++++++++++++++++++++++++++ libcuefile_r475.tar.gz | 3 ++ mathmeaning.patch | 20 ++++++++++ 6 files changed, 149 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 libcuefile.changes create mode 100644 libcuefile.spec create mode 100644 libcuefile_r475.tar.gz create mode 100644 mathmeaning.patch diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/libcuefile.changes b/libcuefile.changes new file mode 100644 index 0000000..a707ba0 --- /dev/null +++ b/libcuefile.changes @@ -0,0 +1,19 @@ +------------------------------------------------------------------- +Fri Jun 21 20:00:53 UTC 2019 - mgorse@suse.com + +- Use cmake macros. +- Remove some unneeded comments from %install. +- Remove %defattr.. No longer needed. + +------------------------------------------------------------------- +Sun Mar 10 23:02:57 UTC 2013 - asterios.dramis@gmail.com + +- Correct version number to r475. + +------------------------------------------------------------------- +Sun Mar 10 18:08:59 UTC 2013 - asterios.dramis@gmail.com + +- Initial rpm release (version 20110810_r475). +- Added a patch "mathmeaning.patch" to fix rpm post build error + "Program uses operation a <= b <= c, which is not well defined." + (based on patch from openSUSE cuetools). diff --git a/libcuefile.spec b/libcuefile.spec new file mode 100644 index 0000000..efd8424 --- /dev/null +++ b/libcuefile.spec @@ -0,0 +1,83 @@ +# +# spec file for package libcuefile +# +# Copyright (c) 2013 Asterios Dramis . +# +# 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. + + +%define so_ver 0 + +Name: libcuefile +Version: r475 +Release: 1 +License: GPL-2.0 +Summary: Library for Working With Cue Sheet (cue) and Table Of Contents (toc) Files +Url: http://www.musepack.net/ +Group: System/Libraries +Source0: http://files.musepack.net/source/%{name}_%{version}.tar.gz +# PATCH-FIX-OPENSUSE mathmeaning.patch asterios.dramis@gmail.com -- Fix rpm post build error "Program uses operation a <= b <= c, which is not well defined." (based on patch from openSUSE cuetools) +Patch0: mathmeaning.patch +BuildRequires: cmake +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +libcuefile is a library for working with Cue Sheet (cue) and Table of Contents +(toc) files. + +%package devel +Summary: Development files for libcuefile +Group: Development/Libraries/C and C++ +Requires: libcuefile%{so_ver} = %{version} + +%description devel +This package includes development files for libcuefile. + +%package -n libcuefile%{so_ver} +Summary: Library for Working With Cue Sheet (cue) and Table Of Contents (toc) Files +Group: System/Libraries + +%description -n libcuefile%{so_ver} +libcuefile is a library for working with Cue Sheet (cue) and Table of Contents +(toc) files. + +%prep +%setup -q -n %{name}_%{version} +%patch0 + +# Fix rpmlint error "spurious-executable-perm" +chmod 644 AUTHORS COPYING README +chmod 644 include/cuetools/*.h + +%build +%cmake +make %{?_smp_mflags} VERBOSE=1 + +%install +%cmake_install + +mkdir -p %{buildroot}%{_includedir} +cp -a include/cuetools/ %{buildroot}%{_includedir} + +rm -f %{buildroot}%{_libdir}/*.a + +%post -n libcuefile%{so_ver} -p /sbin/ldconfig + +%postun -n libcuefile%{so_ver} -p /sbin/ldconfig + +%files devel +%doc AUTHORS COPYING README +%{_includedir}/cuetools/ +%{_libdir}/libcuefile.so + +%files -n libcuefile%{so_ver} +%{_libdir}/libcuefile.so.%{so_ver}* + +%changelog diff --git a/libcuefile_r475.tar.gz b/libcuefile_r475.tar.gz new file mode 100644 index 0000000..c029c9f --- /dev/null +++ b/libcuefile_r475.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b681ca6772b3f64010d24de57361faecf426ee6182f5969fcf29b3f649133fe7 +size 68282 diff --git a/mathmeaning.patch b/mathmeaning.patch new file mode 100644 index 0000000..50b26b7 --- /dev/null +++ b/mathmeaning.patch @@ -0,0 +1,20 @@ +--- src/cd.c.orig 2011-06-18 14:28:43.000000000 +0300 ++++ src/cd.c 2013-03-10 19:13:53.901992012 +0200 +@@ -173,7 +173,7 @@ + + Track *cd_get_track (Cd *cd, int i) + { +- if (0 < i <= cd->ntrack) ++ if ((0 < i) && (i <= cd->ntrack)) + return cd->track[i - 1]; + + return NULL; +@@ -306,7 +306,7 @@ + + long track_get_index (Track *track, int i) + { +- if (0 <= i < track->nindex) ++ if ((0 <= i) && (i < track->nindex)) + return track->index[i]; + + return -1;