2019-06-26 08:08:39 +02:00
#
# spec file for package libcuefile
#
2024-05-13 16:44:20 +02:00
# Copyright (c) 2024 SUSE LLC
2019-07-07 22:00:23 +02:00
# Copyright (c) 2013 Asterios Dramis <asterios.dramis@gmail.com>.
2019-06-26 08:08:39 +02:00
#
# 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.
2019-07-04 13:53:00 +02:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
2019-06-26 08:08:39 +02:00
%define so_ver 0
Name : libcuefile
Version : r475
2019-07-07 22:00:23 +02:00
Release : 0
2019-06-26 08:08:39 +02:00
Summary : Library for Working With Cue Sheet (cue) and Table Of Contents (toc) Files
2019-07-07 22:00:23 +02:00
License : GPL-2.0-only
Group : Development/Libraries/C and C++
2024-05-13 16:44:20 +02:00
URL : https://www.musepack.net/
2019-07-04 13:53:00 +02:00
Source0 : https://files.musepack.net/source/%{name} _%{version} .tar.gz
2019-06-26 08:08:39 +02:00
# 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
2024-05-13 16:44:20 +02:00
# build with gcc14
Patch1 : libcuefile-gcc14.patch
2019-06-26 08:08:39 +02:00
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
2024-02-29 17:29:37 +01:00
%autosetup -p0 -n %{name} _%{version}
2019-06-26 08:08:39 +02:00
# Fix rpmlint error "spurious-executable-perm"
chmod 644 AUTHORS COPYING README
chmod 644 include/cuetools/*.h
%build
%cmake
2019-07-04 13:53:00 +02:00
%cmake_build
2019-06-26 08:08:39 +02:00
%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
2019-07-04 13:53:00 +02:00
%license COPYING
%doc AUTHORS README
2019-06-26 08:08:39 +02:00
%{_includedir} /cuetools/
%{_libdir} /libcuefile.so
%files -n libcuefile%{so_ver}
%{_libdir} /libcuefile.so.%{so_ver} *
%changelog