name = xz
version = 5.0.3
-release = 4
+release = 5
+
+compat_version = 4.999.9beta
groups = Applications/Compression
url = http://tukaani.org/xz/
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}
/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