commit 4c402a096d5bb494df37af393dddb5a4d3dbd275ae2818bd8b01e7515847be36 Author: Adrian Schröter Date: Fri May 3 14:46:00 2024 +0200 Sync from SUSE:SLFO:Main libcuefile revision 1578ce0e691cdb4560aed2060d559a9d 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/libcuefile.changes b/libcuefile.changes new file mode 100644 index 0000000..0d40d2a --- /dev/null +++ b/libcuefile.changes @@ -0,0 +1,32 @@ +------------------------------------------------------------------- +Sun Jul 7 00:39:42 UTC 2019 - Jan Engelhardt + +- Update SRPM group. + +------------------------------------------------------------------- +Thu Jul 4 10:42:03 UTC 2019 - Stefan Brüns + +- 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). diff --git a/libcuefile.spec b/libcuefile.spec new file mode 100644 index 0000000..81f293c --- /dev/null +++ b/libcuefile.spec @@ -0,0 +1,87 @@ +# +# spec file for package libcuefile +# +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# 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. + +# 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 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;