File libebml.spec of Package libebml

#
# spec file for package libebml (Version 1.0.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/
#


%define soname 2

Name:           libebml
Version:        1.0.0
Release:        3
License:        LGPLv2.1+
Summary:        Libary to Parse EBML Files
Url:            http://dl.matroska.org/downloads/libebml/
Group:          Development/Libraries/Other
Source:         libebml-%{version}.tar.bz2
BuildRequires:  gcc-c++
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
libebml is a C++ library to parse EBML files. See the EBML RFV at
http://www.matroska.org/technical/specs/rfc/.

%package -n libebml2
License:        LGPLv2.1+
Summary:        Libary to Parse EBML Files
Group:          Development/Libraries/Other

%description -n libebml2
libebml is a C++ library to parse EBML files. See the EBML RFV at
http://www.matroska.org/technical/specs/rfc/.

%package -n libebml-devel
License:        LGPLv2.1+
Summary:        Libary to Parse EBML Files
Group:          Development/Libraries/Other
Requires:       libebml2 = %{version}
Requires:       glibc-devel
Requires:       libstdc++-devel

%description -n libebml-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 -n libebml-%{version}

%build
cd make/linux
%{__make} %{?jobs:-j%jobs} CXXFLAGS="${CXXFLAGS:-%optflags}" sharedlib

%install
cd make/linux
%{__make} libdir=%{buildroot}%{_libdir} includedir=%{buildroot}%{_includedir}/ebml install_sharedlib install_headers

%clean
%{__rm} -rf %{buildroot}

%post -n libebml2 -p /sbin/ldconfig

%postun -n libebml2 -p /sbin/ldconfig

%files -n libebml2
%defattr (-,root,root)
%{_libdir}/libebml.so.%{soname}

%files -n libebml-devel
%defattr (-,root,root)
%{_libdir}/libebml.so
%{_includedir}/ebml

%changelog