File taglib-extras.spec of Package taglib-extras
#
# spec file for package taglib-extras
#
# Copyright (c) 2011 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
Url: http://amarok.kde.org
Name: taglib-extras
BuildRequires: libkde4-devel
BuildRequires: taglib-devel >= 1.6
License: LGPL-2.1+
Group: Development/Libraries/C and C++
Summary: Extra plugins for TagLib
Version: 1.0.1
Release: 10
Source0: taglib-extras-%version.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Obsoletes: taglib-extras < %{version}
Provides: taglib-extras = %{version}
%description
Unofficial TagLib file type plugins maintained by the Amarok project
%package devel
License: LGPL-2.1+
Group: Development/Libraries/C and C++
Summary: Extra plugins for TagLib
Requires: libtag-extras1 = %{version} libstdc++-devel
%description devel
Unofficial TagLib file type plugins maintained by the Amarok project
%package -n libtag-extras1
License: LGPL-2.1+
Group: System/GUI/KDE
Summary: Extra plugins for TagLib
%description -n libtag-extras1
Unofficial TagLib file type plugins maintained by the Amarok project
%prep
%setup -q -n %name-%version
%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_KDE=ON .
%{__make} %{?jobs:-j %jobs} VERBOSE=1
%install
%{__make} DESTDIR="%{buildroot}" install
%clean
%{__rm} -rf %{buildroot}
%post -n libtag-extras1 -p /sbin/ldconfig
%postun -n libtag-extras1 -p /sbin/ldconfig
%files -n libtag-extras1
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING.LGPL
%{_libdir}/libtag-extras*.so.*
%files -n taglib-extras-devel
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING.LGPL
%{_bindir}/taglib-extras-config
%{_includedir}/taglib-extras
%{_libdir}/libtag-extras*.so
%{_libdir}/pkgconfig/*.pc
%changelog