2011-10-18 09:38:22 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package libcue
|
|
|
|
|
#
|
2023-10-10 05:58:36 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2011-10-18 09:38:22 +00: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-09-01 06:34:41 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-10-18 09:38:22 +00:00
|
|
|
#
|
|
|
|
|
|
2012-01-21 11:59:02 +00:00
|
|
|
|
|
|
|
|
Name: libcue
|
2016-07-06 07:33:59 +00:00
|
|
|
%define lname libcue2
|
2023-10-11 02:34:48 +00:00
|
|
|
Version: 2.3.0
|
2012-01-21 11:59:02 +00:00
|
|
|
Release: 0
|
2014-10-05 21:27:50 +00:00
|
|
|
Summary: CUE sheet parsing library
|
2019-09-01 06:34:41 +00:00
|
|
|
License: GPL-2.0-only
|
2014-10-05 21:27:50 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2019-09-01 06:34:41 +00:00
|
|
|
URL: https://github.com/lipnitsk/libcue
|
2014-10-05 21:27:50 +00:00
|
|
|
|
2016-07-06 08:19:29 +00:00
|
|
|
Source: https://github.com/lipnitsk/libcue/archive/v%version.tar.gz
|
2014-10-05 21:27:50 +00:00
|
|
|
BuildRequires: bison
|
2016-07-06 07:33:59 +00:00
|
|
|
BuildRequires: cmake
|
2014-10-05 21:27:50 +00:00
|
|
|
BuildRequires: flex
|
|
|
|
|
BuildRequires: pkg-config
|
2011-10-18 09:38:22 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
libcue parses so-called cue sheets from a char string or a FILE
|
|
|
|
|
pointer. This project is meant as a fork of (defunct) cuetools.
|
|
|
|
|
|
|
|
|
|
%package -n %lname
|
2012-01-21 11:59:02 +00:00
|
|
|
Summary: CUE sheet parsing library
|
|
|
|
|
Group: System/Libraries
|
2011-10-18 09:38:22 +00:00
|
|
|
|
|
|
|
|
%description -n %lname
|
|
|
|
|
libcue parses so-called cue sheets from a char string or a FILE
|
2018-02-07 21:48:22 +00:00
|
|
|
pointer.
|
2011-10-18 09:38:22 +00:00
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development files for libcue, a CUE sheet parsing library
|
2012-01-21 11:59:02 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
Requires: %lname = %version
|
2011-10-18 09:38:22 +00:00
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
libcue parses so-called cue sheets from a char string or a FILE
|
2018-02-07 21:48:22 +00:00
|
|
|
pointer.
|
2011-10-18 09:38:22 +00:00
|
|
|
|
|
|
|
|
This package contains the development library symlink and header
|
|
|
|
|
files.
|
|
|
|
|
|
|
|
|
|
%prep
|
2019-09-01 06:34:41 +00:00
|
|
|
%autosetup -p1
|
2011-10-18 09:38:22 +00:00
|
|
|
|
|
|
|
|
%build
|
2016-07-06 07:33:59 +00:00
|
|
|
%cmake
|
2023-10-10 06:00:44 +00:00
|
|
|
%cmake_build
|
2011-10-18 09:38:22 +00:00
|
|
|
|
|
|
|
|
%install
|
2016-07-06 07:33:59 +00:00
|
|
|
%cmake_install
|
2016-07-06 07:37:27 +00:00
|
|
|
rm -f "%buildroot/%_libdir"/*.la
|
2011-10-18 09:38:22 +00:00
|
|
|
|
|
|
|
|
%check
|
2016-07-06 07:37:27 +00:00
|
|
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:%buildroot/%_libdir"
|
|
|
|
|
# %%ctest macro unknown to SLE11_SP4, do it explicitly
|
2016-07-06 07:33:59 +00:00
|
|
|
cd build
|
|
|
|
|
ctest --output-on-failure --force-new-ctest-process
|
2011-10-18 09:38:22 +00:00
|
|
|
|
2016-07-06 07:37:27 +00:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
2011-10-18 09:38:22 +00:00
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%files -n %lname
|
2016-07-06 07:33:59 +00:00
|
|
|
%_libdir/libcue.so.2*
|
2011-10-18 09:38:22 +00:00
|
|
|
|
|
|
|
|
%files devel
|
2016-07-06 07:33:59 +00:00
|
|
|
%_includedir/libcue.h
|
2014-10-05 21:27:50 +00:00
|
|
|
%_includedir/libcue*/
|
|
|
|
|
%_libdir/libcue.so
|
2011-10-18 09:38:22 +00:00
|
|
|
%_libdir/pkgconfig/*.pc
|
|
|
|
|
|
|
|
|
|
%changelog
|