2007-01-16 00:38:40 +01:00
|
|
|
#
|
2011-02-27 13:36:33 +01:00
|
|
|
# spec file for package taglib
|
2007-01-16 00:38:40 +01:00
|
|
|
#
|
2011-02-27 13:36:33 +01:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:38:40 +01:00
|
|
|
#
|
2009-01-09 02:04:13 +01: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.
|
|
|
|
|
2007-01-16 00:38:40 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-02-25 17:42:42 +01:00
|
|
|
|
2007-01-16 00:38:40 +01:00
|
|
|
Name: taglib
|
2011-05-19 07:27:54 +02:00
|
|
|
Version: 1.7
|
2011-05-25 11:23:10 +02:00
|
|
|
Release: 2
|
2011-05-19 07:27:54 +02:00
|
|
|
License: LGPLv2.1+ ; MPLv1.1 ..
|
|
|
|
Summary: Audio Meta-Data Library
|
|
|
|
Url: http://ktown.kde.org/~wheeler/taglib/
|
|
|
|
Group: System/Libraries
|
|
|
|
# http://ktown.kde.org/~wheeler/files/src/taglib-1.7.tar.gz
|
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
|
|
|
Source1: %{name}.desktop
|
|
|
|
Source100: baselibs.conf
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: doxygen
|
2008-04-10 23:05:31 +02:00
|
|
|
BuildRequires: fdupes
|
2011-05-19 07:27:54 +02:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: graphviz
|
|
|
|
BuildRequires: libcppunit-devel
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
BuildRequires: update-desktop-files
|
2008-04-10 23:05:31 +02:00
|
|
|
%endif
|
2011-05-19 07:27:54 +02:00
|
|
|
BuildRequires: zlib-devel
|
2011-05-23 05:32:12 +02:00
|
|
|
Requires: libtag1 = %{version}-%{release}
|
|
|
|
Requires: libtag_c0 = %{version}-%{release}
|
2011-05-19 07:27:54 +02:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%package -n libtag1
|
|
|
|
License: LGPLv2.1+
|
|
|
|
Summary: Audio Meta-Data Library
|
|
|
|
Group: System/Libraries
|
2009-01-09 02:04:13 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
2011-05-19 07:27:54 +02:00
|
|
|
Obsoletes: libtag1-64bit
|
2009-01-09 02:04:13 +01:00
|
|
|
%endif
|
|
|
|
#
|
2007-01-16 00:38:40 +01:00
|
|
|
|
2011-05-19 07:27:54 +02:00
|
|
|
%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.
|
2007-01-16 00:38:40 +01:00
|
|
|
|
2011-05-19 07:27:54 +02:00
|
|
|
%package -n libtag_c0
|
|
|
|
License: LGPLv2.1+
|
|
|
|
Summary: Audio Meta-Data Library
|
|
|
|
Group: System/Libraries
|
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libtag_c0-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2007-01-16 00:38:40 +01:00
|
|
|
|
2011-05-19 07:27:54 +02:00
|
|
|
%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.
|
2007-01-16 00:38:40 +01:00
|
|
|
|
2011-05-19 07:27:54 +02:00
|
|
|
%package -n libtag-devel
|
2010-02-24 02:29:21 +01:00
|
|
|
License: LGPLv2.1+
|
2011-05-19 07:27:54 +02:00
|
|
|
Summary: Development files for taglib
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libstdc++-devel
|
|
|
|
Requires: libtag1 = %{version}
|
|
|
|
Requires: libtag_c0 = %{version}
|
|
|
|
# taglib-devel was last used in openSUSE 11.4 (taglib-devel-0.6.3)
|
|
|
|
Provides: taglib-devel = %{version}
|
2011-05-25 18:02:56 +02:00
|
|
|
Obsoletes: taglib-devel <= 0.6.3
|
2009-01-09 02:04:13 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
2011-05-19 07:27:54 +02:00
|
|
|
Obsoletes: libtag-devel-64bit
|
2009-01-09 02:04:13 +01:00
|
|
|
Obsoletes: taglib-devel-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2007-01-16 00:38:40 +01:00
|
|
|
|
2011-05-19 07:27:54 +02:00
|
|
|
%description -n libtag-devel
|
|
|
|
This package contains development files for taglib.
|
2007-01-16 00:38:40 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2011-05-19 07:27:54 +02:00
|
|
|
mkdir build
|
|
|
|
cd build
|
2007-08-10 00:20:53 +02:00
|
|
|
export CXXFLAGS="%{optflags}"
|
2008-02-25 17:42:42 +01:00
|
|
|
export CFLAGS="%{optflags}"
|
2011-05-19 07:27:54 +02:00
|
|
|
_libsuffix=$(echo %{_lib} | cut -b4-)
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DBUILD_TESTS:BOOL=ON -DLIB_SUFFIX=$_libsuffix -DWITH_ASF:BOOL=ON -DWITH_MP4:BOOL=ON ..
|
|
|
|
make %{?_smp_mflags} VERBOSE=1
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
doxygen
|
2007-01-16 00:38:40 +01:00
|
|
|
|
|
|
|
%install
|
2011-05-19 07:27:54 +02:00
|
|
|
cd build
|
|
|
|
%makeinstall
|
|
|
|
cd ..
|
|
|
|
|
2007-01-16 00:38:40 +01:00
|
|
|
# install susehelp file
|
2011-05-19 07:27:54 +02:00
|
|
|
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
|
2008-04-10 23:05:31 +02:00
|
|
|
%endif
|
2007-08-10 00:20:53 +02:00
|
|
|
|
2011-05-19 07:27:54 +02:00
|
|
|
# Documentation
|
|
|
|
mkdir -p %{buildroot}%{_defaultdocdir}/libtag-devel
|
|
|
|
rm -f examples/CMake*
|
|
|
|
cp -a AUTHORS COPYING.LGPL COPYING.MPL NEWS doc/html/ examples/ %{buildroot}%{_defaultdocdir}/libtag-devel/
|
|
|
|
|
|
|
|
%fdupes -s %{buildroot}
|
|
|
|
|
2011-05-23 05:32:12 +02:00
|
|
|
echo <<EOF >README.taglib
|
|
|
|
This package only acts as a placeholder until all packages that use taglib
|
|
|
|
have upgraded to the new package names libtag1 and libtag_c0.
|
|
|
|
EOF
|
|
|
|
|
2007-08-10 00:20:53 +02:00
|
|
|
%check
|
|
|
|
# check the library
|
2008-02-25 17:42:42 +01:00
|
|
|
#pushd tests
|
|
|
|
#make check
|
|
|
|
#popd
|
2007-01-16 00:38:40 +01:00
|
|
|
|
|
|
|
%clean
|
2011-05-23 05:32:12 +02:00
|
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
2011-05-19 07:27:54 +02:00
|
|
|
|
|
|
|
%post -n libtag1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libtag1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post -n libtag_c0 -p /sbin/ldconfig
|
2007-01-16 00:38:40 +01:00
|
|
|
|
2011-05-19 07:27:54 +02:00
|
|
|
%postun -n libtag_c0 -p /sbin/ldconfig
|
2007-01-16 00:38:40 +01:00
|
|
|
|
2011-05-19 07:27:54 +02:00
|
|
|
%files -n libtag1
|
|
|
|
%defattr(-,root,root,-)
|
2011-05-23 05:32:12 +02:00
|
|
|
%{_libdir}/libtag.so.1
|
|
|
|
%{_libdir}/libtag.so.1.*
|
2007-01-16 00:38:40 +01:00
|
|
|
|
2011-05-19 07:27:54 +02:00
|
|
|
%files -n libtag_c0
|
|
|
|
%defattr(-,root,root,-)
|
2011-05-23 05:32:12 +02:00
|
|
|
%{_libdir}/libtag_c.so.0
|
|
|
|
%{_libdir}/libtag_c.so.0.*
|
2007-01-16 00:38:40 +01:00
|
|
|
|
2011-05-19 07:27:54 +02:00
|
|
|
%files -n libtag-devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc %{_defaultdocdir}/libtag-devel/
|
2007-08-10 00:20:53 +02:00
|
|
|
%{_bindir}/taglib-config
|
2011-05-19 07:27:54 +02:00
|
|
|
%{_includedir}/taglib/
|
2007-08-10 00:20:53 +02:00
|
|
|
%{_libdir}/libtag*.so
|
2008-02-25 17:42:42 +01:00
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2011-05-19 07:27:54 +02:00
|
|
|
%{_datadir}/susehelp/
|
2008-02-25 17:42:42 +01:00
|
|
|
|
2011-05-23 05:32:12 +02:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc README.taglib
|
|
|
|
|
2007-08-10 00:20:53 +02:00
|
|
|
%changelog
|