From 792dc5fc10de356bb4124d10d970419115713337 Mon Sep 17 00:00:00 2001 From: CentOS Buildsys Date: Oct 09 2013 03:57:48 +0000 Subject: import libplist-1.10-2.el7.src.rpm --- diff --git a/.libplist.metadata b/.libplist.metadata new file mode 100644 index 0000000..46f703e --- /dev/null +++ b/.libplist.metadata @@ -0,0 +1 @@ +a642bb37eaa4bec428d0b2a4fa8399d80ee73a18 SOURCES/libplist-1.10.tar.bz2 diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/libplist-1.8-cmake_lib_suffix.patch b/SOURCES/libplist-1.8-cmake_lib_suffix.patch new file mode 100644 index 0000000..941bbaf --- /dev/null +++ b/SOURCES/libplist-1.8-cmake_lib_suffix.patch @@ -0,0 +1,17 @@ +diff -up libplist-1.8/CMakeLists.txt.cmake_lib_suffix libplist-1.8/CMakeLists.txt +--- libplist-1.8/CMakeLists.txt.cmake_lib_suffix 2012-01-11 08:29:30.000000000 -0600 ++++ libplist-1.8/CMakeLists.txt 2012-04-11 08:57:36.208333767 -0500 +@@ -11,8 +11,12 @@ SET( CMAKE_MODULE_PATH ${CMAKE_SOURCE_DI + + cmake_minimum_required(VERSION 2.6) + ++IF(${CMAKE_VERSION} VERSION_GREATER 2.8.4) ++ INCLUDE(GNUInstallDirs) ++ENDIF() ++ + IF(NOT DEFINED CMAKE_INSTALL_LIBDIR) +- SET(CMAKE_INSTALL_LIBDIR lib CACHE PATH "Output directory for libraries") ++ SET(CMAKE_INSTALL_LIBDIR lib${LIB_SUFFIX} CACHE PATH "Output directory for libraries") + ENDIF(NOT DEFINED CMAKE_INSTALL_LIBDIR) + + FIND_PACKAGE( LibXml2 REQUIRED ) diff --git a/SPECS/libplist.spec b/SPECS/libplist.spec new file mode 100644 index 0000000..eaf8bf9 --- /dev/null +++ b/SPECS/libplist.spec @@ -0,0 +1,175 @@ +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} + +Name: libplist +Version: 1.10 +Release: 2%{?dist} +Summary: Library for manipulating Apple Binary and XML Property Lists + +Group: System Environment/Libraries +License: LGPLv2+ +URL: http://www.libimobiledevice.org/ +Source0: http://www.libimobiledevice.org/downloads/%{name}-%{version}.tar.bz2 + +## upstreamable patches +# add support for GNUInstallDirs (where available) and ${LIB_SUFFIX} convention +Patch50: libplist-1.8-cmake_lib_suffix.patch + +BuildRequires: libxml2-devel +BuildRequires: python-devel +BuildRequires: swig +BuildRequires: cmake +BuildRequires: Cython + +%description +libplist is a library for manipulating Apple Binary and XML Property Lists + +%package devel +Summary: Development package for libplist +Group: Development/Libraries +Requires: libplist = %{version}-%{release} +Requires: pkgconfig + +%description devel +%{name}, development headers and libraries. + +%package python +Summary: Python package for libplist +Group: Development/Libraries +Requires: libplist = %{version}-%{release} +Requires: python + +%description python +%{name}, python libraries and support + +%prep +%setup -q +%patch50 -p1 -b .cmake_lib_suffix + +%build +export CFLAGS=-fno-strict-aliasing +export CMAKE_PREFIX_PATH=/usr +%{cmake} -DCMAKE_SKIP_RPATH:BOOL=ON . + +make V=1 + +%install +export CMAKE_PREFIX_PATH=/usr +make install DESTDIR=$RPM_BUILD_ROOT + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc AUTHORS COPYING.LESSER README +%{_bindir}/plistutil +%{_bindir}/plistutil-%{version} +%{_libdir}/libplist.so.* +%{_libdir}/libplist++.so.* + +%files devel +%defattr(-,root,root,-) +%{_libdir}/pkgconfig/libplist.pc +%{_libdir}/pkgconfig/libplist++.pc +%{_libdir}/libplist.so +%{_libdir}/libplist++.so +%{_includedir}/plist + +%files python +%defattr(-,root,root,-) +%{python_sitearch}/plist* + +%changelog +* Tue Oct 8 2013 Matthias Clasen - 1.10-2 +- Disable strict aliasing (related: #884099) + +* Tue Mar 19 2013 Peter Robinson 1.10-1 +- New upstream 1.10 release + +* Mon Mar 18 2013 Peter Robinson 1.9-1 +- New upstream 1.9 release + +* Thu Feb 14 2013 Fedora Release Engineering - 1.8-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Jul 19 2012 Fedora Release Engineering - 1.8-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Wed Apr 11 2012 Peter Robinson - 1.8-4 +- Fix python bindings + +* Wed Apr 11 2012 Rex Dieter 1.8-3 +- fix ftbfs, work harder to ensure CMAKE_INSTALL_LIBDIR macro is correct + +* Fri Mar 23 2012 Peter Robinson - 1.8-2 +- Fix RPATH issue with cmake, disable parallel build as it causes other problems + +* Thu Jan 12 2012 Peter Robinson - 1.8-1 +- 1.8 release + +* Mon Sep 26 2011 Peter Robinson - 1.7-1 +- 1.7 release + +* Sat Jun 25 2011 Peter Robinson 1.6-1 +- 1.6 release + +* Mon Jun 13 2011 Peter Robinson 1.5-1 +- 1.5 release + +* Tue Mar 22 2011 Peter Robinson 1.4-1 +- stable 1.4 release + +* Tue Feb 08 2011 Fedora Release Engineering - 1.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Jul 21 2010 David Malcolm - 1.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild + +* Tue Apr 20 2010 Peter Robinson 1.3-1 +- Upstream stable 1.3 release + +* Sat Jan 23 2010 Peter Robinson 1.2-1 +- Upstream stable 1.2 release + +* Sat Jan 9 2010 Peter Robinson 1.0.0-5 +- Updated to the new python sysarch spec file reqs + +* Mon Dec 7 2009 Peter Robinson 1.0.0-4 +- and once more with feeling + +* Mon Dec 7 2009 Peter Robinson 1.0.0-3 +- Further updated fixes for the spec file + +* Mon Dec 7 2009 Peter Robinson 1.0.0-2 +- Drop upstreamed patch + +* Mon Dec 7 2009 Peter Robinson 1.0.0-1 +- Upstream stable 1.0.0 release + +* Thu Oct 29 2009 Peter Robinson 0.16-3 +- Actually add patch for python + +* Thu Oct 29 2009 Peter Robinson 0.16-2 +- Add python patch and c++ bindings + +* Thu Oct 29 2009 Peter Robinson 0.16-1 +- New upstream 0.16 release + +* Tue Oct 20 2009 Peter Robinson 0.15-1 +- New upstream 0.15 release + +* Fri Jul 24 2009 Fedora Release Engineering - 0.13-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Mon May 11 2009 Peter Robinson 0.13-1 +- New upstream 0.13 release + +* Mon May 11 2009 Peter Robinson 0.12-2 +- Further review updates + +* Sun May 10 2009 Peter Robinson 0.12-1 +- Update to official tarball release, some review fixes + +* Sun May 10 2009 Peter Robinson 0.12.0-0.1 +- Initial package