---- libebml-0.7.8/make/linux/Makefile 2008-07-13 21:37:16.422034707 +0200
-+++ libebml-0.7.8/make/linux/Makefile 2010-08-05 22:54:21.405342023 +0300
+--- libebml-1.0.0/make/linux/Makefile~ 2010-08-05 23:04:21.000000000 +0300
++++ libebml-1.0.0/make/linux/Makefile 2010-08-05 23:04:54.438670198 +0300
@@ -28,6 +28,7 @@
INSTALL_OPTS = -m 644
INSTALL_OPTS_LIB = -m 644
# Names
-LIBRARY=libebml.a
-LIBRARY_SO=libebml.so
--LIBRARY_SO_VER=libebml.so.0
+-LIBRARY_SO_VER=libebml.so.2
+LIBRARY=libebml.la
# source-files
WARNINGFLAGS=-Wall -Wno-unknown-pragmas -ansi -fno-gnu-keywords -Wshadow
COMPILEFLAGS=$(WARNINGFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(DEBUGFLAGS) $(INCLUDE)
-@@ -83,20 +81,11 @@
+@@ -78,20 +78,11 @@
@false
# Build rules
+ $(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)
- rm -f $(LIBRARY_SO)
- ln -s $(LIBRARY_SO_VER) $(LIBRARY_SO)
-+ $(LIBTOOL) --mode=link --tag=CC $(LD) $(LDFLAGS) -o $@ $^ $(LIBS) -rpath $(libdir)
++ $(LIBTOOL) --mode=link --tag=CC $(LD) $(LDFLAGS) -version-info 2:0:0 -o $@ $^ $(LIBS) -rpath $(libdir)
clean:
rm -f $(objects) $(objects_so)
Summary: Extensible Binary Meta Language access library
Summary(pl.UTF-8): Biblioteka dostępu rozszerzalnego metajęzyka binarnego
Name: libebml
-Version: 0.7.8
+Version: 1.0.0
Release: 1
License: LGPL v2.1+
Group: Libraries
Source0: http://dl.matroska.org/downloads/libebml/%{name}-%{version}.tar.bz2
-# Source0-md5: 6278109f52e4f9d2c8a8dfc0d668b587
+# Source0-md5: 6d438f03d8928d83a2d120ed02705f03
Patch0: %{name}-makefile.patch
URL: http://www.matroska.org/
BuildRequires: libstdc++-devel
BuildRequires: libtool
+BuildRequires: rpmbuild(macros) >= 1.553
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%prep
%setup -q
+%undos make/linux/Makefile
%patch0 -p1
%build
%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libebml.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libebml.so.0
+%attr(755,root,root) %ghost %{_libdir}/libebml.so.2
%files devel
%defattr(644,root,root,755)