Dave Plater
d71b188d2a
- Fix build in SLE_11 by disabling post-install OBS-URL: https://build.opensuse.org/request/show/351847 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/taglib?expand=0&rev=67
181 lines
5.6 KiB
RPMSpec
181 lines
5.6 KiB
RPMSpec
#
|
|
# spec file for package taglib
|
|
#
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: taglib
|
|
Version: 1.10
|
|
Release: 0
|
|
Summary: Audio Meta-Data Library
|
|
License: LGPL-2.1+ and MPL-1.1
|
|
Group: Productivity/Multimedia/Other
|
|
Url: http://taglib.github.io/
|
|
Source0: http://taglib.github.io/releases/taglib-%{version}.tar.gz
|
|
Source1: %{name}.desktop
|
|
Source100: baselibs.conf
|
|
BuildRequires: cmake >= 2.8
|
|
BuildRequires: doxygen
|
|
BuildRequires: fdupes
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: graphviz-gnome
|
|
BuildRequires: libcppunit-devel
|
|
BuildRequires: librcc-devel
|
|
BuildRequires: pkg-config
|
|
BuildRequires: zlib-devel
|
|
# NOTE: The tagreader and writer executables give different results when built with
|
|
# an earlier taglib-1.8-ds-rusxmms patch. See bnc#814814
|
|
Requires: libtag1 = %{version}-%{release}
|
|
Requires: libtag_c0 = %{version}-%{release}
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%if 0%{?suse_version}
|
|
BuildRequires: update-desktop-files
|
|
%endif
|
|
|
|
%description
|
|
TagLib is a library for reading and editing the meta-data of several popular
|
|
audio formats. Currently it supports both ID3v1 and ID3v2 for MP3 files, Ogg
|
|
Vorbis comments and ID3 tags and Vorbis comments in FLAC, MPC, Speex, WavPack
|
|
TrueAudio, WAV, AIFF, MP4 and ASF files.
|
|
This package contains built examples which manipulate tags from the
|
|
command line.
|
|
|
|
%package -n libtag1
|
|
Summary: Audio Meta-Data Library
|
|
License: LGPL-2.1+
|
|
Group: System/Libraries
|
|
# Without this the old taglib package containing the libraries isn't removed when this package is installed.
|
|
# The only alternative is for the libraries to Require: taglib version-release, badness 440
|
|
Conflicts: taglib <= 1.6.3
|
|
|
|
%description -n libtag1
|
|
TagLib is a library for reading and editing the meta-data of several popular
|
|
audio formats. Currently it supports both ID3v1 and ID3v2 for MP3 files, Ogg
|
|
Vorbis comments and ID3 tags and Vorbis comments in FLAC, MPC, Speex, WavPack
|
|
TrueAudio, WAV, AIFF, MP4 and ASF files.
|
|
|
|
%package -n libtag_c0
|
|
Summary: Audio Meta-Data Library
|
|
License: LGPL-2.1+
|
|
Group: System/Libraries
|
|
# Without this the old taglib package containing the libraries isn't removed when this package is installed.
|
|
# The only alternative is for the libraries to Require: taglib version-release, badness 440
|
|
Conflicts: taglib <= 1.6.3
|
|
|
|
%description -n libtag_c0
|
|
TagLib is a library for reading and editing the meta-data of several popular
|
|
audio formats. Currently it supports both ID3v1 and ID3v2 for MP3 files, Ogg
|
|
Vorbis comments and ID3 tags and Vorbis comments in FLAC, MPC, Speex, WavPack
|
|
TrueAudio, WAV, AIFF, MP4 and ASF files.
|
|
|
|
%package -n libtag-devel
|
|
Summary: Development files for taglib
|
|
License: LGPL-2.1+
|
|
Group: Development/Libraries/C and C++
|
|
Requires: libstdc++-devel
|
|
Requires: libtag1 = %{version}-%{release}
|
|
Requires: libtag_c0 = %{version}-%{release}
|
|
# taglib-devel was last used in openSUSE 11.4 (taglib-devel-1.6.2)
|
|
# The last taglib-devel used was version 1.6.3 from multimedia:libs.
|
|
Provides: taglib-devel = %{version}
|
|
Obsoletes: taglib-devel <= 1.6.3
|
|
|
|
%description -n libtag-devel
|
|
This package contains development files for taglib.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%cmake \
|
|
-DBUILD_TESTS:BOOL=ON \
|
|
-DWITH_ASF:BOOL=ON \
|
|
-DWITH_MP4:BOOL=ON \
|
|
-DBUILD_EXAMPLES:BOOL=ON
|
|
make %{?_smp_mflags} all docs
|
|
|
|
%install
|
|
%cmake_install
|
|
|
|
# install susehelp file
|
|
mkdir -p %{buildroot}%{_datadir}/susehelp/meta/Development/Libraries/
|
|
install -pm 0644 %{SOURCE1} %{buildroot}%{_datadir}/susehelp/meta/Development/Libraries/
|
|
|
|
%if 0%{?suse_version}
|
|
%suse_update_desktop_file %{buildroot}%{_datadir}/susehelp/meta/Development/Libraries/%{name}.desktop
|
|
%endif
|
|
|
|
# Documentation
|
|
mkdir -p %{buildroot}%{_defaultdocdir}/libtag-devel
|
|
rm -f examples/CMake*
|
|
cp -a AUTHORS COPYING.LGPL COPYING.MPL NEWS build/doc/html/ examples/ %{buildroot}%{_defaultdocdir}/libtag-devel/
|
|
|
|
%fdupes -s %{buildroot}
|
|
# Add built examples to taglib package.
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
for i in `find build/examples -maxdepth 1 ! -type d -executable`; do cp -v ${i} %{buildroot}%{_bindir}/; done
|
|
|
|
%check
|
|
# check the library
|
|
#pushd tests
|
|
#make check
|
|
#popd
|
|
|
|
%if 0%{?suse_version} > 1110
|
|
%post
|
|
%desktop_database_post
|
|
|
|
%postun
|
|
%desktop_database_postun
|
|
%endif
|
|
|
|
%post -n libtag1 -p /sbin/ldconfig
|
|
|
|
%postun -n libtag1 -p /sbin/ldconfig
|
|
|
|
%post -n libtag_c0 -p /sbin/ldconfig
|
|
|
|
%postun -n libtag_c0 -p /sbin/ldconfig
|
|
|
|
%files -n libtag1
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/libtag.so.1
|
|
%{_libdir}/libtag.so.1.*
|
|
|
|
%files -n libtag_c0
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/libtag_c.so.0
|
|
%{_libdir}/libtag_c.so.0.*
|
|
|
|
%files -n libtag-devel
|
|
%defattr(-,root,root,-)
|
|
%doc %{_defaultdocdir}/libtag-devel
|
|
%{_bindir}/taglib-config
|
|
%{_includedir}/taglib/
|
|
%{_libdir}/libtag*.so
|
|
%{_libdir}/pkgconfig/*.pc
|
|
%{_datadir}/susehelp/
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%if 1 == 1
|
|
%{_bindir}/*
|
|
%exclude %{_bindir}/taglib-config
|
|
%else
|
|
%doc README.taglib
|
|
%endif
|
|
|
|
%changelog
|