2010-03-26 17:12:44 +01:00
|
|
|
#
|
2011-04-21 11:52:29 +02:00
|
|
|
# spec file for package libplist
|
2010-03-26 17:12:44 +01:00
|
|
|
#
|
2020-03-12 11:28:39 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2010-03-26 17:12:44 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-03-12 11:28:39 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-03-26 17:12:44 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2020-12-11 19:03:33 +01:00
|
|
|
%define cname libplist-2_0-3
|
|
|
|
%define cppname libplist++-2_0-3
|
2010-03-26 17:12:44 +01:00
|
|
|
Name: libplist
|
2020-12-11 19:03:33 +01:00
|
|
|
Version: 2.2.0
|
2012-02-15 16:16:16 +01:00
|
|
|
Release: 0
|
2010-04-01 18:23:14 +02:00
|
|
|
Summary: Library for handling Apple Binary and XML Property Lists
|
2020-03-12 11:28:39 +01:00
|
|
|
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
|
2017-01-25 17:29:00 +01:00
|
|
|
Source99: baselibs.conf
|
2020-12-11 19:03:33 +01:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libtool
|
2017-01-25 17:29:00 +01:00
|
|
|
BuildRequires: pkgconfig
|
2022-01-25 15:23:09 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
2020-03-12 11:28:39 +01:00
|
|
|
BuildRequires: python3-Cython >= 0.17
|
|
|
|
BuildRequires: pkgconfig(python3)
|
2011-04-21 11:52:29 +02:00
|
|
|
|
2010-03-26 17:12:44 +01:00
|
|
|
%description
|
2010-04-01 18:23:14 +02:00
|
|
|
libplist is a library for handling Apple Binary and XML Property Lists.
|
2010-03-26 17:12:44 +01:00
|
|
|
|
2020-03-12 11:28:39 +01:00
|
|
|
%package -n %{cname}
|
2010-04-01 18:23:14 +02:00
|
|
|
Summary: Library for handling Apple Binary and XML Property Lists
|
2010-03-26 17:12:44 +01:00
|
|
|
|
2020-03-12 11:28:39 +01:00
|
|
|
%description -n %{cname}
|
2010-04-01 18:23:14 +02:00
|
|
|
libplist is a library for handling Apple Binary and XML Property Lists.
|
2010-03-26 17:12:44 +01:00
|
|
|
|
2020-03-12 11:28:39 +01:00
|
|
|
%package -n %{cppname}
|
2010-04-01 18:23:14 +02:00
|
|
|
Summary: Library for handling Apple Binary and XML Property Lists
|
2010-03-26 17:12:44 +01:00
|
|
|
|
2020-03-12 11:28:39 +01:00
|
|
|
%description -n %{cppname}
|
2010-04-01 18:23:14 +02:00
|
|
|
libplist is a library for handling Apple Binary and XML Property Lists.
|
2010-03-26 17:12:44 +01:00
|
|
|
|
2014-07-17 06:57:44 +02:00
|
|
|
%package -n plistutil
|
2010-04-01 18:23:14 +02:00
|
|
|
Summary: Library for handling Apple Binary and XML Property Lists
|
2021-12-09 13:24:34 +01:00
|
|
|
Requires: %{cname} = %{version}
|
2014-07-17 06:57:44 +02:00
|
|
|
Provides: plutil = %{version}
|
2010-03-26 17:12:44 +01:00
|
|
|
|
2014-07-17 06:57:44 +02:00
|
|
|
%description -n plistutil
|
2010-04-01 18:23:14 +02:00
|
|
|
libplist is a library for handling Apple Binary and XML Property Lists.
|
2010-03-26 17:12:44 +01:00
|
|
|
|
2010-04-01 18:23:14 +02:00
|
|
|
This package contains an utility to convert PList files from binary to XML and
|
|
|
|
from XML to binary.
|
2010-03-26 17:12:44 +01:00
|
|
|
|
2020-12-11 19:03:33 +01:00
|
|
|
%package -n libplist-2_0-devel
|
2010-04-01 18:23:14 +02:00
|
|
|
Summary: Library for handling Apple Binary and XML Property Lists -- Development Files
|
2020-12-11 19:03:33 +01:00
|
|
|
Provides: libplist-devel = %{version}
|
|
|
|
Obsoletes: libplist-devel < %{version}
|
2021-12-09 13:24:34 +01:00
|
|
|
Requires: %{cname} = %{version}
|
2010-03-26 17:12:44 +01:00
|
|
|
|
2020-12-11 19:03:33 +01:00
|
|
|
%description -n libplist-2_0-devel
|
2010-04-01 18:23:14 +02:00
|
|
|
libplist is a library for handling Apple Binary and XML Property Lists.
|
2010-03-26 17:12:44 +01:00
|
|
|
|
2010-04-01 18:23:14 +02:00
|
|
|
This package contains the development files for C.
|
2010-03-26 17:12:44 +01:00
|
|
|
|
2020-12-11 19:03:33 +01:00
|
|
|
%package -n libplist++-2_0-devel
|
2010-04-01 18:23:14 +02:00
|
|
|
Summary: Library for handling Apple Binary and XML Property Lists -- Development Files
|
2020-12-11 19:03:33 +01:00
|
|
|
Provides: libplist++-devel = %{version}
|
|
|
|
Obsoletes: libplist++-devel < %{version}
|
2021-12-09 13:24:34 +01:00
|
|
|
Requires: %{cppname} = %{version}
|
2020-12-11 19:03:33 +01:00
|
|
|
Requires: pkgconfig(libplist-2.0)
|
2010-03-26 17:12:44 +01:00
|
|
|
|
2020-12-11 19:03:33 +01:00
|
|
|
%description -n libplist++-2_0-devel
|
2010-04-01 18:23:14 +02:00
|
|
|
libplist is a library for handling Apple Binary and XML Property Lists.
|
|
|
|
|
|
|
|
This package contains the development files for C++.
|
2010-03-26 17:12:44 +01:00
|
|
|
|
2020-03-12 11:28:39 +01:00
|
|
|
%package -n python3-plist
|
2010-04-01 18:23:14 +02:00
|
|
|
Summary: Library for handling Apple Binary and XML Property Lists -- Python Bindings
|
2020-03-12 11:28:39 +01:00
|
|
|
Requires: %{cname} = %{version}
|
|
|
|
Requires: python3-Cython >= 0.17
|
2021-11-11 09:24:40 +01:00
|
|
|
Obsoletes: python-plist < %{version}
|
|
|
|
Conflicts: python-plist
|
2010-03-26 17:12:44 +01:00
|
|
|
|
2020-03-12 11:28:39 +01:00
|
|
|
%description -n python3-plist
|
2010-04-01 18:23:14 +02:00
|
|
|
libplist is a library for handling Apple Binary and XML Property Lists.
|
2010-03-26 17:12:44 +01:00
|
|
|
|
2010-04-01 18:23:14 +02:00
|
|
|
This package contains the python bindings.
|
2010-03-26 17:12:44 +01:00
|
|
|
|
|
|
|
%prep
|
2021-12-09 13:24:34 +01:00
|
|
|
%autosetup -p1
|
2020-03-12 11:28:39 +01:00
|
|
|
|
2010-03-26 17:12:44 +01:00
|
|
|
%build
|
2020-03-12 11:28:39 +01:00
|
|
|
autoreconf -fvi
|
2014-07-17 06:57:44 +02:00
|
|
|
%configure --disable-static
|
2020-03-12 11:28:39 +01:00
|
|
|
%make_build
|
2010-03-26 17:12:44 +01:00
|
|
|
|
2014-10-22 00:48:49 +02:00
|
|
|
%check
|
|
|
|
TZ=Europe/Vienna make check VERBOSE=1
|
|
|
|
|
2010-03-26 17:12:44 +01:00
|
|
|
%install
|
2020-03-12 11:28:39 +01:00
|
|
|
%make_install
|
2014-07-17 06:57:44 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
|
|
|
|
# needed by python-imobiledevice build
|
2021-12-09 13:24:34 +01:00
|
|
|
install -D -m 0644 cython/plist.pxd %{buildroot}%{_includedir}/plist/cython/plist.pxd
|
2010-03-26 17:12:44 +01:00
|
|
|
|
2020-03-12 11:28:39 +01:00
|
|
|
%post -n %{cname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{cname} -p /sbin/ldconfig
|
|
|
|
%post -n %{cppname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{cppname} -p /sbin/ldconfig
|
2010-03-26 17:12:44 +01:00
|
|
|
|
2020-03-12 11:28:39 +01:00
|
|
|
%files -n %{cname}
|
|
|
|
%license COPYING COPYING.LESSER
|
|
|
|
%doc AUTHORS README.md NEWS
|
2020-12-11 19:03:33 +01:00
|
|
|
%{_libdir}/libplist-2.0.so.*
|
2010-03-26 17:12:44 +01:00
|
|
|
|
2020-03-12 11:28:39 +01:00
|
|
|
%files -n %{cppname}
|
|
|
|
%license COPYING COPYING.LESSER
|
|
|
|
%doc AUTHORS README.md NEWS
|
2020-12-11 19:03:33 +01:00
|
|
|
%{_libdir}/libplist++-2.0.so.*
|
2010-03-26 17:12:44 +01:00
|
|
|
|
2014-07-17 06:57:44 +02:00
|
|
|
%files -n plistutil
|
|
|
|
%{_bindir}/plistutil
|
2020-12-11 19:03:33 +01:00
|
|
|
%{_mandir}/man1/plistutil.1%{?ext_man}
|
2010-03-26 17:12:44 +01:00
|
|
|
|
2020-12-11 19:03:33 +01:00
|
|
|
%files -n libplist-2_0-devel
|
2010-03-26 17:12:44 +01:00
|
|
|
%dir %{_includedir}/plist
|
|
|
|
%{_includedir}/plist/plist.h
|
2020-12-11 19:03:33 +01:00
|
|
|
%{_libdir}/libplist-2.0.so
|
|
|
|
%{_libdir}/pkgconfig/libplist-2.0.pc
|
2010-03-26 17:12:44 +01:00
|
|
|
|
2020-12-11 19:03:33 +01:00
|
|
|
%files -n libplist++-2_0-devel
|
2010-03-26 17:12:44 +01:00
|
|
|
%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
|
2014-07-17 06:57:44 +02:00
|
|
|
%{_includedir}/plist/Key.h
|
|
|
|
%{_includedir}/plist/Uid.h
|
2010-03-26 17:12:44 +01:00
|
|
|
%{_includedir}/plist/Node.h
|
|
|
|
%{_includedir}/plist/Real.h
|
|
|
|
%{_includedir}/plist/String.h
|
|
|
|
%{_includedir}/plist/Structure.h
|
2020-12-11 19:03:33 +01:00
|
|
|
%{_libdir}/libplist++-2.0.so
|
|
|
|
%{_libdir}/pkgconfig/libplist++-2.0.pc
|
2010-03-26 17:12:44 +01:00
|
|
|
|
2020-03-12 11:28:39 +01:00
|
|
|
%files -n python3-plist
|
2012-04-18 16:29:45 +02:00
|
|
|
%dir %{_includedir}/plist/cython
|
|
|
|
%{_includedir}/plist/cython/plist.pxd
|
2020-03-12 11:28:39 +01:00
|
|
|
%{python3_sitearch}/plist.so
|
2010-03-26 17:12:44 +01:00
|
|
|
|
|
|
|
%changelog
|