File taglib.spec of Package taglib-shared-lib
#
# spec file for package taglib
#
# Copyright (c) 2020 SUSE LLC
#
# 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/
#
Name: taglib
Version: 1.11.1
Release: shared
Summary: An Audio Meta-Data Library (Build Shared)
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
License: LGPL-2.1-only
Group: System/Libraries
URL: https://github.com/taglib/taglib
Source: https://github.com/taglib/taglib/archive/v%{version}.tar.gz
BuildRequires: cmake
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: zlib-devel
BuildRequires: boost-devel
%description
TagLib is a library for reading and editing the meta-data of
several popular audio formats.
%package devel
Summary: Development Headers for TagLib
Group: System/Libraries
Requires: %{name} = %{version}
%description devel
TagLib is a library for reading and editing the meta-data of
several popular audio formats.
This package provides development headers for taglib
%prep
%setup -q
%build
cmake -DCMAKE_BUILD_TYPE=RELEASE -DBUILD_SHARED_LIBS=ON
make
%install
mkdir -p %{buildroot}/%{_prefix}/local/{bin,lib,lib64,include}
%make_install
cp %{buildroot}/%{_prefix}/local/lib/libtag.so.1 %{buildroot}/%{_prefix}/local/lib64/
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%license COPYING.LGPL
%license COPYING.MPL
%doc doc/README
%{_prefix}/local/bin/taglib-config
%{_prefix}/local/lib/libtag_c.so.0
%{_prefix}/local/lib/libtag_c.so.0.0.0
%{_prefix}/local/lib/libtag.so.1
%{_prefix}/local/lib64/libtag.so.1
%{_prefix}/local/lib/libtag.so.1.17.0
%files devel
%defattr(-,root,root)
%{_prefix}/local/include/%{name}
%{_prefix}/local/lib/libtag_c.so
%{_prefix}/local/lib/libtag.so
%dir %{_prefix}/local/lib/pkgconfig/
%{_prefix}/local/lib/pkgconfig/taglib.pc
%{_prefix}/local/lib/pkgconfig/taglib_c.pc
%changelog