Accepting request 257798 from hardware

Important usability, crash and memleak fixes.

OBS-URL: https://build.opensuse.org/request/show/257798
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libplist?expand=0&rev=27
This commit is contained in:
Stephan Kulow 2014-10-25 06:32:40 +00:00 committed by Git OBS Bridge
commit 26a54e7d8d
5 changed files with 43 additions and 22 deletions

View File

@ -1,3 +1,3 @@
libplist2
libplist++2
libplist3
libplist++3

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:28e1518eeea054f4eec9a1c93d9575d56193b290c53c1b753773a5e0add95235
size 355365

3
libplist-1.12.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0effdedcb3de128c4930d8c03a3854c74c426c16728b8ab5f0a5b6bdc0b644be
size 384321

View File

@ -1,3 +1,27 @@
-------------------------------------------------------------------
Fri Oct 17 03:30:00 CEST 2014 - m.szulecki@libimobiledevice.org
- Update to version 1.12
* Fix plist_from_bin() changing value nodes to key nodes in dictionaries
* Avoid exporting non-public symbols
* Prevent crash in plist_from_bin() when parsing unusual binary plists
* Fix crash in String|Key::GetValue() and actually make C++ interface work
* Fix memory leaks in new_xml_plist() and parse_real_node()
* Fix header guards to conform to C++ standard
* Update Cython based Python bindings and remove plist_new_key()
* Fix key nodes not being output correctly if they contained XML entities
* Fix handling and storage of signed vs. unsigned integer values
* Fix date handling to respect the "Mac Epoch" instead of "Unix Epoch"
* Remove plist_set_type() as it should not be used
* Fix deprecated macros to work with older LLVM/Clang
* Fix various shadowed declarations
* Add documentation to explicitly describe memory buffer ownership
* Fix memory leak in plist_from_bin()
* Add various test cases based on fixes
* Fix wrong timezone related date/time conversion of date nodes
* Fix endian detection on MIPS architecture
* Fix parallel build for autotools
-------------------------------------------------------------------
Mon Jun 16 15:29:11 UTC 2014 - i@marguerite.su

View File

@ -17,15 +17,13 @@
Name: libplist
Version: 1.11
Version: 1.12
Release: 0
Summary: Library for handling Apple Binary and XML Property Lists
License: GPL-2.0 and LGPL-2.1+
Group: System/Libraries
Url: http://cgit.sukimashita.com/libplist.git
# Factory_checker can't fetch this URL
#Source: http://cgit.sukimashita.com/libplist.git/snapshot/%{name}-%{version}.tar.bz2
Source: %{name}-%{version}.tar.bz2
Source: http://www.libimobiledevice.org/downloads/%{name}-%{version}.tar.bz2
Source99: baselibs.conf
BuildRequires: gcc-c++
BuildRequires: libxml2-devel >= 2.7.8
@ -37,22 +35,22 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
libplist is a library for handling Apple Binary and XML Property Lists.
%package -n libplist2
%package -n libplist3
Summary: Library for handling Apple Binary and XML Property Lists
Group: System/Libraries
Provides: libplist = %{version}
Obsoletes: libplist < %{version}
%description -n libplist2
%description -n libplist3
libplist is a library for handling Apple Binary and XML Property Lists.
%package -n libplist++2
%package -n libplist++3
Summary: Library for handling Apple Binary and XML Property Lists
Group: System/Libraries
Provides: libplist++ = %{version}
Obsoletes: libplist++ < %{version}
%description -n libplist++2
%description -n libplist++3
libplist is a library for handling Apple Binary and XML Property Lists.
%package -n plistutil
@ -92,7 +90,7 @@ This package contains the development files for C++.
%package -n python-plist
Summary: Library for handling Apple Binary and XML Property Lists -- Python Bindings
Group: Development/Languages/Python
Requires: libplist2 = %{version}
Requires: libplist3 = %{version}
Requires: python-cython >= 0.13
%description -n python-plist
@ -105,8 +103,7 @@ This package contains the python bindings.
%build
%configure --disable-static
# libplist doesn't support parallel build
make
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
@ -122,20 +119,20 @@ cp -a %{buildroot}%{?_sysroot}/* %{buildroot}/
rm -fr %{buildroot}%{?_sysroot}
%endif
%post -n libplist2 -p /sbin/ldconfig
%post -n libplist3 -p /sbin/ldconfig
%postun -n libplist2 -p /sbin/ldconfig
%postun -n libplist3 -p /sbin/ldconfig
%post -n libplist++2 -p /sbin/ldconfig
%post -n libplist++3 -p /sbin/ldconfig
%postun -n libplist++2 -p /sbin/ldconfig
%postun -n libplist++3 -p /sbin/ldconfig
%files -n libplist2
%files -n libplist3
%defattr(-,root,root)
%doc AUTHORS COPYING COPYING.LESSER README NEWS
%{_libdir}/libplist.so.*
%files -n libplist++2
%files -n libplist++3
%defattr(-,root,root)
%doc AUTHORS COPYING COPYING.LESSER README NEWS
%{_libdir}/libplist++.so.*