forked from pool/libplist
* 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 OBS-URL: https://build.opensuse.org/package/show/hardware/libplist?expand=0&rev=3
178 lines
5.3 KiB
RPMSpec
178 lines
5.3 KiB
RPMSpec
#
|
|
# spec file for package libplist
|
|
#
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: libplist
|
|
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
|
|
Source: http://www.libimobiledevice.org/downloads/%{name}-%{version}.tar.bz2
|
|
Source: %{name}-%{version}.tar.bz2
|
|
Source99: baselibs.conf
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: libxml2-devel >= 2.7.8
|
|
BuildRequires: pkg-config
|
|
BuildRequires: python-cython
|
|
BuildRequires: python-devel
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
libplist is a library for handling Apple Binary and XML Property Lists.
|
|
|
|
%package -n libplist3
|
|
Summary: Library for handling Apple Binary and XML Property Lists
|
|
Group: System/Libraries
|
|
Provides: libplist = %{version}
|
|
Obsoletes: libplist < %{version}
|
|
|
|
%description -n libplist3
|
|
libplist is a library for handling Apple Binary and XML Property Lists.
|
|
|
|
%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++3
|
|
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
|
|
Group: System/Libraries
|
|
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
|
|
Group: Development/Libraries/C and C++
|
|
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
|
|
Group: Development/Libraries/C and C++
|
|
Requires: libplist++ = %{version}
|
|
Requires: libplist-devel
|
|
|
|
%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 python-plist
|
|
Summary: Library for handling Apple Binary and XML Property Lists -- Python Bindings
|
|
Group: Development/Languages/Python
|
|
Requires: libplist3 = %{version}
|
|
Requires: python-cython >= 0.13
|
|
|
|
%description -n python-plist
|
|
libplist is a library for handling Apple Binary and XML Property Lists.
|
|
|
|
This package contains the python bindings.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%configure --disable-static
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
rm -rf %{buildroot}%{python_sitearch}/*.la
|
|
|
|
# needed by python-imobiledevice build
|
|
mkdir -p %{buildroot}%{_includedir}/plist/cython
|
|
install -m 0644 cython/plist.pxd %{buildroot}%{_includedir}/plist/cython/plist.pxd
|
|
|
|
%if 0%{?_crossbuild}
|
|
cp -a %{buildroot}%{?_sysroot}/* %{buildroot}/
|
|
rm -fr %{buildroot}%{?_sysroot}
|
|
%endif
|
|
|
|
%post -n libplist3 -p /sbin/ldconfig
|
|
|
|
%postun -n libplist3 -p /sbin/ldconfig
|
|
|
|
%post -n libplist++3 -p /sbin/ldconfig
|
|
|
|
%postun -n libplist++3 -p /sbin/ldconfig
|
|
|
|
%files -n libplist3
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS COPYING COPYING.LESSER README NEWS
|
|
%{_libdir}/libplist.so.*
|
|
|
|
%files -n libplist++3
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS COPYING COPYING.LESSER README NEWS
|
|
%{_libdir}/libplist++.so.*
|
|
|
|
%files -n plistutil
|
|
%defattr(-,root,root)
|
|
%{_bindir}/plistutil
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%dir %{_includedir}/plist
|
|
%{_includedir}/plist/plist.h
|
|
%{_libdir}/libplist.so
|
|
%{_libdir}/pkgconfig/libplist.pc
|
|
|
|
%files -n libplist++-devel
|
|
%defattr(-,root,root,-)
|
|
%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 python-plist
|
|
%defattr(-,root,root,-)
|
|
%dir %{_includedir}/plist/cython
|
|
%{_includedir}/plist/cython/plist.pxd
|
|
%{python_sitearch}/plist.so
|
|
|
|
%changelog
|