commit 19303059cb87a0df5eb20f0f2f4b42d2eb301ca20cdb544307742abd89f62639 Author: OBS User autobuild Date: Fri Mar 26 16:12:44 2010 +0000 Accepting request 35723 from devel:libraries:c_c++ Copy from devel:libraries:c_c++/libplist based on submit request 35723 from user msmeissn OBS-URL: https://build.opensuse.org/request/show/35723 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libplist?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/libplist-1.2.tar.bz2 b/libplist-1.2.tar.bz2 new file mode 100644 index 0000000..e42b176 --- /dev/null +++ b/libplist-1.2.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e8223809af55283188e8a1adfe97a59655c788f6d3048a7624f648d007f87558 +size 67230 diff --git a/libplist.changes b/libplist.changes new file mode 100644 index 0000000..4be0233 --- /dev/null +++ b/libplist.changes @@ -0,0 +1,89 @@ +------------------------------------------------------------------- +Thu Mar 25 11:14:40 CET 2010 - meissner@suse.de + +- run prepare_spec + +------------------------------------------------------------------- +Fri Jan 22 01:40:54 CEST 2010 - opensuse@sukimashita.com + +- Update to version 1.2 + * Fix xml entity conversion + * Silence build warnings +- Remove upstreamed patches + +------------------------------------------------------------------- +Sat Jan 09 11:07:34 CEST 2010 - opensuse@sukimashita.com + +- Add patches to fix xml entity conversion and tests + +------------------------------------------------------------------- +Wed Dec 30 18:33:27 CEST 2009 - opensuse@sukimashita.com + +- Update to version 1.1 + * Fix use of integer nodes within Python Bindings + +------------------------------------------------------------------- +Tue Dec 08 00:20:17 CEST 2009 - opensuse@sukimashita.com + +- Update to version 1.0 + * Bugfixes + * Remove deprecated API + +------------------------------------------------------------------- +Wed Oct 28 21:01:57 CEST 2009 - opensuse@sukimashita.com + +- Update to version 0.16 + * Build fixes + * Fix issues with SWIG + +------------------------------------------------------------------- +Sat Oct 24 23:53:01 CEST 2009 - opensuse@sukimashita.com + +- Update to version 0.15 + * Build fixes +- Update to version 0.14 + * Add C++ binding + * Refactor API + * Bugfixes + +------------------------------------------------------------------- +Sun Jul 19 00:06:10 CEST 2009 - opensuse@sukimashita.com + +- Update to version 0.13 + * Add plist_copy for deep node copies + * Add node setter functions + * Unlink nodes from parent if free'd + * Update Python bindings + +------------------------------------------------------------------- +Wed May 06 01:06:10 CEST 2009 - opensuse@sukimashita.com + +- Update to version 0.12 + * Merge ascii and unicode handling in PLIST_STRING using UTF-8 + * Remove unicode related declaration in API (breaks API&ABI) + * Fix bad variable type for date elements + * Silence compiler warnings + * Plugged few memory leaks + +------------------------------------------------------------------- +Wed Apr 22 00:02:19 CET 2009 - opensuse@sukimashita.com + +- Update to version 0.11 + * Fix Python binding segfaults + * Python API additions + * Better binary buffer handling in Python bindings + +------------------------------------------------------------------- +Sun Apr 12 19:17:41 CET 2009 - opensuse@sukimashita.com + +- Update to version 0.10 + +------------------------------------------------------------------- +Tue Apr 07 10:20:57 CET 2009 - opensuse@sukimashita.com + +- Add patch to fix uninitialized buffer + +------------------------------------------------------------------- +Sat Apr 04 11:08:16 CET 2009 - opensuse@sukimashita.com + +- Initial package created diff --git a/libplist.spec b/libplist.spec new file mode 100644 index 0000000..ae789bf --- /dev/null +++ b/libplist.spec @@ -0,0 +1,263 @@ +# +# spec file for package libplist (Version 1.2) +# +# Copyright (c) 2010 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/ +# + +# norootforbuild + + +Name: libplist +%define _name libplist1 +Version: 1.2 +Release: 1 +License: LGPL v2.1 or GPL v2 +BuildRequires: cmake gcc-c++ glib2-devel libxml2-devel python-devel swig +%if 0%{?opensuse_bs} +%if %{defined fedora_version} || %{defined mandriva_version} +BuildRequires: pkgconfig python +%{!?py_ver: %global py_ver %(%{__python} -c "import sys; print sys.version[0:3]")} +%{!?py_sitedir: %global py_sitedir %(%{__python} -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib(plat_specific=1)")} +%else +BuildRequires: pkg-config +%endif +%endif +Source: %{name}-%{version}.tar.bz2 +Group: System/Libraries +Summary: A library to handle binary or XML Apple Property List files +Url: http://github.com/JonathanBeck/libplist +BuildRoot: %{_tmppath}/%{name}-%{version}-build +AutoReqProv: on + +%description +libplist is a library to handle the Apple Property List format (.plist) whereas +it's binary or XML. + + + +Authors: +-------- + Jonathan Beck + Zach C. + +%package -n %{_name} + + +License: LGPL v2.1 or GPL v2 +Summary: A library to handle binary or XML Apple Property List files +Group: System/Libraries +Provides: %{name} = %{version} +Obsoletes: %{name} < %{version} + +%description -n %{_name} +libplist is a library to handle the Apple Property List format (.plist) whereas +it's binary or XML. + + + +Authors: +-------- + Jonathan Beck + Zach C. + +%package -n %{name}++1 + + +License: LGPL v2.1 or GPL v2 +Summary: A library to handle binary or XML Apple Property List files +Group: System/Libraries +Provides: %{name}++ = %{version} +Obsoletes: %{name}++ < %{version} + +%description -n %{name}++1 +libplist is a library to handle the Apple Property List format (.plist) whereas +it's binary or XML. + + + +Authors: +-------- + Jonathan Beck + Zach C. + +%package -n %{name}++-devel + + +License: LGPL v2.1 or GPL v2 +Summary: Development files for %{_name}++ +Group: Development/Libraries/C and C++ +Requires: %{name}++ = %{version} +Requires: libxml2-devel glib2-devel + +%description -n %{name}++-devel +libplist is a library to handle the Apple Property List format (.plist) whereas +it's binary or XML. + + + +Authors: +-------- + Jonathan Beck + Zach C. + +%package -n plutil +License: LGPL v2.1 or GPL v2 +Summary: A library to handle binary or XML Apple Property List files +Group: System/Libraries +Requires: %{_name} = %{version} + +%description -n plutil +An utility to convert PList files from binary to XML and from XML to binary. + + + +Authors: +-------- + Jonathan Beck + Zach C. + +%package devel +License: LGPL v2.1 or GPL v2 + +Summary: Development files for %{_name} +Group: Development/Libraries/C and C++ +Requires: %{name} = %{version} +Requires: libxml2-devel glib2-devel + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{_name}. + + + +Authors: +-------- + Jonathan Beck + Zach C. + +%package -n python-plist +License: LGPL v2.1 or GPL v2 + +Summary: Python bindings for %{_name} +Group: Development/Languages/Python +Requires: %{_name} = %{version} +%if %{defined suse_version} +%{py_requires} +%endif + +%description -n python-plist +Contains Python bindings for developing applications that use %{_name}. + + + +Authors: +-------- + Jonathan Beck + Zach C. + +%if %{defined suse_version} +%endif + +%prep +%setup -q + +%build +mkdir build +cd build +export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" +cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \ + -DCMAKE_INSTALL_LIBDIR=%{_lib} \ + -DCMAKE_VERBOSE_MAKEFILE=TRUE \ + -DCMAKE_C_FLAGS_RELEASE:STRING="%{optflags}" \ + -DCMAKE_CXX_FLAGS_RELEASE:STRING="%{optflags}" \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_SKIP_RPATH=1 \ + -DBUILD_TESTING=OFF \ + -DPYTHON_VERSION=%{py_ver} \ + -DPYTHON_SITEDIR=%{py_sitedir} \ + .. +make %{?jobs:-j%jobs} + +%install +cd build +%{__make} install DESTDIR=$RPM_BUILD_ROOT +rm $RPM_BUILD_ROOT%{_bindir}/plutil +mv $RPM_BUILD_ROOT%{_bindir}/plutil-%{version} $RPM_BUILD_ROOT%{_bindir}/plutil +rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}.*a* +%if %{defined mandriva_version} +%if 0%{?mandriva_version} == 2009 +%ifarch x86_64 +mkdir -p $RPM_BUILD_ROOT%{py_sitedir}/ +mv $RPM_BUILD_ROOT%{_libdir}/python%{py_ver}/site-packages/%{name} $RPM_BUILD_ROOT%{py_sitedir}/%{name} +%endif +%endif +%endif + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -n %{_name} -p /sbin/ldconfig + +%postun -n %{_name} -p /sbin/ldconfig + +%post -n %{name}++1 -p /sbin/ldconfig + +%postun -n %{name}++1 -p /sbin/ldconfig + +%files -n %{_name} +%defattr(-,root,root) +%doc AUTHORS COPYING README +%{_libdir}/%{name}.so.* + +%files -n %{name}++1 +%defattr(-,root,root) +%doc AUTHORS COPYING README +%{_libdir}/%{name}++.so.* + +%files -n plutil +%defattr(-,root,root) +%{_bindir}/plutil + +%files devel +%defattr(-,root,root,-) +%dir %{_includedir}/plist +%{_includedir}/plist/plist.h +%{_libdir}/%{name}.so +%{_libdir}/pkgconfig/%{name}.pc + +%files -n %{name}++-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/Node.h +%{_includedir}/plist/Real.h +%{_includedir}/plist/String.h +%{_includedir}/plist/Structure.h +%{_libdir}/%{name}++.so +%{_libdir}/pkgconfig/%{name}++.pc + +%files -n python-plist +%defattr(-,root,root,-) +%dir %{py_sitedir}/plist +%{py_sitedir}/plist/* +%dir %{_includedir}/plist/swig +%{_includedir}/plist/swig/plist.i + +%changelog