2010-03-26 16:12:44 +00:00
|
|
|
#
|
2011-04-21 09:52:29 +00:00
|
|
|
# spec file for package libplist
|
2010-03-26 16:12:44 +00:00
|
|
|
#
|
2014-07-17 04:57:44 +00:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-03-26 16:12:44 +00: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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: libplist
|
2014-10-17 02:04:56 +00:00
|
|
|
Version: 1.12
|
2012-02-15 15:16:16 +00:00
|
|
|
Release: 0
|
2010-04-01 16:23:14 +00:00
|
|
|
Summary: Library for handling Apple Binary and XML Property Lists
|
2014-07-17 04:57:44 +00:00
|
|
|
License: GPL-2.0 and LGPL-2.1+
|
2010-04-01 16:23:14 +00:00
|
|
|
Group: System/Libraries
|
2012-02-15 15:16:16 +00:00
|
|
|
Url: http://cgit.sukimashita.com/libplist.git
|
2014-10-17 02:04:56 +00:00
|
|
|
Source: http://www.libimobiledevice.org/downloads/%{name}-%{version}.tar.bz2
|
2014-07-17 04:57:44 +00:00
|
|
|
Source99: baselibs.conf
|
2010-04-01 16:23:14 +00:00
|
|
|
BuildRequires: gcc-c++
|
2014-07-17 04:57:44 +00:00
|
|
|
BuildRequires: libxml2-devel >= 2.7.8
|
2012-04-18 14:29:45 +00:00
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: python-cython
|
2010-04-01 16:23:14 +00:00
|
|
|
BuildRequires: python-devel
|
2010-03-26 16:12:44 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-04-21 09:52:29 +00:00
|
|
|
|
2010-03-26 16:12:44 +00:00
|
|
|
%description
|
2010-04-01 16:23:14 +00:00
|
|
|
libplist is a library for handling Apple Binary and XML Property Lists.
|
2010-03-26 16:12:44 +00:00
|
|
|
|
2014-10-17 02:04:56 +00:00
|
|
|
%package -n libplist3
|
2010-04-01 16:23:14 +00:00
|
|
|
Summary: Library for handling Apple Binary and XML Property Lists
|
2010-03-26 16:12:44 +00:00
|
|
|
Group: System/Libraries
|
2010-04-01 16:23:14 +00:00
|
|
|
Provides: libplist = %{version}
|
|
|
|
Obsoletes: libplist < %{version}
|
2010-03-26 16:12:44 +00:00
|
|
|
|
2014-10-17 02:04:56 +00:00
|
|
|
%description -n libplist3
|
2010-04-01 16:23:14 +00:00
|
|
|
libplist is a library for handling Apple Binary and XML Property Lists.
|
2010-03-26 16:12:44 +00:00
|
|
|
|
2014-10-17 02:04:56 +00:00
|
|
|
%package -n libplist++3
|
2010-04-01 16:23:14 +00:00
|
|
|
Summary: Library for handling Apple Binary and XML Property Lists
|
2010-03-26 16:12:44 +00:00
|
|
|
Group: System/Libraries
|
2010-04-01 16:23:14 +00:00
|
|
|
Provides: libplist++ = %{version}
|
|
|
|
Obsoletes: libplist++ < %{version}
|
2010-03-26 16:12:44 +00:00
|
|
|
|
2014-10-17 02:04:56 +00:00
|
|
|
%description -n libplist++3
|
2010-04-01 16:23:14 +00:00
|
|
|
libplist is a library for handling Apple Binary and XML Property Lists.
|
2010-03-26 16:12:44 +00:00
|
|
|
|
2014-07-17 04:57:44 +00:00
|
|
|
%package -n plistutil
|
2010-04-01 16:23:14 +00:00
|
|
|
Summary: Library for handling Apple Binary and XML Property Lists
|
2010-03-26 16:12:44 +00:00
|
|
|
Group: System/Libraries
|
2014-07-17 04:57:44 +00:00
|
|
|
Requires: libplist = %{version}
|
|
|
|
Provides: plutil = %{version}
|
|
|
|
Obsoletes: plutil < %{version}
|
2010-03-26 16:12:44 +00:00
|
|
|
|
2014-07-17 04:57:44 +00:00
|
|
|
%description -n plistutil
|
2010-04-01 16:23:14 +00:00
|
|
|
libplist is a library for handling Apple Binary and XML Property Lists.
|
2010-03-26 16:12:44 +00:00
|
|
|
|
2010-04-01 16:23:14 +00:00
|
|
|
This package contains an utility to convert PList files from binary to XML and
|
|
|
|
from XML to binary.
|
2010-03-26 16:12:44 +00:00
|
|
|
|
|
|
|
%package devel
|
2010-04-01 16:23:14 +00:00
|
|
|
Summary: Library for handling Apple Binary and XML Property Lists -- Development Files
|
2010-03-26 16:12:44 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2014-07-17 04:57:44 +00:00
|
|
|
Requires: libplist = %{version}
|
2010-03-26 16:12:44 +00:00
|
|
|
|
|
|
|
%description devel
|
2010-04-01 16:23:14 +00:00
|
|
|
libplist is a library for handling Apple Binary and XML Property Lists.
|
2010-03-26 16:12:44 +00:00
|
|
|
|
2010-04-01 16:23:14 +00:00
|
|
|
This package contains the development files for C.
|
2010-03-26 16:12:44 +00:00
|
|
|
|
2010-04-01 16:23:14 +00:00
|
|
|
%package -n libplist++-devel
|
|
|
|
Summary: Library for handling Apple Binary and XML Property Lists -- Development Files
|
|
|
|
Group: Development/Libraries/C and C++
|
2014-07-17 04:57:44 +00:00
|
|
|
Requires: libplist++ = %{version}
|
2010-12-10 15:16:03 +00:00
|
|
|
Requires: libplist-devel
|
2010-03-26 16:12:44 +00:00
|
|
|
|
2010-04-01 16:23:14 +00:00
|
|
|
%description -n libplist++-devel
|
|
|
|
libplist is a library for handling Apple Binary and XML Property Lists.
|
|
|
|
|
|
|
|
This package contains the development files for C++.
|
2010-03-26 16:12:44 +00:00
|
|
|
|
|
|
|
%package -n python-plist
|
2010-04-01 16:23:14 +00:00
|
|
|
Summary: Library for handling Apple Binary and XML Property Lists -- Python Bindings
|
2010-03-26 16:12:44 +00:00
|
|
|
Group: Development/Languages/Python
|
2014-10-17 02:04:56 +00:00
|
|
|
Requires: libplist3 = %{version}
|
2012-04-18 14:29:45 +00:00
|
|
|
Requires: python-cython >= 0.13
|
2010-03-26 16:12:44 +00:00
|
|
|
|
|
|
|
%description -n python-plist
|
2010-04-01 16:23:14 +00:00
|
|
|
libplist is a library for handling Apple Binary and XML Property Lists.
|
2010-03-26 16:12:44 +00:00
|
|
|
|
2010-04-01 16:23:14 +00:00
|
|
|
This package contains the python bindings.
|
2010-03-26 16:12:44 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2014-07-17 04:57:44 +00:00
|
|
|
%configure --disable-static
|
2014-10-17 02:04:56 +00:00
|
|
|
make %{?_smp_mflags}
|
2010-03-26 16:12:44 +00:00
|
|
|
|
|
|
|
%install
|
2014-07-17 04:57:44 +00:00
|
|
|
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
|
2010-03-26 16:12:44 +00:00
|
|
|
|
2011-11-21 14:47:32 +00:00
|
|
|
%if 0%{?_crossbuild}
|
|
|
|
cp -a %{buildroot}%{?_sysroot}/* %{buildroot}/
|
|
|
|
rm -fr %{buildroot}%{?_sysroot}
|
|
|
|
%endif
|
|
|
|
|
2014-10-17 02:04:56 +00:00
|
|
|
%post -n libplist3 -p /sbin/ldconfig
|
2010-03-26 16:12:44 +00:00
|
|
|
|
2014-10-17 02:04:56 +00:00
|
|
|
%postun -n libplist3 -p /sbin/ldconfig
|
2010-03-26 16:12:44 +00:00
|
|
|
|
2014-10-17 02:04:56 +00:00
|
|
|
%post -n libplist++3 -p /sbin/ldconfig
|
2010-03-26 16:12:44 +00:00
|
|
|
|
2014-10-17 02:04:56 +00:00
|
|
|
%postun -n libplist++3 -p /sbin/ldconfig
|
2010-03-26 16:12:44 +00:00
|
|
|
|
2014-10-17 02:04:56 +00:00
|
|
|
%files -n libplist3
|
2010-03-26 16:12:44 +00:00
|
|
|
%defattr(-,root,root)
|
2014-07-17 04:57:44 +00:00
|
|
|
%doc AUTHORS COPYING COPYING.LESSER README NEWS
|
2010-04-01 16:23:14 +00:00
|
|
|
%{_libdir}/libplist.so.*
|
2010-03-26 16:12:44 +00:00
|
|
|
|
2014-10-17 02:04:56 +00:00
|
|
|
%files -n libplist++3
|
2010-03-26 16:12:44 +00:00
|
|
|
%defattr(-,root,root)
|
2014-07-17 04:57:44 +00:00
|
|
|
%doc AUTHORS COPYING COPYING.LESSER README NEWS
|
2010-04-01 16:23:14 +00:00
|
|
|
%{_libdir}/libplist++.so.*
|
2010-03-26 16:12:44 +00:00
|
|
|
|
2014-07-17 04:57:44 +00:00
|
|
|
%files -n plistutil
|
2010-03-26 16:12:44 +00:00
|
|
|
%defattr(-,root,root)
|
2014-07-17 04:57:44 +00:00
|
|
|
%{_bindir}/plistutil
|
2010-03-26 16:12:44 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%dir %{_includedir}/plist
|
|
|
|
%{_includedir}/plist/plist.h
|
2010-04-01 16:23:14 +00:00
|
|
|
%{_libdir}/libplist.so
|
|
|
|
%{_libdir}/pkgconfig/libplist.pc
|
2010-03-26 16:12:44 +00:00
|
|
|
|
2010-04-01 16:23:14 +00:00
|
|
|
%files -n libplist++-devel
|
2010-03-26 16:12:44 +00:00
|
|
|
%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
|
2014-07-17 04:57:44 +00:00
|
|
|
%{_includedir}/plist/Key.h
|
|
|
|
%{_includedir}/plist/Uid.h
|
2010-03-26 16:12:44 +00:00
|
|
|
%{_includedir}/plist/Node.h
|
|
|
|
%{_includedir}/plist/Real.h
|
|
|
|
%{_includedir}/plist/String.h
|
|
|
|
%{_includedir}/plist/Structure.h
|
2010-04-01 16:23:14 +00:00
|
|
|
%{_libdir}/libplist++.so
|
|
|
|
%{_libdir}/pkgconfig/libplist++.pc
|
2010-03-26 16:12:44 +00:00
|
|
|
|
|
|
|
%files -n python-plist
|
|
|
|
%defattr(-,root,root,-)
|
2012-04-18 14:29:45 +00:00
|
|
|
%dir %{_includedir}/plist/cython
|
|
|
|
%{_includedir}/plist/cython/plist.pxd
|
2014-07-17 04:57:44 +00:00
|
|
|
%{python_sitearch}/plist.so
|
2010-03-26 16:12:44 +00:00
|
|
|
|
|
|
|
%changelog
|