Sync from SUSE:SLFO:Main libcuefile revision 1578ce0e691cdb4560aed2060d559a9d
This commit is contained in:
commit
4c402a096d
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
|
32
libcuefile.changes
Normal file
32
libcuefile.changes
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jul 7 00:39:42 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Update SRPM group.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jul 4 10:42:03 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||||
|
|
||||||
|
- More spec file cleanup:
|
||||||
|
* Use SPDX identifier to License
|
||||||
|
* Use https:// for Source and Url
|
||||||
|
* Remove BuildRoot
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
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).
|
87
libcuefile.spec
Normal file
87
libcuefile.spec
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
#
|
||||||
|
# spec file for package libcuefile
|
||||||
|
#
|
||||||
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define so_ver 0
|
||||||
|
|
||||||
|
Name: libcuefile
|
||||||
|
Version: r475
|
||||||
|
Release: 0
|
||||||
|
Summary: Library for Working With Cue Sheet (cue) and Table Of Contents (toc) Files
|
||||||
|
License: GPL-2.0-only
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
Url: https://www.musepack.net/
|
||||||
|
Source0: https://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
|
||||||
|
|
||||||
|
%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
|
||||||
|
%cmake_build
|
||||||
|
|
||||||
|
%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
|
||||||
|
%license COPYING
|
||||||
|
%doc AUTHORS 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
BIN
libcuefile_r475.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
20
mathmeaning.patch
Normal file
20
mathmeaning.patch
Normal 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;
|
Loading…
Reference in New Issue
Block a user