taglib/taglib.spec

206 lines
6.5 KiB
RPMSpec

#
# spec file for package taglib (Version 1.5)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: taglib
BuildRequires: cmake doxygen gcc-c++ graphviz update-desktop-files zlib-devel
%if %suse_version > 1020
BuildRequires: fdupes
%endif
License: LGPL v2.1 or later; MOZILLA PUBLIC LICENSE (MPL/NPL)
Group: Development/Libraries/C and C++
Summary: C++ Library to Parse Metadata in Media Files
Url: http://ktown.kde.org/~wheeler/taglib/
Version: 1.5
Release: 18
Source0: %name-%version.tar.bz2
Source1: %name.desktop
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
libtag provides a C++ interface for reading additional data (stored in
TAGs) from MP3, Ogg Vorbis, and MPEG files.
Authors:
--------
Scott Wheeler <wheeler@kde.org>
%package devel
Group: Development/Libraries/C and C++
License: LGPL v2.1 or later
Summary: C++ Library to Parse Metadata in media files
Requires: taglib = %{version} libstdc++-devel
%description devel
libtag provides a C++ interface for reading additional data (stored in
TAGs) from MP3, Ogg Vorbis, and MPEG files.
Authors:
--------
Scott Wheeler <wheeler@kde.org>
%prep
%setup -q
#%{__make} -f Makefile.cvs
%build
export CXXFLAGS="%{optflags}"
export CFLAGS="%{optflags}"
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DBUILD_TESTS:BOOL=ON -DLIB_INSTALL_DIR=%{_libdir} .
%{__make} %{?jobs:-j %jobs} VERBOSE=1
cd doc
doxygen taglib.doxygen
%install
%{__make} DESTDIR="%{buildroot}" install
# install susehelp file
%{__mkdir_p} %{buildroot}%{_datadir}/susehelp/meta/Development/Libraries/
%{__install} -m 0644 %SOURCE1 \
%{buildroot}%{_datadir}/susehelp/meta/Development/Libraries/
%suse_update_desktop_file %{buildroot}%{_datadir}/susehelp/meta/Development/Libraries/%name.desktop
%{__mkdir_p} %{buildroot}%_defaultdocdir/%name
%{__cp} -a AUTHORS doc/html \
%{buildroot}%_defaultdocdir/%name/
%if %suse_version > 1020
%fdupes %{buildroot}
%endif
%check
# check the library
#pushd tests
#make check
#popd
%clean
%{__rm} -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libtag*.so.*
%files devel
%defattr(-,root,root)
%doc %_defaultdocdir/%name
%{_datadir}/susehelp
%{_bindir}/taglib-config
%{_includedir}/taglib
%{_libdir}/libtag*.so
%{_libdir}/pkgconfig/*.pc
%changelog
* Thu Apr 10 2008 dmueller@suse.de
- fix build for older distros
* Thu Apr 10 2008 ro@suse.de
- added baselibs.conf file to build xxbit packages
for multilib support
* Sat Feb 23 2008 crrodriguez@suse.de
- build using Cmake
- update to version 1.5
* Support for Mac OS X and Microsoft Windows
* Distributed under the MPL (in addition to the previous LGPL license)
* Added support for Speex files
* Added support for TrueAudio files
* Added support for WavPack files
* Added support for ID3v2 general encapsulated object frames
* Added support for ID3v2 unsynchronized lyrics frames
* Added support for ID3v2 URL frames
* Propper exports of all public classes / functions
* Updated the APE::Item API to work with value lists
* Added support to the FileRef class for new Xiph (Ogg) extensions
* Made the samples per frame for MPEG headers accessible
* Made MP3 Xing headers accessible
* Prevent invalid encodings from being written to ID3v1 tags
* Non-Latin1 ID3v2 text frames are automatically converted to UTF-8 on write (if they are not explicitly set to UTF-16)
* Added support for reading ID3v2.2/3 unsynchronized tags
* Made it possible to search for ID3v2 comment frames by description
* Fixed a number of bugs in ID3v2 relative volume adjustment reading and writing
* Added work arounds for iTunes writing invalid ID3v2 frame lengths
* Added work arounds for iTunes not being able to correctly parse numerical ID3v2 genres
* Added work arounds for iTunes putting non-text information in ID3v2 comment frames
* Added a function to export strings to std::wstring
* Added a function to check ASCII compatibility of strings
* Added a function to check Latin1 compatibility of strings
* Wed Nov 07 2007 meissner@suse.de
- fixed gcc4.3 build
* Wed Aug 08 2007 crrodriguez@suse.de
- fix more issues:
- this package does NOT require libjpeg-devel for build
- after adding missing zlib-devel on BuildRequires in the
previous checkin, libtool archives causes bloat.
* Tue Aug 07 2007 crrodriguez@suse.de
- run ldconfig instead of using deprecated macro
- move the docs to the devel packages
- use fdupes to avoid duplicate files
- run make check in the check section
* Fri Oct 20 2006 dmueller@suse.de
- fix build with automake 1.10
* Tue Sep 12 2006 dmueller@suse.de
- fix include's in installed headers
* Mon Jul 03 2006 cthiel@suse.de
- fix build
* Thu Jun 15 2006 dmueller@suse.de
- build parallel
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Nov 29 2005 ro@suse.de
- added fontconfig to nfb
* Tue Sep 27 2005 mls@suse.de
- make devel package require base package
* Wed Aug 10 2005 dmueller@suse.de
- fix filelist
* Wed Aug 10 2005 dmueller@suse.de
- don't package empty TODO file
* Thu Jul 28 2005 adrian@suse.de
- update to version 1.4
* Mon Nov 08 2004 adrian@suse.de
- update to version 1.3.1
* 64bit OGG/Vorbis file lenght fixes
* crash fixes with broken mp3 files
* Fri Oct 01 2004 adrian@suse.de
- fix susehelp entry for API documentation
* Fri Sep 10 2004 adrian@suse.de
- update to version 1.3
* support for AOE tags and MPC files
* compressed ID3v2 frame support
* several checks for SIGFPE
* Wed Jul 28 2004 adrian@suse.de
- update to version 1.2
* flac in ogg support
* support for relativ volume adjustement
* support for attached picture
* Sun Apr 18 2004 adrian@suse.de
- update to version 1.1
* bugfixes
* some more supported tag types
* speed improvements
* Wed Jan 21 2004 adrian@suse.de
- update to version 1.0 final
- generate and install API documentation
* Mon Dec 15 2003 adrian@suse.de
- update to version 0.96 (beta 2)
* Thu Nov 13 2003 adrian@suse.de
- update to current HEAD, to get kdemultimedia compiling again
* Mon Nov 03 2003 adrian@suse.de
- package also taglib_c.so
* Mon Nov 03 2003 adrian@suse.de
- update to version 0.95 (beta 1)
* Thu Oct 30 2003 adrian@suse.de
- initial package from kdeextragear-2/taglib snapshot