2008-01-02 13:29:13 +00:00
|
|
|
|
2009-08-22 10:41:49 +00:00
|
|
|
# Fedora cvs admin requests for taglib: http://bugzilla.redhat.com/418271
|
2008-01-02 13:29:13 +00:00
|
|
|
|
2009-08-22 10:42:57 +00:00
|
|
|
%bcond_without tests
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
%global buildtests -DBUILD_TESTS=ON
|
|
|
|
%endif
|
|
|
|
|
2009-08-23 18:28:26 +00:00
|
|
|
%bcond_without doc
|
|
|
|
%global apidocdir __api-doc_fedora
|
|
|
|
|
2005-01-18 19:13:31 +00:00
|
|
|
Name: taglib
|
2007-09-24 13:36:35 +00:00
|
|
|
Version: 1.5
|
2009-08-23 18:28:26 +00:00
|
|
|
Release: 7%{?dist}
|
2005-03-05 19:43:17 +00:00
|
|
|
Summary: Audio Meta-Data Library
|
2004-11-08 05:24:27 +00:00
|
|
|
|
|
|
|
Group: System Environment/Libraries
|
2007-08-26 10:06:15 +00:00
|
|
|
License: LGPLv2
|
2008-02-21 02:44:59 +00:00
|
|
|
URL: http://developer.kde.org/~wheeler/taglib.html
|
|
|
|
Source0: http://developer.kde.org/~wheeler/files/src/taglib-%{version}.tar.gz
|
2008-02-04 15:16:57 +00:00
|
|
|
#Source0: taglib-%{svn}.tar.gz
|
|
|
|
# The svn tarball is generated with the following script
|
2007-09-24 13:36:35 +00:00
|
|
|
Source1: taglib-svn.sh
|
2004-11-08 05:24:27 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
2008-01-16 13:12:22 +00:00
|
|
|
# http://bugzilla.redhat.com/343241
|
2008-02-13 12:45:45 +00:00
|
|
|
# try 1, use pkg-config
|
2008-02-04 15:16:57 +00:00
|
|
|
Patch1: taglib-1.5b1-multilib.patch
|
2008-02-13 12:45:45 +00:00
|
|
|
# try 2, kiss omit -L%_libdir
|
|
|
|
Patch2: taglib-1.5rc1-multilib.patch
|
2004-11-08 05:24:27 +00:00
|
|
|
|
2009-08-22 10:42:57 +00:00
|
|
|
Patch3: taglib-1.5-tests.patch
|
|
|
|
|
2008-10-06 20:54:30 +00:00
|
|
|
## upstream patches
|
2009-08-22 10:44:21 +00:00
|
|
|
Patch101: taglib-1.5-1.6-ape.patch
|
|
|
|
Patch102: taglib-1.5-1.6-ogg.patch
|
|
|
|
Patch103: taglib-1.5-1.6-flac.patch
|
|
|
|
Patch104: taglib-1.5-1.6-toolkit.patch
|
|
|
|
Patch105: taglib-1.5-1.6-mpeg.patch
|
|
|
|
Patch106: taglib-1.5-1.6-mpeg-cmake.patch
|
2008-10-06 20:54:30 +00:00
|
|
|
|
2007-09-27 20:12:07 +00:00
|
|
|
BuildRequires: cmake
|
2008-12-12 20:20:32 +00:00
|
|
|
BuildRequires: pkgconfig
|
2007-09-27 20:25:47 +00:00
|
|
|
BuildRequires: zlib-devel
|
2009-08-22 10:45:42 +00:00
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: cppunit-devel
|
|
|
|
%endif
|
2009-08-23 18:28:26 +00:00
|
|
|
%if %{with doc}
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: graphviz
|
|
|
|
%endif
|
2009-08-22 10:45:42 +00:00
|
|
|
|
2007-09-24 14:01:05 +00:00
|
|
|
|
2004-11-08 05:24:27 +00:00
|
|
|
%description
|
2005-03-05 19:43:17 +00:00
|
|
|
TagLib is a library for reading and editing the meta-data of several
|
2009-08-22 10:41:49 +00:00
|
|
|
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 files, as well as APE Tags.
|
|
|
|
|
2004-11-08 05:24:27 +00:00
|
|
|
|
2009-08-23 18:28:26 +00:00
|
|
|
%if %{with doc}
|
|
|
|
%package doc
|
|
|
|
Summary: API Documentation for %{name}
|
|
|
|
Group: Documentation
|
2009-08-23 18:30:10 +00:00
|
|
|
%if 0%{?fedora} > 10
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
2009-08-23 18:28:26 +00:00
|
|
|
|
|
|
|
%description doc
|
|
|
|
This is API documentation generated from the TagLib source code.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
2004-11-08 05:24:27 +00:00
|
|
|
%package devel
|
2008-02-21 02:48:39 +00:00
|
|
|
Summary: Development files for %{name}
|
2004-11-08 05:24:27 +00:00
|
|
|
Group: Development/Libraries
|
2005-03-05 19:43:17 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2006-09-14 15:07:54 +00:00
|
|
|
Requires: pkgconfig
|
2009-08-23 18:28:26 +00:00
|
|
|
%if ! %{with doc}
|
|
|
|
Obsoletes: %{name}-doc
|
|
|
|
%endif
|
|
|
|
|
2004-11-08 05:24:27 +00:00
|
|
|
%description devel
|
2009-08-22 10:41:49 +00:00
|
|
|
Files needed when building software with %{name}.
|
2004-11-08 05:24:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2008-02-04 15:16:57 +00:00
|
|
|
%setup -q -n taglib-%{version}%{?beta}
|
2008-01-16 13:12:22 +00:00
|
|
|
|
2009-08-22 10:42:57 +00:00
|
|
|
# patch1 not applied
|
2008-02-13 12:45:45 +00:00
|
|
|
## omit for now
|
|
|
|
%patch2 -p1 -b .multilib
|
2004-11-08 05:24:27 +00:00
|
|
|
|
2009-08-22 10:42:57 +00:00
|
|
|
%patch3 -p1 -b .tests
|
2009-08-22 10:44:21 +00:00
|
|
|
%patch101 -p1 -b .ape
|
|
|
|
%patch102 -p1 -b .ogg
|
|
|
|
%patch103 -p1 -b .flac
|
|
|
|
%patch104 -p1 -b .toolkit
|
|
|
|
%patch105 -p1 -b .mpeg
|
|
|
|
%patch106 -p1 -b .mpeg-build
|
2008-10-06 20:54:30 +00:00
|
|
|
|
2007-09-27 20:12:07 +00:00
|
|
|
|
2004-11-08 05:24:27 +00:00
|
|
|
%build
|
2007-09-27 20:12:07 +00:00
|
|
|
mkdir -p %{_target_platform}
|
|
|
|
pushd %{_target_platform}
|
2009-08-22 10:42:57 +00:00
|
|
|
%{cmake} %{?buildtests} ..
|
2007-09-27 20:12:07 +00:00
|
|
|
popd
|
|
|
|
|
|
|
|
make %{?_smp_mflags} -C %{_target_platform}
|
2007-09-24 13:36:35 +00:00
|
|
|
|
2009-08-23 18:28:26 +00:00
|
|
|
%if %{with doc}
|
|
|
|
cd doc
|
|
|
|
doxygen taglib.doxygen
|
|
|
|
cd -
|
|
|
|
%endif
|
|
|
|
|
2004-11-08 05:24:27 +00:00
|
|
|
|
|
|
|
%install
|
2008-02-13 12:45:45 +00:00
|
|
|
rm -rf %{buildroot}
|
2004-11-08 05:24:27 +00:00
|
|
|
|
2008-02-13 12:45:45 +00:00
|
|
|
make install DESTDIR=%{buildroot} -C %{_target_platform}
|
2007-09-27 20:12:07 +00:00
|
|
|
|
2004-11-08 05:24:27 +00:00
|
|
|
rm -fr examples/.deps
|
2009-08-23 18:28:26 +00:00
|
|
|
rm -fr examples/Makefile* examples/CMake*
|
2008-02-13 12:45:45 +00:00
|
|
|
rm -f %{buildroot}%{_libdir}/lib*.la
|
2004-11-08 05:24:27 +00:00
|
|
|
|
2009-08-23 18:28:26 +00:00
|
|
|
%if %{with doc}
|
|
|
|
rm -fr %{apidocdir} ; mkdir %{apidocdir}
|
|
|
|
cp -a doc/html doc/*.png %{apidocdir}
|
|
|
|
ln -s html/index.html %{apidocdir}
|
|
|
|
%endif
|
|
|
|
|
2004-11-08 05:24:27 +00:00
|
|
|
|
2009-08-22 10:42:57 +00:00
|
|
|
%if %{with tests}
|
|
|
|
%check
|
|
|
|
cp -a tests/data %{_target_platform}/tests
|
|
|
|
cd %{_target_platform}
|
2009-08-22 10:58:11 +00:00
|
|
|
LD_LIBRARY_PATH=%{buildroot}%{_libdir}:$LD_LIBRARY_PATH make check
|
2009-08-22 10:42:57 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
|
2005-08-01 18:54:16 +00:00
|
|
|
%clean
|
2008-02-13 12:45:45 +00:00
|
|
|
rm -rf %{buildroot}
|
2005-08-01 18:54:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
2008-02-13 12:45:45 +00:00
|
|
|
|
2005-08-01 18:54:16 +00:00
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
2004-11-08 05:24:27 +00:00
|
|
|
%files
|
2008-02-13 12:45:45 +00:00
|
|
|
%defattr(-,root,root,-)
|
2007-11-12 02:52:34 +00:00
|
|
|
%doc AUTHORS COPYING.LGPL
|
2004-11-08 05:24:27 +00:00
|
|
|
%{_libdir}/lib*.so.*
|
|
|
|
|
|
|
|
%files devel
|
2008-02-13 12:45:45 +00:00
|
|
|
%defattr(-,root,root,-)
|
2007-09-24 13:36:35 +00:00
|
|
|
%doc examples
|
2004-11-08 05:24:27 +00:00
|
|
|
%{_bindir}/*-config
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/lib*.so
|
2005-08-01 18:54:16 +00:00
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2004-11-08 05:24:27 +00:00
|
|
|
|
2009-08-23 18:28:26 +00:00
|
|
|
%if %{with doc}
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc %{apidocdir}/*
|
|
|
|
%endif
|
|
|
|
|
2004-11-08 05:24:27 +00:00
|
|
|
|
|
|
|
%changelog
|
2009-08-23 18:28:26 +00:00
|
|
|
* Sun Aug 23 2009 Michael Schwendt <mschwendt@fedoraproject.org> - 1.5-7
|
|
|
|
- Build API documentation into -doc package.
|
|
|
|
|
2009-08-22 10:41:49 +00:00
|
|
|
* Sat Aug 22 2009 Michael Schwendt <mschwendt@fedoraproject.org> - 1.5-6
|
2009-08-22 10:42:57 +00:00
|
|
|
- Add %%check section and conditionally build with tests.
|
2009-08-22 10:41:49 +00:00
|
|
|
- Update descriptions (and mention the additional file formats).
|
2009-08-22 10:44:21 +00:00
|
|
|
- Cherry-pick bug-fix patches from 1.6 development (also replaces the
|
|
|
|
old taglib-1.5-kde#161721.patch):
|
|
|
|
* Fixed crash when saving a Locator APEv2 tag. (BUG:169810)
|
|
|
|
* TagLib can now use FLAC padding block. (BUG:107659)
|
|
|
|
* Fixed overflow while calculating bitrate of FLAC files with a very
|
|
|
|
high bitrate.
|
|
|
|
* XiphComment::year() now falls back to YEAR if DATE doesn't exist
|
|
|
|
and XiphComment::year() falls back to TRACKNUM if TRACKNUMBER doesn't
|
|
|
|
exist. (BUG:144396)
|
|
|
|
* Fixed a bug in ByteVectorList::split().
|
|
|
|
* Fixed a possible crash in the non-const version of String::operator[]
|
|
|
|
and in String::operator+=. (BUG:169389)
|
|
|
|
* ID3v2.2 frames are now not incorrectly saved. (BUG:176373)
|
|
|
|
* Support for ID3v2.2 PIC frames. (BUG:167786)
|
|
|
|
* Improved ID3v2.3 genre parsing. (BUG:188578)
|
|
|
|
* Better checking of corrupted ID3v2 APIC data. (BUG:168382)
|
|
|
|
* Bitrate calculating using the Xing header now uses floating point
|
|
|
|
numbers. (BUG:172556)
|
|
|
|
* Added support for PRIV ID3v2 frames.
|
|
|
|
* Empty ID3v2 genres are no longer treated as numeric ID3v1 genres.
|
|
|
|
* Added support for the POPM (rating/playcount) ID3v2 frame.
|
|
|
|
* Fixed crash on handling unsupported ID3v2 frames, e.g. on encrypted
|
|
|
|
frames. (BUG:161721)
|
2009-08-22 10:41:49 +00:00
|
|
|
|
2009-07-27 05:29:32 +00:00
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-02-25 18:20:14 +00:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-12-12 20:20:32 +00:00
|
|
|
* Fri Dec 12 2008 Rex Dieter <rdieter@fedoraproject.org> 1.5-3
|
|
|
|
- rebuild for pkgconfig deps
|
|
|
|
|
2008-10-06 20:54:30 +00:00
|
|
|
* Mon Oct 06 2008 Rex Dieter <rdieter@fedoraproject.org> 1.5-2
|
|
|
|
- Encrypted frames taglib/Amarok crash (kde#161721)
|
|
|
|
|
2008-02-21 02:44:59 +00:00
|
|
|
* Wed Feb 20 2008 Rex Dieter <rdieter@fedoraproject.org> 1.5-1
|
|
|
|
- taglib-1.5
|
|
|
|
|
2008-02-13 12:45:45 +00:00
|
|
|
* Wed Feb 13 2008 Rex Dieter <rdieter@fedoraproject.org> 1.5-0.9.rc1
|
|
|
|
- taglib-1.5rc1
|
|
|
|
- omit taglib-1.4_wchar.diff (for now)
|
|
|
|
|
2008-02-04 15:16:57 +00:00
|
|
|
* Mon Feb 04 2008 Rex Dieter <rdieter@fedoraproject.org> 1.5-0.8.b1
|
|
|
|
- taglib-1.5b1
|
|
|
|
|
2008-01-16 13:12:22 +00:00
|
|
|
* Wed Jan 16 2008 Rex Dieter <rdieter[AT]fedoraproject.org> 1.5-0.7.20080116svn
|
|
|
|
- svn20080116 snapshot
|
|
|
|
- multiarch conflicts (#343241)
|
|
|
|
|
2007-11-12 02:52:34 +00:00
|
|
|
* Sun Nov 11 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.5-0.6.20071111svn
|
|
|
|
- svn20071111 snapshot (#376241)
|
|
|
|
|
2007-09-27 20:25:47 +00:00
|
|
|
* Thu Sep 27 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.5-0.5.20070924svn
|
|
|
|
- -BR: automake
|
|
|
|
- +BR: zlib-devel
|
|
|
|
|
2007-09-27 20:12:07 +00:00
|
|
|
* Thu Sep 27 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.5-0.4.20070924svn
|
|
|
|
- use cmake, fixes "taglib_export.h not included" (#272361#c7)
|
|
|
|
|
2007-09-24 14:22:03 +00:00
|
|
|
* Mon Sep 24 2007 Aurelien Bompard <abompard@fedoraproject.org> 1.5-0.3.20070924svn
|
|
|
|
- rebuild
|
|
|
|
|
2007-09-24 14:01:05 +00:00
|
|
|
* Mon Sep 24 2007 Aurelien Bompard <abompard@fedoraproject.org> 1.5-0.2.20070924svn
|
2007-09-24 14:10:15 +00:00
|
|
|
- BR: automake
|
2007-09-24 14:01:05 +00:00
|
|
|
|
2007-09-24 13:36:35 +00:00
|
|
|
* Mon Sep 24 2007 Aurelien Bompard <abompard@fedoraproject.org> 1.5-0.1.20070924svn
|
|
|
|
- update to svn version
|
|
|
|
|
2007-08-26 10:06:15 +00:00
|
|
|
* Sun Aug 26 2007 Aurelien Bompard <abompard@fedoraproject.org> 1.4-6
|
|
|
|
- fix license tag
|
|
|
|
- rebuild for BuildID
|
|
|
|
|
2006-12-18 22:19:13 +00:00
|
|
|
* Thu Dec 14 2006 Aurelien Bompard <abompard@fedoraproject.org> 1.4-5
|
|
|
|
- add patch for multi-language support
|
|
|
|
|
2006-09-14 15:07:54 +00:00
|
|
|
* Thu Sep 14 2006 Aurelien Bompard <abompard@fedoraproject.org> 1.4-4
|
|
|
|
- have the devel package require pkgconfig (#206443)
|
|
|
|
|
2006-08-31 14:58:22 +00:00
|
|
|
* Thu Aug 31 2006 Aurelien Bompard <abompard@fedoraproject.org> 1.4-3
|
|
|
|
- rebuild
|
|
|
|
|
2006-02-21 19:03:31 +00:00
|
|
|
* Tue Feb 21 2006 Aurelien Bompard <gauret[AT]free.fr> 1.4-2
|
|
|
|
- rebuild for FC5
|
|
|
|
|
2005-08-01 18:54:16 +00:00
|
|
|
* Mon Aug 01 2005 Aurelien Bompard <gauret[AT]free.fr> 1.4-1
|
|
|
|
- version 1.4
|
|
|
|
|
2005-03-25 16:20:43 +00:00
|
|
|
* Fri Mar 25 2005 Michael Schwendt <mschwendt[AT]users.sf.net> 1.3.1-2
|
|
|
|
- rebuild with g++4
|
|
|
|
|
2005-01-18 19:13:31 +00:00
|
|
|
* Mon Jan 10 2005 Aurelien Bompard <gauret[AT]free.fr> 0:1.3.1-1
|
|
|
|
- version 1.3.1
|
|
|
|
- drop patch0
|
|
|
|
- don't nuke every .la files, only the useless ones
|
|
|
|
- spec improvements thanks to Rex Dieter
|
|
|
|
|
2004-11-10 16:12:03 +00:00
|
|
|
* Thu Nov 04 2004 Aurelien Bompard <gauret[AT]free.fr> 0:1.3-0.fdr.2
|
|
|
|
- add apeitem.h to the include files in -devel
|
|
|
|
|
2004-11-08 05:24:36 +00:00
|
|
|
* Mon Oct 04 2004 Aurelien Bompard <gauret[AT]free.fr> 0:1.3-0.fdr.1
|
|
|
|
- version 1.3
|
|
|
|
|
2004-11-08 05:24:27 +00:00
|
|
|
* Sun Jun 06 2004 Aurelien Bompard <gauret[AT]free.fr> 0:1.1-0.fdr.5
|
|
|
|
- Changed license to LGPL
|
|
|
|
- include examples only in -devel
|
|
|
|
- remove Makefile* from examples
|
|
|
|
- remove *.la files
|
|
|
|
|
|
|
|
* Fri Jun 04 2004 Mihai Maties <mihai[AT]xcyb.org> 0:1.1-0.fdr.4
|
|
|
|
- included .la files as well
|
|
|
|
- compiled doc and included in -devel
|
|
|
|
- included examples in -devel
|
|
|
|
|
|
|
|
* Thu Jun 03 2004 Aurelien Bompard <gauret[AT]free.fr> 0:1.1-0.fdr.3
|
|
|
|
- provide the libtool files in the -devel subpackage
|
|
|
|
- include exemples in doc
|
|
|
|
|
|
|
|
* Thu Jun 03 2004 Aurelien Bompard <gauret[AT]free.fr> 0:1.1-0.fdr.2
|
|
|
|
- remove empty README
|
|
|
|
- add Requires(post,postun): /sbin/ldconfig
|
|
|
|
- remove --disable-static, it was useless anyway
|
|
|
|
|
|
|
|
* Tue Jun 01 2004 Aurelien Bompard <gauret[AT]free.fr> 0:1.1-0.fdr.1
|
|
|
|
- Fedora submission (shamelessly borrowed from Rex -- kde-redhat.sf.net)
|
|
|
|
|
|
|
|
* Sun Apr 04 2004 Rex Dieter <rexdieter at sf.net> 0:1.1-0.fdr.1
|
|
|
|
- 1.1
|
|
|
|
|
|
|
|
* Thu Feb 12 2004 Rex Dieter <rexdieter at sf.net> 0:1.0-0.fdr.1
|
|
|
|
- fix for rh73
|
|
|
|
|
|
|
|
* Fri Feb 06 2004 Rex Dieter <rexdieter at sf.net> 0:1.0-0.fdr.0
|
2005-03-05 19:43:17 +00:00
|
|
|
- first try
|