Accepting request 114395 from devel:libraries:c_c++

OBS-URL: https://build.opensuse.org/request/show/114395
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libplist?expand=0&rev=19
This commit is contained in:
Stephan Kulow 2012-04-18 14:29:45 +00:00 committed by Git OBS Bridge
parent dc80af4aae
commit 02357d0eaf
7 changed files with 49 additions and 34 deletions

View File

@ -1,10 +0,0 @@
--- swig/plist.i.orig 2011-05-17 00:10:03.034330863 +0200
+++ swig/plist.i 2011-05-17 00:12:14.190736151 +0200
@@ -4,6 +4,7 @@
%{
/* Includes the header in the wrapper code */
#include <plist/plist++.h>
+ #include <cstddef>
%}
%include "std_string.i"

View File

@ -1,11 +0,0 @@
--- libplist.pc.in.orig
+++ libplist.pc.in
@@ -6,7 +6,7 @@ includedir=${CMAKE_INSTALL_PREFIX}/inclu
Name: libplist
Description: A library to handle Apple Property Lists whereas they are binary or XML
Version: ${LIBPLIST_VERSION}
-Requires.private: libxml-2.0 >= 2.6.30 glib-2.0 >= 2.14.1
+#Requires.private: libxml-2.0 >= 2.6.30 glib-2.0 >= 2.14.1
Libs: -L${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR} -lplist
Cflags: -I${CMAKE_INSTALL_PREFIX}/include

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2ad226abe1131a72e7ecbb2b921ad92f54b8e787c2281c89b00145b519479a71
size 68176

View File

@ -0,0 +1,7 @@
--- libplist.pc.in.orig
+++ libplist.pc.in
@@ -8,4 +8,3 @@ includedir=${CMAKE_INSTALL_PREFIX}/inclu
Version: ${LIBPLIST_VERSION}
-Requires.private: libxml-2.0 >= 2.6.30
Libs: -L${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR} -lplist
Cflags: -I${CMAKE_INSTALL_PREFIX}/include

3
libplist-1.8.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a418da3880308199b74766deef2a760a9b169b81a868a6a9032f7614e20500ec
size 81278

View File

@ -1,3 +1,21 @@
-------------------------------------------------------------------
Mon Apr 09 15:45:03 CEST 2012 - opensuse@sukimashita.com
- Allow compilation on 11.4 by disabling cython bindings
-------------------------------------------------------------------
Mon Apr 02 15:54:57 CEST 2012 - opensuse@sukimashita.com
- Update to version 1.8
* Add Cython based Python bindings
* Fix memory corruption in libcnary
* Fix building on Big Endian systems
* Removed glib dependency, libplist now uses bundled libcnary
* Fix building of Python bindings with GCC 4.6
- Do not build SWIG bindings for Python
- Remove gcc46_build_fix.patch due to upstream fixes
- Update pkgconfig patch
-------------------------------------------------------------------
Tue Jan 31 10:50:25 UTC 2012 - jengelh@medozas.de

View File

@ -17,7 +17,7 @@
Name: libplist
Version: 1.4
Version: 1.8
Release: 0
Summary: Library for handling Apple Binary and XML Property Lists
License: LGPL-2.1 or GPL-2.0
@ -26,14 +26,15 @@ Url: http://cgit.sukimashita.com/libplist.git
Source: %{name}-%{version}.tar.bz2
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: glib2-devel
BuildRequires: libxml2-devel
BuildRequires: pkg-config
%if %{?suse_version} > 1140
BuildRequires: python-cython
BuildRequires: python-devel
BuildRequires: swig
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#remove when pkgconfig is fixed to handle Requires.private correctly
Patch0: libplist-1.4-pkgconfig.patch
Patch1: gcc46_build_fix.patch
Patch0: libplist-1.8-pkgconfig.patch
%description
libplist is a library for handling Apple Binary and XML Property Lists.
@ -70,8 +71,8 @@ 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: libplist1 = %{version}
Requires: glibc-devel
Requires: libplist1 = %{version}
%description devel
libplist is a library for handling Apple Binary and XML Property Lists.
@ -82,29 +83,31 @@ This package contains the development files for C.
Summary: Library for handling Apple Binary and XML Property Lists -- Development Files
Group: Development/Libraries/C and C++
Requires: libplist++1 = %{version}
Requires: libstdc++-devel
Requires: libplist-devel
Requires: libstdc++-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++.
%if %{?suse_version} > 1140
%package -n python-plist
Summary: Library for handling Apple Binary and XML Property Lists -- Python Bindings
Group: Development/Languages/Python
Requires: libplist1 = %{version}
Requires: python-cython >= 0.13
%{py_requires}
%description -n python-plist
libplist is a library for handling Apple Binary and XML Property Lists.
This package contains the python bindings.
%endif
%prep
%setup -q
%patch0
%patch1
%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
@ -116,8 +119,13 @@ cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DPYTHON_SITEDIR=%{py_sitedir} \
-DCMAKE_FIND_ROOT_PATH=/%{?_sysroot} \
-DPYTHON_LIBRARY=%_libdir/python%{py_ver} \
-DENABLE_SWIG=OFF \
-DPYTHON_INCLUDE_DIR=%{?_sysroot}/usr/include/python \
.
# Workaround in order to make parallel build pass
cd libcnary
make %{?_smp_mflags}
cd ..
make %{?_smp_mflags}
%install
@ -176,10 +184,13 @@ rm -fr %{buildroot}%{?_sysroot}
%{_libdir}/libplist++.so
%{_libdir}/pkgconfig/libplist++.pc
%if %{?suse_version} > 1140
%files -n python-plist
%defattr(-,root,root,-)
%{py_sitedir}/plist/
%{py_sitedir}/plist.so
%dir %{_includedir}/plist
%{_includedir}/plist/swig/
%dir %{_includedir}/plist/cython
%{_includedir}/plist/cython/plist.pxd
%endif
%changelog