2021-10-14 22:42:12 +02:00
|
|
|
#
|
|
|
|
# spec file for package libimobiledevice-glue
|
|
|
|
#
|
2024-02-24 20:52:07 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2021-10-14 22:42:12 +02:00
|
|
|
#
|
|
|
|
# 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 https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define libname libimobiledevice-glue-1_0-0
|
2024-02-27 10:20:25 +01:00
|
|
|
%define source_date_epoch_from_changelog 1
|
|
|
|
%define clamp_mtime_to_source_date_epoch 1
|
|
|
|
%define use_source_date_epoch_as_buildtime 1
|
2021-10-14 22:42:12 +02:00
|
|
|
Name: libimobiledevice-glue
|
2024-02-27 10:20:25 +01:00
|
|
|
Version: 1.1.0+git0.20240222
|
2021-10-14 22:42:12 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Native protocols library for iOS devices
|
|
|
|
License: LGPL-2.1-or-later
|
|
|
|
URL: https://www.libimobiledevice.org
|
|
|
|
Source: %{name}-%{version}.tar.gz
|
|
|
|
Source1: baselibs.conf
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkgconfig
|
2023-06-02 13:26:48 +02:00
|
|
|
BuildRequires: pkgconfig(libplist-2.0) >= 2.3.0
|
2021-10-14 22:42:12 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
A library with common code used by libraries and tools around the libimobiledevice project.
|
|
|
|
It does not depend on any existing libraries from Apple.
|
|
|
|
|
|
|
|
%package -n %{libname}
|
|
|
|
Summary: Native protocols library for iOS devices
|
|
|
|
|
|
|
|
%description -n %{libname}
|
|
|
|
A library with common code used by libraries and tools around the libimobiledevice project.
|
|
|
|
It does not depend on any existing libraries from Apple.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{libname} = %{version}
|
|
|
|
Requires: pkgconfig(libplist-2.0)
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
sed -i -e '/Requires:/d' src/%{name}-1.0.pc.in
|
|
|
|
sed -i -e 's/-L${libdir}//' src/%{name}-1.0.pc.in
|
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fvi
|
2023-06-02 13:26:48 +02:00
|
|
|
%configure PACKAGE_VERSION=%{version} \
|
2021-10-14 22:42:12 +02:00
|
|
|
--disable-silent-rules \
|
2024-02-27 11:23:06 +01:00
|
|
|
--disable-static
|
2021-10-14 22:42:12 +02:00
|
|
|
%make_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
|
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %{libname}
|
|
|
|
%doc README.md
|
|
|
|
%license COPYING
|
|
|
|
%{_libdir}/%{name}-1.0.so.0*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/%{name}/
|
|
|
|
%{_libdir}/%{name}-1.0.so
|
|
|
|
%{_libdir}/pkgconfig/%{name}-1.0.pc
|
|
|
|
|
|
|
|
%changelog
|