]>
Commit | Line | Data |
---|---|---|
3a74dc28 AM |
1 | Summary: Platform support library used by libCEC and binary add-ons for Kodi |
2 | Name: platform | |
3 | Version: 2.1.0.1 | |
4 | Release: 1 | |
5 | License: GPL v2+ | |
fda40c7a | 6 | Group: Libraries |
3a74dc28 AM |
7 | URL: https://github.com/Pulse-Eight/platform/ |
8 | Source0: https://github.com/Pulse-Eight/platform/archive/p8-%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 3b9b00b7e0bb43532518741c1e30a2d7 | |
10 | BuildRequires: cmake | |
11 | BuildRequires: libstdc++-devel | |
12 | ||
13 | %description | |
14 | Platform support library used by libCEC and binary add-ons for Kodi. | |
15 | ||
16 | %package devel | |
17 | Summary: Development files for %{name} | |
fda40c7a | 18 | Group: Development/Libraries |
3a74dc28 AM |
19 | Requires: %{name} = %{version}-%{release} |
20 | Requires: cmake | |
21 | ||
22 | %description devel | |
23 | The %{name}-devel package contains libraries and header files for | |
24 | developing applications that use %{name}. | |
25 | ||
26 | %prep | |
27 | %setup -q -n %{name}-p8-%{name}-%{version} | |
28 | ||
29 | %build | |
30 | install -d build | |
31 | cd build | |
32 | %cmake .. | |
33 | ||
34 | %{__make} | |
35 | ||
36 | %install | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | ||
39 | %{__make} -C build install \ | |
40 | DESTDIR=$RPM_BUILD_ROOT | |
41 | ||
42 | %clean | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | %post -p /sbin/ldconfig | |
46 | %postun -p /sbin/ldconfig | |
47 | ||
48 | %files | |
49 | %defattr(644,root,root,755) | |
50 | %doc README.md | |
51 | %attr(755,root,root) %{_libdir}/libp8-%{name}.so.*.* | |
52 | %attr(755,root,root) %ghost %{_libdir}/libp8-%{name}.so.2 | |
53 | ||
54 | %files devel | |
55 | %defattr(644,root,root,755) | |
56 | %{_includedir}/p8-%{name} | |
57 | %attr(755,root,root) %{_libdir}/libp8-%{name}.so | |
58 | %{_libdir}/p8-%{name} | |
59 | %{_pkgconfigdir}/p8-%{name}.pc |