From 88b070412dc374b2402d5425f1f05bd87ec5d4db Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Thu, 5 Aug 2010 20:46:02 +0000 Subject: [PATCH] - up to 1.0.0, new soname (versioned deps solved via sonames as well) Changed files: libmatroska-makefile.patch -> 1.10 libmatroska.spec -> 1.26 --- libmatroska-makefile.patch | 14 +++++++------- libmatroska.spec | 14 ++++++++------ 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/libmatroska-makefile.patch b/libmatroska-makefile.patch index 14caa68..c5bae79 100644 --- a/libmatroska-makefile.patch +++ b/libmatroska-makefile.patch @@ -1,5 +1,5 @@ ---- 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 @@ -19,7 +19,7 @@ EXTENSION=.cpp ifeq (yes,$(DEBUG)) -@@ -52,12 +53,10 @@ +@@ -50,12 +50,10 @@ # Librarires INCLUDE=-I$(CWD)/../.. -I$(LIBEBML_INCLUDE_DIR) LIBS= @@ -29,7 +29,7 @@ # 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 @@ -47,7 +47,7 @@ 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 @@ -72,14 +72,14 @@ + $(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) diff --git a/libmatroska.spec b/libmatroska.spec index b3e493d..c40a703 100644 --- a/libmatroska.spec +++ b/libmatroska.spec @@ -1,18 +1,19 @@ 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 @@ -36,7 +37,7 @@ Summary: Header files for matroska library 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 @@ -59,6 +60,7 @@ Statyczna wersja biblioteki matroska. %prep %setup -q +%undos make/linux/Makefile %patch0 -p1 %build @@ -92,7 +94,7 @@ rm -rf $RPM_BUILD_ROOT %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) -- 2.43.0