File libebml.spec of Package libebml
#
# spec file for package libebml
#
# Copyright (c) 2014 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/
#
%define soname 4
Name: libebml
Version: 1.3.0
Release: 0
Summary: Libary to Parse EBML Files
License: LGPL-2.1+
Group: Development/Libraries/C and C++
Url: http://www.matroska.org/
Source: http://dl.matroska.org/downloads/libebml/%{name}-%{version}.tar.bz2
Source100: baselibs.conf
# PATCH-FIX-UPSTREAM libebml-1.3.0-6efcb74d1e.patch https://github.com/Matroska-Org/libebml/pull/1 reddwarf@opensuse.org -- Add packaging updates from upstream
Patch0: libebml-1.3.0-6efcb74d1e.patch
BuildRequires: gcc-c++
%description
libebml is a C++ library to parse EBML files. See the EBML RFV at
http://www.matroska.org/technical/specs/rfc/.
%package -n libebml%{soname}
Summary: Libary to Parse EBML Files
Group: System/Libraries
%description -n libebml%{soname}
libebml is a C++ library to parse EBML files. See the EBML RFV at
http://www.matroska.org/technical/specs/rfc/.
%package devel
Summary: Libary to Parse EBML Files
Group: Development/Libraries/C and C++
Requires: glibc-devel
Requires: libebml%{soname} = %{version}
Requires: libstdc++-devel
%description devel
libebml is a C++ library to parse EBML files. See the EBML RFV at
http://www.matroska.org/technical/specs/rfc/.
%prep
%setup -q
%patch0 -p1
%build
cd make/linux
make %{?_smp_mflags} link=shared CXXFLAGS="${CXXFLAGS:-%optflags}"
%install
cd make/linux
%make_install link=shared prefix=%{_prefix} libdir=%{_libdir}
%post -n libebml%{soname} -p /sbin/ldconfig
%postun -n libebml%{soname} -p /sbin/ldconfig
%files -n libebml%{soname}
%defattr (0644,root,root,0755)
%{_libdir}/libebml.so.%{soname}
%files devel
%defattr (0644,root,root,0755)
%{_libdir}/libebml.so
%{_includedir}/ebml
%changelog