diff --git a/libzio-0.9.dif b/libzio-0.9.dif new file mode 100644 index 0000000..651d48a --- /dev/null +++ b/libzio-0.9.dif @@ -0,0 +1,11 @@ +--- zio.c ++++ zio.c 2008-09-24 17:50:42.634160726 +0200 +@@ -189,7 +189,7 @@ FILE * fzopen(const char * path, const c + what = 'Z'; + else if (strcmp(path + len - 4, ".bz2" ) == 0) + what = 'b'; +- else if (strcmp(path + len - 4, ".lzma") == 0) ++ else if (strcmp(path + len - 5, ".lzma") == 0) + what = 'l'; + + if (what == 'n' && *check == 'r') { diff --git a/libzio.changes b/libzio.changes index 46c1791..eed149e 100644 --- a/libzio.changes +++ b/libzio.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Sep 24 17:51:53 CEST 2008 - werner@suse.de + +- Be able to detect -lzma suffix + ------------------------------------------------------------------- Wed Sep 24 14:10:08 CEST 2008 - werner@suse.de diff --git a/libzio.spec b/libzio.spec index 20995bc..c6628a4 100644 --- a/libzio.spec +++ b/libzio.spec @@ -30,11 +30,11 @@ License: GPL v2 or later Group: System/Libraries AutoReqProv: on Version: 0.9 -Release: 1 +Release: 2 Summary: A Library for Accessing Compressed Text Files BuildRoot: %{_tmppath}/%{name}-%{version}-build Source: libzio-%{version}.tar.bz2 -#Patch: libzio-%{version}.dif +Patch: libzio-%{version}.dif %description Libzio provides a wrapper function for reading or writing gzip or bzip2 @@ -108,6 +108,8 @@ make DESTDIR=$RPM_BUILD_ROOT install libdir=%{_libdir} mandir=%{_mandir} %changelog * Wed Sep 24 2008 werner@suse.de +- Be able to detect -lzma suffix +* Wed Sep 24 2008 werner@suse.de - Add support for lzma using liblzmadec * Mon Jul 21 2008 werner@suse.de - Make it build