forked from RPM-Outpost/libimobiledevice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibimobiledevice_x86_64.spec
79 lines (63 loc) · 2.07 KB
/
libimobiledevice_x86_64.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
%{!?release_number: %define release_number 1}
# release_number should be defined by the caller (with the --define option of rpmbuild).
# If the caller doesn't define it, then it is defined to 1.
Name: libimobiledevice
Version: 1.2.1
Release: git.%{release_number}%{?dist}
Summary: Library for connecting to iOS devices.
Group: System Environment/Libraries
License: LGPLv2+
URL: https://github.com/libimobiledevice/libimobiledevice
Source0: libimobiledevice.tar.gz
# local source file (must be downloaded manually or with the script)
BuildArch: x86_64
BuildRequires: python-devel openssl-devel libplist-devel libusbmuxd-devel
Requires: openssl libplist libusbmuxd libgcrypt glibc
%description
Library to communicate with iOS devices.
This package was built from github source by the script https://github.com/TheElectronWill/libimobiledevice-rpm/blob/master/create-packages.sh
## devel subpackage
%package devel
Summary: Development package of libimobiledevice
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains the files needed for development with %{name}.
## utils subpackage
%package utils
Summary: Utilites for libimobiledevice
Group: Applications/System
Requires: %{name}%{?_isa} = %{version}-%{release}
%description utils
Command utilities for libimobiledevice.
## preparation
%prep
%autosetup -n libimobiledevice-master
## build
%build
./autogen.sh %{?autogen_params}
%configure --disable-static
%make_build
## installation
%install
export "QA_RPATHS=\$[0x0002]"
# ignore errors 0x0002 (or else the install might fails).
rm -rf $RPM_BUILD_ROOT
%make_install
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
## post actions
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
## files included in the basic "libimobiledevice" package
%files
%license COPYING.LESSER
%doc AUTHORS README
%{_libdir}/*.so.*
##files included in the "libimobiledevice-utils" package
%files utils
%doc %{_mandir}/*
%{_bindir}/*
## files included in the "libimobiledevice-devel" package
%files devel
%{_includedir}/*
%{_libdir}/*