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
|
|
|
#
|
2011-04-21 09:52:29 +00:00
|
|
|
# Copyright (c) 2011 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
|
2011-04-21 09:52:21 +00:00
|
|
|
Version: 1.4
|
2011-05-18 07:06:16 +00:00
|
|
|
Release: 3
|
2010-03-26 16:12:44 +00:00
|
|
|
License: LGPL v2.1 or GPL v2
|
2010-04-01 16:23:14 +00:00
|
|
|
Summary: Library for handling Apple Binary and XML Property Lists
|
2011-04-21 09:52:21 +00:00
|
|
|
Url: http://cgit.sukimashita.com/libplist.git
|
2010-04-01 16:23:14 +00:00
|
|
|
Group: System/Libraries
|
|
|
|
Source: %{name}-%{version}.tar.bz2
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: glib2-devel
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: swig
|
2010-03-26 16:12:44 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-10 15:15:58 +00:00
|
|
|
#remove when pkgconfig is fixed to handle Requires.private correctly
|
2011-04-21 09:52:21 +00:00
|
|
|
Patch0: libplist-1.4-pkgconfig.patch
|
2011-05-18 07:06:06 +00:00
|
|
|
Patch1: gcc46_build_fix.patch
|
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
|
|
|
|
2010-04-01 16:23:14 +00:00
|
|
|
%package -n libplist1
|
2010-03-26 16:12:44 +00:00
|
|
|
License: LGPL v2.1 or GPL v2
|
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
|
|
|
|
2010-04-01 16:23:14 +00:00
|
|
|
%description -n libplist1
|
|
|
|
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
|
|
|
%package -n libplist++1
|
2010-03-26 16:12:44 +00:00
|
|
|
License: LGPL v2.1 or GPL v2
|
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
|
|
|
|
2010-04-01 16:23:14 +00:00
|
|
|
%description -n libplist++1
|
|
|
|
libplist is a library for handling Apple Binary and XML Property Lists.
|
2010-03-26 16:12:44 +00:00
|
|
|
|
|
|
|
%package -n plutil
|
|
|
|
License: LGPL v2.1 or GPL v2
|
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
|
|
|
Requires: libplist1 = %{version}
|
2010-03-26 16:12:44 +00:00
|
|
|
|
|
|
|
%description -n plutil
|
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
|
|
|
|
License: LGPL v2.1 or GPL v2
|
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++
|
2010-04-01 16:23:14 +00:00
|
|
|
Requires: libplist1 = %{version}
|
2010-12-10 15:15:58 +00:00
|
|
|
Requires: glibc-devel
|
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
|
|
|
|
License: LGPL v2.1 or GPL v2
|
|
|
|
Summary: Library for handling Apple Binary and XML Property Lists -- Development Files
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libplist++1 = %{version}
|
2010-12-10 15:15:58 +00:00
|
|
|
Requires: libstdc++-devel
|
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
|
|
|
|
License: LGPL v2.1 or GPL v2
|
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
|
2010-04-01 16:23:14 +00:00
|
|
|
Requires: libplist1 = %{version}
|
2010-03-26 16:12:44 +00:00
|
|
|
%{py_requires}
|
|
|
|
|
|
|
|
%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
|
2010-12-10 15:15:58 +00:00
|
|
|
%patch0
|
2011-05-18 07:06:06 +00:00
|
|
|
%patch1
|
2010-03-26 16:12:44 +00:00
|
|
|
|
|
|
|
%build
|
2010-04-01 16:23:14 +00:00
|
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
2010-03-26 16:12:44 +00:00
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=%{_lib} \
|
|
|
|
-DCMAKE_VERBOSE_MAKEFILE=TRUE \
|
|
|
|
-DPYTHON_VERSION=%{py_ver} \
|
|
|
|
-DPYTHON_SITEDIR=%{py_sitedir} \
|
2010-04-01 16:23:14 +00:00
|
|
|
.
|
2010-03-26 16:12:44 +00:00
|
|
|
make %{?jobs:-j%jobs}
|
|
|
|
|
|
|
|
%install
|
2010-04-01 16:23:14 +00:00
|
|
|
%makeinstall
|
|
|
|
rm %{buildroot}%{_bindir}/plutil
|
|
|
|
mv %{buildroot}%{_bindir}/plutil-%{version} %{buildroot}%{_bindir}/plutil
|
2010-03-26 16:12:44 +00:00
|
|
|
|
|
|
|
%clean
|
2010-04-01 16:23:14 +00:00
|
|
|
rm -rf %{buildroot}
|
2010-03-26 16:12:44 +00:00
|
|
|
|
2010-04-01 16:23:14 +00:00
|
|
|
%post -n libplist1 -p /sbin/ldconfig
|
2010-03-26 16:12:44 +00:00
|
|
|
|
2010-04-01 16:23:14 +00:00
|
|
|
%postun -n libplist1 -p /sbin/ldconfig
|
2010-03-26 16:12:44 +00:00
|
|
|
|
2010-04-01 16:23:14 +00:00
|
|
|
%post -n libplist++1 -p /sbin/ldconfig
|
2010-03-26 16:12:44 +00:00
|
|
|
|
2010-04-01 16:23:14 +00:00
|
|
|
%postun -n libplist++1 -p /sbin/ldconfig
|
2010-03-26 16:12:44 +00:00
|
|
|
|
2010-04-01 16:23:14 +00:00
|
|
|
%files -n libplist1
|
2010-03-26 16:12:44 +00:00
|
|
|
%defattr(-,root,root)
|
2011-04-21 09:52:21 +00:00
|
|
|
%doc AUTHORS COPYING.LESSER README NEWS
|
2010-04-01 16:23:14 +00:00
|
|
|
%{_libdir}/libplist.so.*
|
2010-03-26 16:12:44 +00:00
|
|
|
|
2010-04-01 16:23:14 +00:00
|
|
|
%files -n libplist++1
|
2010-03-26 16:12:44 +00:00
|
|
|
%defattr(-,root,root)
|
2011-04-21 09:52:21 +00:00
|
|
|
%doc AUTHORS COPYING.LESSER README NEWS
|
2010-04-01 16:23:14 +00:00
|
|
|
%{_libdir}/libplist++.so.*
|
2010-03-26 16:12:44 +00:00
|
|
|
|
|
|
|
%files -n plutil
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/plutil
|
|
|
|
|
|
|
|
%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
|
|
|
|
%{_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,-)
|
2010-04-01 16:23:14 +00:00
|
|
|
%{py_sitedir}/plist/
|
|
|
|
%dir %{_includedir}/plist
|
|
|
|
%{_includedir}/plist/swig/
|
2010-03-26 16:12:44 +00:00
|
|
|
|
|
|
|
%changelog
|