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
This commit is contained in:
Takashi Iwai 2019-06-26 06:08:39 +00:00 committed by Git OBS Bridge
commit 9554691937
6 changed files with 149 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

19
libcuefile.changes Normal file
View File

@ -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).

83
libcuefile.spec Normal file
View File

@ -0,0 +1,83 @@
#
# spec file for package libcuefile
#
# Copyright (c) 2013 Asterios Dramis <asterios.dramis@gmail.com>.
#
# 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

BIN
libcuefile_r475.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

20
mathmeaning.patch Normal file
View File

@ -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;