]>
Commit | Line | Data |
---|---|---|
9214c5ab JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static libraries | |
4 | ||
5 | Summary: Library to handle activation of Apple iOS devices | |
6 | Summary(pl.UTF-8): Biblioteka do obsługi aktywacji urządzeń Apple iOS | |
7 | Name: libideviceactivation | |
08874ed5 | 8 | Version: 1.1.1 |
9214c5ab JB |
9 | Release: 1 |
10 | License: LGPL v2+ | |
11 | Group: Libraries | |
08874ed5 JB |
12 | #Source0Download: https://libimobiledevice.org/ |
13 | Source0: https://github.com/libimobiledevice/libideviceactivation/releases/download/%{version}/%{name}-%{version}.tar.bz2 | |
14 | # Source0-md5: 1211fe0c589732cd7de7c45d6263ad2d | |
15 | URL: https://libimobiledevice.org/ | |
16 | BuildRequires: autoconf >= 2.64 | |
9214c5ab JB |
17 | BuildRequires: automake |
18 | BuildRequires: curl-devel >= 7.20 | |
08874ed5 JB |
19 | BuildRequires: libimobiledevice-devel >= 1.3.0 |
20 | BuildRequires: libplist-devel >= 2.2.0 | |
9214c5ab JB |
21 | BuildRequires: libxml2-devel >= 1:2.9 |
22 | BuildRequires: libtool | |
23 | BuildRequires: pkgconfig | |
08874ed5 JB |
24 | Requires: libimobiledevice >= 1.3.0 |
25 | Requires: libplist >= 2.2.0 | |
9214c5ab JB |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %description | |
29 | A library to manage the activation process of Apple iOS devices. | |
30 | ||
31 | %description -l pl.UTF-8 | |
32 | Biblioteka do zarządzania procesem aktywacji urządzeń Apple iOS. | |
33 | ||
34 | %package devel | |
35 | Summary: Header files for libideviceactivation library | |
36 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libideviceactivation | |
37 | Group: Development/Libraries | |
38 | Requires: %{name} = %{version}-%{release} | |
39 | Requires: curl-devel >= 7.20 | |
08874ed5 JB |
40 | Requires: libimobiledevice-devel >= 1.3.0 |
41 | Requires: libplist-devel >= 2.2.0 | |
9214c5ab JB |
42 | Requires: libxml2-devel >= 1:2.9 |
43 | ||
44 | %description devel | |
45 | Header files for libideviceactivation library. | |
46 | ||
47 | %description devel -l pl.UTF-8 | |
48 | Pliki nagłówkowe biblioteki libideviceactivation. | |
49 | ||
50 | %package static | |
51 | Summary: Static libideviceactivation library | |
52 | Summary(pl.UTF-8): Statyczna biblioteka libideviceactivation | |
53 | Group: Development/Libraries | |
54 | Requires: %{name}-devel = %{version}-%{release} | |
55 | ||
56 | %description static | |
57 | Static libideviceactivation library. | |
58 | ||
59 | %description static -l pl.UTF-8 | |
60 | Statyczna biblioteka libideviceactivation. | |
61 | ||
62 | %prep | |
63 | %setup -q | |
64 | ||
65 | %build | |
66 | %{__libtoolize} | |
67 | %{__aclocal} -I m4 | |
68 | %{__autoconf} | |
69 | %{__autoheader} | |
70 | %{__automake} | |
71 | %configure \ | |
72 | %{!?with_static_libs:--disable-static} \ | |
73 | --disable-silent-rules | |
74 | %{__make} | |
75 | ||
76 | %install | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %{__make} install \ | |
80 | DESTDIR=$RPM_BUILD_ROOT | |
81 | ||
82 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
83 | ||
84 | %clean | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
87 | %post -p /sbin/ldconfig | |
88 | %postun -p /sbin/ldconfig | |
89 | ||
90 | %files | |
91 | %defattr(644,root,root,755) | |
08874ed5 | 92 | %doc AUTHORS NEWS README.md |
9214c5ab | 93 | %attr(755,root,root) %{_bindir}/ideviceactivation |
08874ed5 JB |
94 | %attr(755,root,root) %{_libdir}/libideviceactivation-1.0.so.*.*.* |
95 | %attr(755,root,root) %ghost %{_libdir}/libideviceactivation-1.0.so.2 | |
9214c5ab JB |
96 | %{_mandir}/man1/ideviceactivation.1* |
97 | ||
98 | %files devel | |
99 | %defattr(644,root,root,755) | |
08874ed5 | 100 | %attr(755,root,root) %{_libdir}/libideviceactivation-1.0.so |
9214c5ab JB |
101 | %{_includedir}/libideviceactivation.h |
102 | %{_pkgconfigdir}/libideviceactivation-1.0.pc | |
103 | ||
104 | %if %{with static_libs} | |
105 | %files static | |
106 | %defattr(644,root,root,755) | |
08874ed5 | 107 | %{_libdir}/libideviceactivation-1.0.a |
9214c5ab | 108 | %endif |