taglib/taglib.spec
OBS User autobuild 1b1b98bed3 Accepting request 33298 from multimedia:libs
Copy from multimedia:libs/taglib based on submit request 33298 from user coolo

OBS-URL: https://build.opensuse.org/request/show/33298
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/taglib?expand=0&rev=12
2010-02-24 01:29:21 +00:00

127 lines
3.2 KiB
RPMSpec

#
# spec file for package taglib (Version 1.6.1)
#
# Copyright (c) 2010 SUSE LINUX Products 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/
#
# norootforbuild
Name: taglib
BuildRequires: cmake doxygen gcc-c++ graphviz update-desktop-files zlib-devel
%if %suse_version > 1020
BuildRequires: fdupes
%endif
License: LGPLv2.1+ ; MPL ..
Group: Development/Libraries/C and C++
Summary: C++ Library to Parse Metadata in Media Files
Url: http://ktown.kde.org/~wheeler/taglib/
# bug437293
%ifarch ppc64
Obsoletes: taglib-64bit
%endif
#
Version: 1.6.1
Release: 2
Source0: %name-%version.tar.bz2
Source1: %name.desktop
Source2: baselibs.conf
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: LGPLv2.1+
Summary: C++ Library to Parse Metadata in media files
Requires: taglib = %{version} libstdc++-devel
# bug437293
%ifarch ppc64
Obsoletes: taglib-devel-64bit
%endif
#
%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}"
_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} %{?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