]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blobdiff - xz/xz.nm
ncurses: Package essential terminfo files in -base package.
[people/amarx/ipfire-3.x.git] / xz / xz.nm
index a44f47278afb557c80fd4719a0c7d672091dd344..16ed2cde33ba49f4c0c01de7cc9e9ab074bba5f0 100644 (file)
--- a/xz/xz.nm
+++ b/xz/xz.nm
@@ -5,11 +5,13 @@
 
 name       = xz
 version    = 5.0.3
-release    = 2
+release    = 7
 
-groups     = Build Applications/Compression
+compat_version = 4.999.9beta
+
+groups     = Applications/Compression
 url        = http://tukaani.org/xz/
-license    = GPLv2+
+license    = LGPLv2+
 summary    = LZMA Utils.
 
 description
@@ -20,11 +22,36 @@ description
        tools.
 end
 
-source_url = http://tukaani.org/xz/
-sources    = %{thisapp}.tar.xz
+source_dl  = http://tukaani.org/xz/
+sources    = %{thisapp}.tar.xz %{name}-%{compat_version}.tar.xz
+
+build
+       configure_options += --disable-rpath
+
+       build_cmds
+               # Build compat version of library.
+               cd %{DIR_SRC}/%{name}-%{compat_version}
+               ./configure %{configure_options}
+               %{MACRO_FIX_LIBTOOL}
+               make %{PARALLELISMFLAGS}
+       end
+
+       test
+               export LD_LIBRARY_PATH=$(pwd)/src/liblzma/.libs
+               make check
+       end
+
+       install_cmds
+               # Install comapt version of library.
+               cd %{DIR_SRC}/%{name}-%{compat_version}
+               cp -vr src/liblzma/.libs/liblzma.so.0* %{BUILDROOT}%{libdir}
+       end
+end
 
 packages
        package %{name}
+               groups += Build
+       end
 
        package %{name}-libs
                template LIBS
@@ -33,4 +60,35 @@ packages
        package %{name}-devel
                template DEVEL
        end
+
+       package xz-lzma-compat
+               summary = Older LZMA format compatibility binaries.
+               description
+                       The xz-lzma-compat package contains compatibility
+                       links for older commands that deal with the older
+                       LZMA format.
+               end
+               license = GPLv2+ and LGPLv2+
+               groups += Build
+
+               requires = %{name}=%{thisver}
+               provides = lzma
+
+               files
+                       /usr/bin/*lz*
+                       /usr/share/man/man1/*lz*
+               end
+       end
+
+       package xz-compat-libs
+               summary = Compatibility version of %{name} (%{compat_version}).
+
+               files
+                       %{libdir}/lib*.so.0*
+               end
+       end
+
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
 end