---- libmatroska-0.8.1/make/linux/Makefile.orig 2006-06-02 16:32:52.000000000 +0200
-+++ libmatroska-0.8.1/make/linux/Makefile 2007-02-17 21:06:58.961639212 +0100
+--- libmatroska-1.0.0/make/linux/Makefile~ 2010-08-05 23:37:39.000000000 +0300
++++ libmatroska-1.0.0/make/linux/Makefile 2010-08-05 23:38:53.361903703 +0300
@@ -28,6 +28,7 @@
INSTALL_OPTS = -m 644
INSTALL_OPTS_LIB = -m 644
EXTENSION=.cpp
ifeq (yes,$(DEBUG))
-@@ -52,12 +53,10 @@
+@@ -50,12 +50,10 @@
# Librarires
INCLUDE=-I$(CWD)/../.. -I$(LIBEBML_INCLUDE_DIR)
LIBS=
# Names
-LIBRARY=libmatroska.a
-LIBRARY_SO=libmatroska.so
--LIBRARY_SO_VER=libmatroska.so.0
+-LIBRARY_SO_VER=libmatroska.so.2
+LIBRARY=libmatroska.la
# source-files
WARNINGFLAGS=-Wall -Wno-unknown-pragmas -ansi -fno-gnu-keywords -D_GNU_SOURCE \
-Wshadow
-@@ -79,32 +76,19 @@
+@@ -75,32 +73,19 @@
ifeq (Darwin,$(shell uname -s))
all: staticlib
else
+ $(LIBTOOL) --mode=compile --tag=CC $(CXX) -c $(COMPILEFLAGS) -o $@ $<
$(LIBRARY): $(objects)
-- $(AR) $@ $(objects)
+- $(AR) rcvu $@ $(objects)
- $(RANLIB) $@
-
-$(LIBRARY_SO): $(objects_so)
- $(CXX) -shared -Wl,-soname,$(LIBRARY_SO_VER) -o $(LIBRARY_SO_VER) $(objects_so) -lebml
- rm -f $(LIBRARY_SO)
- ln -s $(LIBRARY_SO_VER) $(LIBRARY_SO)
-+ $(LIBTOOL) --mode=link --tag=CC $(LD) $(LDFLAGS) -o $@ $^ $(LIBS) -lebml -rpath $(libdir)
++ $(LIBTOOL) --mode=link --tag=CC $(LD) $(LDFLAGS) -version-info 2:0:0 -o $@ $^ $(LIBS) -lebml -rpath $(libdir)
clean: cleantest
rm -f $(objects) $(objects_so)
Summary: Extensible Binary Meta Language access library
Summary(pl.UTF-8): Biblioteka dostępu rozszerzalnego metajęzyka binarnego
Name: libmatroska
-Version: 0.8.1
+Version: 1.0.0
Release: 1
License: LGPL v2.1+
Group: Libraries
Source0: http://dl.matroska.org/downloads/libmatroska/%{name}-%{version}.tar.bz2
-# Source0-md5: 20cf624ace0c58a54c7752eebfbc0b19
+# Source0-md5: 4efcf3945b17a6f0320cf1aaa326a4de
Patch0: %{name}-makefile.patch
URL: http://www.matroska.org/
-BuildRequires: libebml-devel >= 0.7.6
+BuildRequires: libebml-devel >= 1.0.0
BuildRequires: libstdc++-devel
BuildRequires: libtool
-Requires: libebml >= 0.7.6
+BuildRequires: rpmbuild(macros) >= 1.566
+BuildRequires: sed >= 4.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Summary(pl.UTF-8): Nagłówki dla biblioteki matroska
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
-Requires: libebml-devel >= 0.7.6
+Requires: libebml-devel
Requires: libstdc++-devel
%description devel
%prep
%setup -q
+%undos make/linux/Makefile
%patch0 -p1
%build
%defattr(644,root,root,755)
%doc ChangeLog
%attr(755,root,root) %{_libdir}/libmatroska.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libmatroska.so.0
+%attr(755,root,root) %ghost %{_libdir}/libmatroska.so.2
%files devel
%defattr(644,root,root,755)