ba6695
%{!?python3_sitearch: %global python_sitearch %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
ba6695
ba6695
Name:     libplist
ba6695
Version:  2.0.0
ba6695
Release:  10%{?dist}
ba6695
Summary:  Library for manipulating Apple Binary and XML Property Lists
ba6695
ba6695
License:  LGPLv2+
ba6695
URL:      http://www.libimobiledevice.org/
ba6695
Source0:  http://www.libimobiledevice.org/downloads/%{name}-%{version}.tar.bz2
ba6695
ba6695
BuildRequires: chrpath
ba6695
BuildRequires: gcc
ba6695
BuildRequires: python3-Cython
ba6695
BuildRequires: python3-devel
ba6695
BuildRequires: python3-setuptools
ba6695
BuildRequires: automake autoconf libtool
ba6695
ba6695
%description
ba6695
libplist is a library for manipulating Apple Binary and XML Property Lists
ba6695
ba6695
%package  devel
ba6695
Summary:  Development package for libplist
ba6695
Requires: %{name}%{?_isa} = %{version}-%{release}
ba6695
Requires: pkgconfig
ba6695
ba6695
%description devel
ba6695
%{name}, development headers and libraries.
ba6695
ba6695
%package  -n python3-libplist
ba6695
%{?python_provide:%python_provide python3-libplist}
ba6695
# Remove before F30
ba6695
Provides: %{name}-python = %{version}-%{release}
ba6695
Provides: %{name}-python%{?_isa} = %{version}-%{release}
ba6695
Obsoletes: %{name}-python < %{version}-%{release}
ba6695
Provides: python2-%{name} = %{version}-%{release}
ba6695
Provides: python2-%{name}%{?_isa} = %{version}-%{release}
ba6695
Obsoletes: python2-%{name} < %{version}-%{release}
ba6695
Summary:  Python3 bindings for libplist
ba6695
%{?python_provide:%python_provide python3-libplist}
ba6695
Requires: %{name}%{?_isa} = %{version}-%{release}
ba6695
Requires: python3
ba6695
ba6695
%description -n python3-libplist
ba6695
%{name}, python2 libraries and bindings.
ba6695
ba6695
%prep
ba6695
%setup -q
ba6695
ACLOCAL="aclocal -I m4" autoreconf -f -i
ba6695
ba6695
%build
ba6695
export CFLAGS='%optflags -fno-strict-aliasing'
ba6695
export CXXFLAGS='%optflags -fno-strict-aliasing'
ba6695
export PYTHON='python3'
ba6695
%configure --disable-static
ba6695
ba6695
make %{?_smp_mflags} V=1
ba6695
ba6695
%install
ba6695
make install DESTDIR=%{buildroot}
ba6695
ba6695
find $RPM_BUILD_ROOT -type f -name "*.la" -delete
ba6695
ba6695
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/plistutil
ba6695
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libplist++.so.3*
ba6695
chrpath --delete $RPM_BUILD_ROOT%{python3_sitearch}/plist*
ba6695
ba6695
%check
ba6695
make check
ba6695
ba6695
%post -p /sbin/ldconfig
ba6695
ba6695
%postun -p /sbin/ldconfig
ba6695
ba6695
%files
ba6695
%license COPYING.LESSER
ba6695
%doc AUTHORS README
ba6695
%{_bindir}/plistutil
ba6695
%{_libdir}/libplist.so.3*
ba6695
%{_libdir}/libplist++.so.3*
ba6695
ba6695
%files devel
ba6695
%{_libdir}/pkgconfig/libplist.pc
ba6695
%{_libdir}/pkgconfig/libplist++.pc
ba6695
%{_libdir}/libplist.so
ba6695
%{_libdir}/libplist++.so
ba6695
%{_includedir}/plist
ba6695
ba6695
%files -n python3-libplist
ba6695
%{python3_sitearch}/plist*
ba6695
ba6695
%changelog
ba6695
* Wed Aug 08 2018 Bastien Nocera <bnocera@redhat.com> - 2.0.0-10
ba6695
+ libplist-2.0.0-10
ba6695
- The Python3 Cython binary is now called "cython" not "cython3"
ba6695
- Resolves: #1611726
ba6695
ba6695
* Thu Jun 07 2018 Bastien Nocera <bnocera@redhat.com> - 2.0.0-9
ba6695
+ libplist-2.0.0-9
ba6695
- Port to python3, and obsolete Python2 subpackage
ba6695
ba6695
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-7
ba6695
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ba6695
ba6695
* Tue Jan 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.0.0-6
ba6695
- Update Python 2 dependency declarations to new packaging standards
ba6695
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
ba6695
ba6695
* Sun Aug 20 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.0.0-5
ba6695
- Add Provides for the old name without %%_isa
ba6695
ba6695
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.0.0-4
ba6695
- Python 2 binary package renamed to python2-libplist
ba6695
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
ba6695
ba6695
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-3
ba6695
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
ba6695
ba6695
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-2
ba6695
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ba6695
ba6695
* Wed Apr 26 2017 Peter Robinson <pbrobinson@fedoraproject.org> 2.0.0-1
ba6695
- Update to upstream 2.0.0
ba6695
- Fixes the following CVEs plus others
ba6695
- CVE-2017-6440 CVE-2017-6439 CVE-2017-6438 CVE-2017-6437 CVE-2017-6436
ba6695
- CVE-2017-6435 CVE-2017-5836 CVE-2017-5835 CVE-2017-5834 CVE-2017-5545
ba6695
- CVE-2017-5209
ba6695
ba6695
* Thu Mar 09 2017 Kalev Lember <klember@redhat.com> - 1.12-9
ba6695
- Remove lib64 rpaths
ba6695
- Disable strict aliasing as it's not strict-aliasing clean on ppc64el
ba6695
- Don't redefine licensedir
ba6695
ba6695
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.12-8
ba6695
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
ba6695
ba6695
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12-7
ba6695
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
ba6695
ba6695
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.12-6
ba6695
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
ba6695
ba6695
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12-5
ba6695
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
ba6695
ba6695
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.12-4
ba6695
- Rebuilt for GCC 5 C++11 ABI change
ba6695
ba6695
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 1.12-3
ba6695
- Rebuilt for Fedora 23 Change
ba6695
  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
ba6695
ba6695
* Tue Feb  3 2015 Peter Robinson <pbrobinson@fedoraproject.org> 1.12-2
ba6695
- Use %%license
ba6695
ba6695
* Wed Oct 15 2014 Peter Robinson <pbrobinson@fedoraproject.org> 1.12-1
ba6695
- New upstream 1.12 release
ba6695
ba6695
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-3
ba6695
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
ba6695
ba6695
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-2
ba6695
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ba6695
ba6695
* Sat Mar 22 2014 Peter Robinson <pbrobinson@fedoraproject.org> 1.11-1
ba6695
- New upstream 1.11 release
ba6695
ba6695
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-2
ba6695
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
ba6695
ba6695
* Tue Mar 19 2013 Peter Robinson <pbrobinson@fedoraproject.org> 1.10-1
ba6695
- New upstream 1.10 release
ba6695
ba6695
* Mon Mar 18 2013 Peter Robinson <pbrobinson@fedoraproject.org> 1.9-1
ba6695
- New upstream 1.9 release
ba6695
ba6695
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8-6
ba6695
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ba6695
ba6695
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8-5
ba6695
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ba6695
ba6695
* Wed Apr 11 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 1.8-4
ba6695
- Fix python bindings
ba6695
ba6695
* Wed Apr 11 2012 Rex Dieter <rdieter@fedoraproject.org> 1.8-3
ba6695
- fix ftbfs, work harder to ensure CMAKE_INSTALL_LIBDIR macro is correct 
ba6695
ba6695
* Fri Mar 23 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 1.8-2
ba6695
- Fix RPATH issue with cmake, disable parallel build as it causes other problems
ba6695
ba6695
* Thu Jan 12 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 1.8-1
ba6695
- 1.8 release
ba6695
ba6695
* Mon Sep 26 2011 Peter Robinson <pbrobinson@fedoraproject.org> - 1.7-1
ba6695
- 1.7 release
ba6695
ba6695
* Sat Jun 25 2011 Peter Robinson <pbrobinson@fedoraproject.org> 1.6-1
ba6695
- 1.6 release
ba6695
ba6695
* Mon Jun 13 2011 Peter Robinson <pbrobinson@fedoraproject.org> 1.5-1
ba6695
- 1.5 release
ba6695
ba6695
* Tue Mar 22 2011 Peter Robinson <pbrobinson@fedoraproject.org> 1.4-1
ba6695
- stable 1.4 release
ba6695
ba6695
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-3
ba6695
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ba6695
ba6695
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1.3-2
ba6695
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
ba6695
ba6695
* Tue Apr 20 2010 Peter Robinson <pbrobinson@fedoraproject.org> 1.3-1
ba6695
- Upstream stable 1.3 release
ba6695
ba6695
* Sat Jan 23 2010 Peter Robinson <pbrobinson@fedoraproject.org> 1.2-1
ba6695
- Upstream stable 1.2 release
ba6695
ba6695
* Sat Jan  9 2010 Peter Robinson <pbrobinson@fedoraproject.org> 1.0.0-5
ba6695
- Updated to the new python sysarch spec file reqs
ba6695
ba6695
* Mon Dec  7 2009 Peter Robinson <pbrobinson@fedoraproject.org> 1.0.0-4
ba6695
- and once more with feeling
ba6695
ba6695
* Mon Dec  7 2009 Peter Robinson <pbrobinson@fedoraproject.org> 1.0.0-3
ba6695
- Further updated fixes for the spec file
ba6695
ba6695
* Mon Dec  7 2009 Peter Robinson <pbrobinson@fedoraproject.org> 1.0.0-2
ba6695
- Drop upstreamed patch
ba6695
ba6695
* Mon Dec  7 2009 Peter Robinson <pbrobinson@fedoraproject.org> 1.0.0-1
ba6695
- Upstream stable 1.0.0 release
ba6695
ba6695
* Thu Oct 29 2009 Peter Robinson <pbrobinson@fedoraproject.org> 0.16-3
ba6695
- Actually add patch for python
ba6695
ba6695
* Thu Oct 29 2009 Peter Robinson <pbrobinson@fedoraproject.org> 0.16-2
ba6695
- Add python patch and c++ bindings
ba6695
ba6695
* Thu Oct 29 2009 Peter Robinson <pbrobinson@fedoraproject.org> 0.16-1
ba6695
- New upstream 0.16 release
ba6695
ba6695
* Tue Oct 20 2009 Peter Robinson <pbrobinson@fedoraproject.org> 0.15-1
ba6695
- New upstream 0.15 release
ba6695
ba6695
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13-2
ba6695
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ba6695
ba6695
* Mon May 11 2009 Peter Robinson <pbrobinson@fedoraproject.org> 0.13-1
ba6695
- New upstream 0.13 release
ba6695
ba6695
* Mon May 11 2009 Peter Robinson <pbrobinson@fedoraproject.org> 0.12-2
ba6695
- Further review updates
ba6695
ba6695
* Sun May 10 2009 Peter Robinson <pbrobinson@fedoraproject.org> 0.12-1
ba6695
- Update to official tarball release, some review fixes
ba6695
ba6695
* Sun May 10 2009 Peter Robinson <pbrobinson@fedoraproject.org> 0.12.0-0.1
ba6695
- Initial package