1
0
libimobiledevice/libimobiledevice.spec
Stephan Kulow 3da718c4ab Accepting request 114396 from mobile:synchronization:FACTORY
- Allow compilation on 11.4 by disabling cython bindings

- Update to 1.1.4:
  - Fix a bug in idevicesyslog causing the connection to close after timeout
  - Bump soname revision
  - Bump libusbmuxd dependency to 1.0.8
  - Fix reading from syslog_relay and remove null characters
  - Relicense ideviceimagemounter and idevicescreenshot to LGPL
  - Fix a crash when using restored_client_free()
  - API: Add sbservices_get_interface_orientation()
  - Update man pages and code comments for documentation
  - Minor cleanup
  - Add Python bindings generated by Cython
  - Bump libplist requirement to latest 1.8
  - Add support for OpenSSL with fallback to GNUTLS
  - Improvements and various fixes for Win32 and OS X build
  - Remove glib dependency
  - Improve restored implementation
  - Fix various memory leaks
  - Fix support for iOS 5 and later
- Remove swig patch as bindings have been removed
- Remove gstatbuf patch as it is obselete now

OBS-URL: https://build.opensuse.org/request/show/114396
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libimobiledevice?expand=0&rev=19
2012-04-18 14:28:28 +00:00

190 lines
5.6 KiB
RPMSpec

#
# spec file for package libimobiledevice
#
# Copyright (c) 2012 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/
#
Name: libimobiledevice
%define _name libimobiledevice3
Version: 1.1.4
Release: 0
BuildRequires: gcc-c++
BuildRequires: libopenssl-devel
BuildRequires: libplist++-devel >= 1.8
BuildRequires: libplist-devel >= 1.8
BuildRequires: libtool
BuildRequires: libusbmuxd-devel >= 1.0.0
BuildRequires: libxml2-devel
%if %{?suse_version} > 1140
BuildRequires: python-cython
BuildRequires: python-devel
BuildRequires: python-plist
%endif
BuildRequires: readline-devel
BuildRequires: sed
%if 0%{?opensuse_bs}
BuildRequires: pkg-config
%endif
%if 0%{?suse_version} <= 1110
BuildRequires: libusb-1_0-devel >= 1.0.3
%endif
Source: %{name}-%{version}.tar.bz2
Source1: baselibs.conf
Summary: Native protocols library for iPhone, iPod Touch and iPad
License: LGPL-2.1+
Group: System/Libraries
Url: http://www.libimobiledevice.org
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: usbmuxd >= 1.0.0
Obsoletes: libiphone0 < 0.9.6
%description
libimobiledevice is a software library that talks the protocols to support
iPhone, iPod Touch and iPad devices. Unlike other projects, it does not depend
on using any existing `.dll` or `.so` libraries from Apple.
%package -n %{_name}
Summary: Native protocols library for iPhone, iPod Touch and iPad
License: LGPL-2.1+
Group: System/Libraries
Provides: %{name} = %{version}
Obsoletes: %{name} < %{version}
Obsoletes: libiphone0 < 0.9.6
%description -n %{_name}
libimobiledevice is a software library that talks the protocols to support
iPhone, iPod Touch and iPad devices. Unlike other projects, it does not depend
on using any existing `.dll` or `.so` libraries from Apple.
%package devel
Summary: Development files for %{_name}
License: LGPL-2.1+
Group: Development/Libraries/C and C++
Requires: %{_name} = %{version}
Requires: libopenssl-devel
Requires: libplist-devel
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{_name}.
%package tools
Summary: Tools using %{_name} for iPhone, iPod Touch and iPad
License: GPL-2.0+ ; LGPL-2.1+
Group: Productivity/Multimedia/Other
Requires: %{_name} = %{version}
%description tools
libimobiledevice is a software library that talks the protocols to support
iPhone, iPod Touch and iPad devices. Unlike other projects, it does not depend
on using any existing `.dll` or `.so` libraries from Apple.
%package doc
Summary: API Reference Documentation for %{_name}
License: LGPL-2.1+
Group: Development/Libraries/C and C++
%description doc
Contains API reference documentation for developers using %{_name}.
%if %{?suse_version} > 1140
%package -n python-imobiledevice
Summary: Python bindings for %{_name}
License: LGPL-2.1+
Group: Development/Languages/Python
Requires: %{_name} = %{version}
Requires: libplist++1 >= 1.8
%{py_requires}
%description -n python-imobiledevice
Contains Python bindings for developing applications that use %{_name}.
%endif
%prep
%setup -q -n %{name}-%{version}
%build
autoreconf -fi
sed -i -e '/Requires:/d' %{name}-1.0.pc.in
sed -i -e 's/-L${libdir}//' %{name}-1.0.pc.in
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%configure --disable-silent-rules \
%if %{?suse_version} <= 1140
--without-cython \
%endif
--disable-static --disable-dev-tools
make %{?_smp_mflags}
%install
%{__make} install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name "*.la" -exec %{__rm} -fv {} +
rm -rf $RPM_BUILD_ROOT/%{_libdir}/%{name}.*a*
%clean
rm -rf $RPM_BUILD_ROOT
%post -n %{_name} -p /sbin/ldconfig
%postun -n %{_name} -p /sbin/ldconfig
%files -n %{_name}
%defattr(-,root,root)
%doc COPYING.LESSER
%{_libdir}/%{name}.so.*
%files devel
%defattr(-,root,root,-)
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}-1.0.pc
%files tools
%defattr(-,root,root,-)
%{_bindir}/idevice_id
%{_bindir}/idevicepair
%{_bindir}/ideviceinfo
%{_bindir}/idevicesyslog
%{_bindir}/idevicebackup
%{_bindir}/idevicebackup2
%{_bindir}/ideviceimagemounter
%{_bindir}/idevicescreenshot
%{_bindir}/ideviceenterrecovery
%{_bindir}/idevicedate
%doc %{_mandir}/man1/idevice_id.1.*
%doc %{_mandir}/man1/idevicepair.1.*
%doc %{_mandir}/man1/ideviceinfo.1.*
%doc %{_mandir}/man1/idevicesyslog.1.*
%doc %{_mandir}/man1/idevicebackup.1.*
%doc %{_mandir}/man1/idevicebackup2.1.*
%doc %{_mandir}/man1/ideviceimagemounter.1.*
%doc %{_mandir}/man1/idevicescreenshot.1.*
%doc %{_mandir}/man1/ideviceenterrecovery.1.*
%doc %{_mandir}/man1/idevicedate.1.*
%files doc
%defattr (-, root, root)
%doc AUTHORS COPYING COPYING.LESSER NEWS README
%docdir docs/html
%if %{?suse_version} > 1140
%files -n python-imobiledevice
%defattr(-,root,root,-)
%{py_sitedir}/imobiledevice.so
%endif
%changelog