]>
Commit | Line | Data |
---|---|---|
7980613e MB |
1 | Summary: Library for manipulating Apple Property Lists |
2 | Summary(pl.UTF-8): Biblioteka do manipulowania Apple Property Lists | |
3 | Name: libplist | |
4987ce66 | 4 | Version: 1.3 |
a649e5ba | 5 | Release: 3 |
7980613e MB |
6 | License: LGPL v2+ |
7 | Group: Libraries | |
8 | Source0: http://cloud.github.com/downloads/JonathanBeck/libplist/%{name}-%{version}.tar.bz2 | |
4987ce66 MB |
9 | # Source0-md5: 0f48f4da8ddba5d7e186307622bf2c62 |
10 | URL: http://www.libimobiledevice.org/ | |
a649e5ba | 11 | BuildRequires: cmake >= 2.8.2-2 |
7980613e MB |
12 | BuildRequires: glib2-devel >= 1:2.14.1 |
13 | BuildRequires: libxml2-devel >= 1:2.6.30 | |
14 | BuildRequires: pkgconfig | |
15 | BuildRequires: python-devel | |
16 | BuildRequires: swig-python | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | Library for manipulating Apple Property Lists in binary and XML | |
21 | format. | |
22 | ||
23 | %description -l pl.UTF-8 | |
24 | Biblioteka do manipulowania Apple Property Lists w formacie binarnym i | |
25 | XML. | |
26 | ||
27 | %package devel | |
28 | Summary: Header files for libplist library | |
29 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libplist | |
30 | Group: Development/Libraries | |
31 | Requires: %{name} = %{version}-%{release} | |
32 | Requires: glib2-devel >= 1:2.14.1 | |
33 | Requires: libxml2-devel >= 1:2.6.30 | |
34 | ||
35 | %description devel | |
36 | Header files for libplist library. | |
37 | ||
38 | %description devel -l pl.UTF-8 | |
39 | Pliki nagłówkowe biblioteki libplist. | |
40 | ||
41 | %package -n python-plist | |
42 | Summary: libplist Python bindings | |
43 | Summary(pl.UTF-8): Wiązania libplist dla Pythona | |
44 | Group: Development/Languages/Python | |
45 | ||
46 | %description -n python-plist | |
47 | libplist Python bindings. | |
48 | ||
49 | %description -n python-plist -l pl.UTF-8 | |
50 | Wiązania libplist dla Pythona. | |
51 | ||
52 | %prep | |
53 | %setup -q | |
54 | ||
55 | %build | |
56 | install -d build | |
57 | cd build | |
58 | %cmake \ | |
59 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
60 | -DCMAKE_INSTALL_LIBDIR=%{_lib} \ | |
61 | ../ | |
62 | ||
63 | %{__make} | |
64 | ||
65 | %install | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %{__make} -C build install \ | |
69 | DESTDIR=$RPM_BUILD_ROOT | |
70 | ||
71 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
72 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
73 | %py_postclean | |
74 | ||
75 | %clean | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %post -p /sbin/ldconfig | |
79 | %postun -p /sbin/ldconfig | |
80 | ||
81 | %files | |
82 | %defattr(644,root,root,755) | |
83 | %doc AUTHORS README | |
84 | %attr(755,root,root) %{_bindir}/plutil* | |
85 | %attr(755,root,root) %{_libdir}/libplist++.so.*.*.* | |
86 | %attr(755,root,root) %ghost %{_libdir}/libplist++.so.1 | |
87 | %attr(755,root,root) %{_libdir}/libplist.so.*.*.* | |
88 | %attr(755,root,root) %ghost %{_libdir}/libplist.so.1 | |
89 | ||
90 | %files devel | |
91 | %defattr(644,root,root,755) | |
92 | %attr(755,root,root) %{_libdir}/libplist++.so | |
93 | %attr(755,root,root) %{_libdir}/libplist.so | |
94 | %{_includedir}/plist | |
95 | %{_pkgconfigdir}/libplist++.pc | |
96 | %{_pkgconfigdir}/libplist.pc | |
97 | ||
98 | %files -n python-plist | |
99 | %defattr(644,root,root,755) | |
100 | %dir %{py_sitedir}/plist | |
101 | %attr(755,root,root) %{py_sitedir}/plist/_plist.so | |
102 | %{py_sitedir}/plist/*.py[co] |