forked from pool/libplist
* Add new plist_get_data_ptr() and plist_get_string_ptr() for direct access to underlying buffer * Increase precision when converting PLIST_REAL nodes to XML * Fix several issues in libcnary (UaF, segfault, memory leak) * Fix copying of hash table entries when cloning array/dict nodes * cython: Implement load()/loads() and dump()/dumps() to match up with plistlib (Python 3.4) * Add new plist_dict_item_get_key() for retrieving key node of a dict item * Add new plist_array_item_remove() to allow removing an array's child node without relying on the index * Make plist_array_get_item_index() return UINT_MAX instead of 0 when node can't be found * Add index lookup table for large PLIST_ARRAY nodes * Add iterator for array nodes: plist_array_new_iter(), plist_array_next_item() * Improve performance of plist_dict_next_item() drastically * Improve performance and memory usage when writing XML plists * Improve performance and memory usage when writing binary plists * Allow building with sanitizers (without fuzzers) * Prevent store to misaligned address when writing real/date nodes * Work around misaligned reads in binary plist parser * Integrate fuzzing targets (libFuzzer) into project * Add sanitizers (ASAN, UBSAN) when building fuzzers (--with-fuzzers) OBS-URL: https://build.opensuse.org/package/show/hardware/libplist?expand=0&rev=9
161 lines
4.7 KiB
RPMSpec
161 lines
4.7 KiB
RPMSpec
#
|
|
# spec file for package libplist
|
|
#
|
|
# Copyright (c) 2020 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define cname libplist3
|
|
%define cppname libplist++3
|
|
Name: libplist
|
|
Version: 2.1.0
|
|
Release: 0
|
|
Summary: Library for handling Apple Binary and XML Property Lists
|
|
License: GPL-2.0-only AND LGPL-2.1-or-later
|
|
URL: https://github.com/libimobiledevice/libplist
|
|
Source: https://github.com/libimobiledevice/libplist/archive/%{version}.tar.gz
|
|
Source99: baselibs.conf
|
|
BuildRequires: gcc-c++ autoconf automake libtool
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: python3-Cython >= 0.17
|
|
BuildRequires: pkgconfig(python3)
|
|
|
|
%description
|
|
libplist is a library for handling Apple Binary and XML Property Lists.
|
|
|
|
%package -n %{cname}
|
|
Summary: Library for handling Apple Binary and XML Property Lists
|
|
Provides: libplist = %{version}
|
|
Obsoletes: libplist < %{version}
|
|
|
|
%description -n %{cname}
|
|
libplist is a library for handling Apple Binary and XML Property Lists.
|
|
|
|
%package -n %{cppname}
|
|
Summary: Library for handling Apple Binary and XML Property Lists
|
|
Provides: libplist++ = %{version}
|
|
Obsoletes: libplist++ < %{version}
|
|
|
|
%description -n %{cppname}
|
|
libplist is a library for handling Apple Binary and XML Property Lists.
|
|
|
|
%package -n plistutil
|
|
Summary: Library for handling Apple Binary and XML Property Lists
|
|
Requires: libplist = %{version}
|
|
Provides: plutil = %{version}
|
|
Obsoletes: plutil < %{version}
|
|
|
|
%description -n plistutil
|
|
libplist is a library for handling Apple Binary and XML Property Lists.
|
|
|
|
This package contains an utility to convert PList files from binary to XML and
|
|
from XML to binary.
|
|
|
|
%package devel
|
|
Summary: Library for handling Apple Binary and XML Property Lists -- Development Files
|
|
Requires: libplist = %{version}
|
|
|
|
%description devel
|
|
libplist is a library for handling Apple Binary and XML Property Lists.
|
|
|
|
This package contains the development files for C.
|
|
|
|
%package -n libplist++-devel
|
|
Summary: Library for handling Apple Binary and XML Property Lists -- Development Files
|
|
Requires: libplist++ = %{version}
|
|
Requires: pkgconfig(libplist)
|
|
|
|
%description -n libplist++-devel
|
|
libplist is a library for handling Apple Binary and XML Property Lists.
|
|
|
|
This package contains the development files for C++.
|
|
|
|
%package -n python3-plist
|
|
Summary: Library for handling Apple Binary and XML Property Lists -- Python Bindings
|
|
Requires: %{cname} = %{version}
|
|
Requires: python3-Cython >= 0.17
|
|
|
|
%description -n python3-plist
|
|
libplist is a library for handling Apple Binary and XML Property Lists.
|
|
|
|
This package contains the python bindings.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
autoreconf -fvi
|
|
%configure --disable-static
|
|
%make_build
|
|
|
|
%check
|
|
TZ=Europe/Vienna make check VERBOSE=1
|
|
|
|
%install
|
|
%make_install
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
# needed by python-imobiledevice build
|
|
mkdir -p %{buildroot}%{_includedir}/plist/cython
|
|
install -m 0644 cython/plist.pxd %{buildroot}%{_includedir}/plist/cython/plist.pxd
|
|
|
|
%post -n %{cname} -p /sbin/ldconfig
|
|
%postun -n %{cname} -p /sbin/ldconfig
|
|
%post -n %{cppname} -p /sbin/ldconfig
|
|
%postun -n %{cppname} -p /sbin/ldconfig
|
|
|
|
%files -n %{cname}
|
|
%license COPYING COPYING.LESSER
|
|
%doc AUTHORS README.md NEWS
|
|
%{_libdir}/libplist.so.*
|
|
|
|
%files -n %{cppname}
|
|
%license COPYING COPYING.LESSER
|
|
%doc AUTHORS README.md NEWS
|
|
%{_libdir}/libplist++.so.*
|
|
|
|
%files -n plistutil
|
|
%{_bindir}/plistutil
|
|
|
|
%files devel
|
|
%dir %{_includedir}/plist
|
|
%{_includedir}/plist/plist.h
|
|
%{_libdir}/libplist.so
|
|
%{_libdir}/pkgconfig/libplist.pc
|
|
|
|
%files -n libplist++-devel
|
|
%dir %{_includedir}/plist
|
|
%{_includedir}/plist/plist++.h
|
|
%{_includedir}/plist/Array.h
|
|
%{_includedir}/plist/Boolean.h
|
|
%{_includedir}/plist/Data.h
|
|
%{_includedir}/plist/Date.h
|
|
%{_includedir}/plist/Dictionary.h
|
|
%{_includedir}/plist/Integer.h
|
|
%{_includedir}/plist/Key.h
|
|
%{_includedir}/plist/Uid.h
|
|
%{_includedir}/plist/Node.h
|
|
%{_includedir}/plist/Real.h
|
|
%{_includedir}/plist/String.h
|
|
%{_includedir}/plist/Structure.h
|
|
%{_libdir}/libplist++.so
|
|
%{_libdir}/pkgconfig/libplist++.pc
|
|
|
|
%files -n python3-plist
|
|
%dir %{_includedir}/plist/cython
|
|
%{_includedir}/plist/cython/plist.pxd
|
|
%{python3_sitearch}/plist.so
|
|
|
|
%changelog
|