Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37427819
en ru br
ALT Linux repos
S:r475-alt1

Group :: System/Libraries
RPM: libcuefile

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%{?optflags_lto:%global optflags_lto %optflags_lto -ffat-lto-objects}
%define _unpackaged_files_terminate_build 1
%define sover 0
Name: libcuefile
Version: r475
Release: alt1
Summary: cue and toc file parsers and utilities
License: GPLv2
Group: System/Libraries
Url: https://www.musepack.net/
Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org>

# http://svn.musepack.net/libcuefile/trunk/

Source: %{name}_%{version}.tar
# PATCH-FIX-OPENSUSE mathmeaning.patch asterios.dramis at 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

BuildPreReq: cmake

%description
This library has been stripped down from cuetools
http://developer.berlios.de/projects/cuetools/

%package devel
Summary: Development files of %name
Group: Development/C
Requires: %name = %EVR

%description devel
This library has been stripped down from cuetools
http://developer.berlios.de/projects/cuetools/

This package contains development files of %name.

%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 \
%if %_lib == lib64
-DLIB_SUFFIX=64 \
%endif
-DCMAKE_INSTALL_PREFIX:PATH=%prefix \
-DCMAKE_C_FLAGS:STRING="%optflags" \
-DCMAKE_CXX_FLAGS:STRING="%optflags" \
-DCMAKE_Fortran_FLAGS:STRING="%optflags" \
-DCMAKE_STRIP:FILEPATH="/bin/echo" \
.
%make_build VERBOSE=1

%install
%makeinstall_std

install -d %buildroot%_includedir
cp -fR include/cuetools %buildroot%_includedir/

rm -f %{buildroot}%{_libdir}/*.a

%files
%doc AUTHORS README
%_libdir/*.so.%sover
%_libdir/*.so.%sover.*

%files devel
%_includedir/*
%_libdir/*.so

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin