]> git.ipfire.org Git - people/ms/ipfire-3.x.git/commitdiff
xz: Build compat lib from 4.999.9beta release.
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 5 Dec 2011 14:26:16 +0000 (15:26 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 5 Dec 2011 14:26:16 +0000 (15:26 +0100)
xz/xz.nm

index 09104b42cbf8139a6fc292e8d32d12c73accc5a6..d43805250280c46ed8ca817cb5e0112f843376b8 100644 (file)
--- a/xz/xz.nm
+++ b/xz/xz.nm
@@ -5,7 +5,9 @@
 
 name       = xz
 version    = 5.0.3
-release    = 4
+release    = 5
+
+compat_version = 4.999.9beta
 
 groups     = Applications/Compression
 url        = http://tukaani.org/xz/
@@ -21,7 +23,22 @@ description
 end
 
 source_dl  = http://tukaani.org/xz/
-sources    = %{thisapp}.tar.xz
+sources    = %{thisapp}.tar.xz %{name}-%{compat_version}.tar.xz
+
+build
+       build_cmds
+               # Build compat version of library.
+               cd %{DIR_SRC}/%{name}-%{compat_version}
+               ./configure %{configure_options}
+               make %{PARALLELISMFLAGS}
+       end
+
+       install_cmds
+               # Install comapt version of library.
+               cd %{DIR_SRC}/%{name}-%{compat_version}
+               cp -vr src/liblzma/.libs/liblzma.so.0* %{BUILDROOT}/usr/lib
+       end
+end
 
 packages
        package %{name}
@@ -54,4 +71,12 @@ packages
                        /usr/share/man/man1/*lz*
                end
        end
+
+       package xz-compat-libs
+               summary = Compatibility version of %{name} (%{compat_version}).
+
+               files
+                       /usr/lib/lib*.so.0*
+               end
+       end
 end