File libxspf.spec of Package libxspf

#
# spec file for package libxspf (Version 1.2.0)
#
# 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:           libxspf
Url:            http://libspiff.sourceforge.net/
Version:        1.2.0
Release:        1
License:        BSD3c ; LGPLv2.1+
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  gcc-c++ libexpat-devel liburiparser-devel >= 0.7.5 pkg-config
# doxygen
Group:          Development/Libraries/C and C++
Summary:        Provides XSPF playlist reading and writing support
Source:         http://downloads.xiph.org/releases/xspf/%{name}-%{version}.tar.bz2
Patch0:         libxspf-1.1.0-gcc44.patch

%description
libxspf the replacement for libSpiff brings XSPF playlist reading and
 writing support to your C++ application. Both version 0 and 1 are
supported. libxspf uses Expat for XML parsing and CppTest for unit
testing. libxspf is the official reference implementation for XSPF
of the Xiph.Org Foundation. Features :-
* Full conformance to the XSPF specification
* Cross-platform (Unix, Windows, Mac OS X, ...)
* Read and write XSPF files
* XSPF-0 and XSPF-1 support
* Unicode support
* Full support for XSPF extensions
* Full support for XML namespaces
* Fast (XML parsing is done by Expat)
* Uses unit testing
* Liberal license: New BSD license

Authors:
--------
    Sebastian Pipping, sping@xiph.org
    Ed Schouten, ed@fxq.nl

%package -n 	libxspf4
License:        BSD3c ; LGPLv2.1+
Group:          Development/Libraries/C and C++
Summary:        Provides XSPF playlist reading and writing support

%description -n libxspf4
libxspf brings XSPF playlist reading and writing support to your C++
application. Both version 0 and 1 are supported. libxspf uses Expat
for XML parsing and CppTest for unit testing. libxspf is the official
reference implementation for XSPF of the Xiph.Org Foundation. Features
* Full conformance to the XSPF specification
* Cross-platform (Unix, Windows, Mac OS X, ...)
* Read and write XSPF files
* XSPF-0 and XSPF-1 support
* Unicode support
* Full support for XSPF extensions
* Full support for XML namespaces
* Fast (XML parsing is done by Expat)
* Uses unit testing
* Liberal license: New BSD license

Authors:
--------
    Sebastian Pipping, sping@xiph.org
    Ed Schouten, ed@fxq.nl

%package -n libxspf-devel
License:        BSD3c ; LGPLv2.1+
Group:          Development/Libraries/C and C++
Summary:        Brings XSPF playlist read and write support to C++ apps
Requires:       libxspf4 = %{version} libstdc++-devel libexpat-devel

%description -n libxspf-devel
libxspf brings XSPF playlist reading and writing support to your C++
application. Both version 0 and 1 are supported. libxspf uses Expat
for XML parsing and CppTest for unit testing. libxspf is the official
reference implementation for XSPF of the Xiph.Org Foundation. Features

* Full conformance to the XSPF specification

* Cross-platform (Unix, Windows, Mac OS X, ...)

* Read and write XSPF files

* XSPF-0 and XSPF-1 support

* Unicode support

* Full support for XSPF extensions

* Full support for XML namespaces

* Fast (XML parsing is done by Expat)

* Uses unit testing

* Liberal license: New BSD license



Authors:
--------
    Sebastian Pipping, sping@xiph.org
    Ed Schouten, ed@fxq.nl

%prep
%setup -q
%patch0 -p1

%build
export  SUSE_ASNEEDED=0
autoreconf -fiv
%configure  --disable-test --enable-static=no --with-pic
#  --enable-doc
%{__make} %{?jobs:-j%jobs}

# This section no longer works without libcpptest and can be enabled when the package is available
# %check
# %{__make} %{?jobs:-j%jobs} check

%install
%makeinstall
%{__rm} -f %{buildroot}%{_libdir}/*.la

%clean
rm -rf %{buildroot}

%post -n libxspf4 -p /sbin/ldconfig

%postun -n libxspf4 -p /sbin/ldconfig

%files -n libxspf4
%defattr(-,root,root)
%{_libdir}/libxspf.so.4*

%files -n libxspf-devel
%defattr(-,root,root)
%{_bindir}/xspf_check
%{_bindir}/xspf_strip
%dir %{_includedir}/xspf
%dir %{_includedir}/xspf/ProjectOpus
%{_includedir}/xspf/ProjectOpus/*.h
%{_includedir}/xspf/*.h
%{_libdir}/libxspf.so
%{_libdir}/pkgconfig/xspf.pc

%changelog