File libmatroska.spec of Package libmatroska

#
# spec file for package libmatroska (Version 0.8.1)
#
# Copyright (c) 2009 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:           libmatroska
BuildRequires:  gcc-c++ libebml-devel
Url:            http://dl.matroska.org/downloads/libmatroska/
Version:        0.8.1
Release:        101
Summary:        Library to Deal with Matroska Files
License:        LGPL v2.1 or later
Group:          Development/Libraries/Other
Source:         %{name}-%{version}.tar.bz2
Patch:          makefile.diff
Summary:        Library to Deal with Matroska Files
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Prefix:         /usr

%description
Libmatroska is a C++ library to parse Matroska files (.mkv and .mka).
It depends on libebml to work. You only need this package to compile
your own applications.



Authors:
--------
    Steve Lhomme <steve.lhomme@free.fr>

%package devel
License:        LGPL v2.1 or later
Summary:        Library to Deal with Matroska Files
Group:          Development/Libraries/Other
Provides:       libmatroska:/usr/include/matroska/KaxVersion.h
Requires:       libmatroska = %{version}
Requires:       libebml-devel
AutoReqProv:    on

%description devel
Libmatroska is a C++ library to parse Matroska files (.mkv and .mka).
It depends on libebml to work. You only need this package to compile
your own applications.



Authors:
--------
    Steve Lhomme <steve.lhomme@free.fr>

%prep
%setup -q
%patch -p1

%build
cd make/linux
%{__make} %{?jobs:-j%jobs} PREFIX=$RPM_BUILD_ROOT/usr LIBDIR=%{_libdir} CXXFLAGS="$RPM_OPT_FLAGS"

%install
cd make/linux
make install PREFIX=$RPM_BUILD_ROOT/usr LIBDIR=$RPM_BUILD_ROOT/%{_libdir}
%{__rm} -f %{buildroot}%{_libdir}/*.a

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr (-,root,root)
%{_libdir}/libmatroska*.so.*

%files devel
%defattr (-,root,root)
%{_libdir}/libmatroska*.so
/usr/include/matroska

%changelog
* Tue Jan 13 2009 crrodriguez@suse.de
- remove static libraries
* Sat May 26 2007 ro@suse.de
- added libebml-devel to buildreq
- split off devel package
* Mon Feb 26 2007 seife@suse.de
- version update to 0.8.1
  - add support for KaxCodecState and indexing them in the cues
  - "make install" fixes
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Nov 21 2005 seife@suse.de
- version update to 0.8.0
* Wed Nov 02 2005 dmueller@suse.de
- don't build as root
* Wed Sep 28 2005 meissner@suse.de
- use RPM_OPT_FLAGS correctly.
* Tue Jul 05 2005 seife@suse.de
- version 0.7.7
* Sun Apr 17 2005 seife@suse.de
- version 0.7.6
* Mon Feb 07 2005 seife@suse.de
- version 0.7.5
* Tue Oct 26 2004 seife@suse.de
- version 0.7.4
* Thu Sep 02 2004 seife@suse.de
- add libebml to neededforbuild
* Wed Sep 01 2004 seife@suse.de
- initial submission
openSUSE Build Service is sponsored by