]>
Commit | Line | Data |
---|---|---|
facba58b ER |
1 | Summary: Unity instrumenting and integration library |
2 | Name: libunity | |
3 | Version: 5.12.0 | |
ade31b8b | 4 | Release: 2 |
facba58b ER |
5 | License: LGPL v3 |
6 | Group: Libraries | |
7 | URL: http://launchpad.net/libunity | |
8 | Source0: https://launchpad.net/libunity/5.0/%{version}/+download/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 41245701df2b7dc24af2b92bffb675be | |
10 | BuildRequires: dee-devel >= 1.0.14 | |
11 | BuildRequires: glib2-devel | |
12 | BuildRequires: gobject-introspection-devel | |
13 | BuildRequires: gtk-doc | |
14 | BuildRequires: libdbusmenu-devel | |
15 | BuildRequires: libgee0.6-devel | |
16 | BuildRequires: rpmbuild(macros) >= 1.219 | |
17 | BuildRequires: vala | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | Libunity is a shared library to be able to interact with the launcher | |
22 | and add places in Unity environment. | |
23 | ||
24 | %package devel | |
25 | Summary: Unity instrumenting and integration library - development files | |
26 | Group: Development/Libraries | |
ade31b8b | 27 | Requires: %{name} = %{version}-%{release} |
facba58b ER |
28 | |
29 | %description devel | |
30 | This package provides the development files required to build | |
31 | applications. | |
32 | ||
33 | %package -n python-unity | |
34 | Summary: Python bindings for libunity | |
35 | Group: Development/Languages/Python | |
36 | ||
37 | %description -n python-unity | |
38 | Python bindings Libunity is a shared library to be able to interact | |
39 | with the launcher and add places in Unity environment. | |
40 | ||
41 | %prep | |
42 | %setup -q | |
43 | ||
44 | %build | |
45 | %configure \ | |
ade31b8b | 46 | --disable-silent-rules \ |
facba58b ER |
47 | --disable-static \ |
48 | --enable-gtk-doc | |
ade31b8b | 49 | %{__make} |
facba58b ER |
50 | |
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | %{__make} install \ | |
54 | DESTDIR=$RPM_BUILD_ROOT | |
55 | ||
56 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libunity.la | |
57 | ||
58 | %py_postclean | |
59 | ||
60 | %clean | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %post -p /sbin/ldconfig | |
64 | %postun -p /sbin/ldconfig | |
65 | ||
66 | %files | |
67 | %defattr(644,root,root,755) | |
68 | %attr(755,root,root) %{_libdir}/libunity.so.*.*.* | |
69 | %ghost %{_libdir}/libunity.so.9 | |
70 | %{_libdir}/girepository-1.0/*.typelib | |
71 | ||
72 | %files devel | |
73 | %defattr(644,root,root,755) | |
74 | %attr(755,root,root) %{_bindir}/unity-tool | |
75 | %dir %{_includedir}/unity | |
76 | %{_includedir}/unity/unity | |
77 | %{_libdir}/libunity.so | |
78 | %{_pkgconfigdir}/unity.pc | |
79 | %{_datadir}/vala/vapi/unity-trace.deps | |
80 | %{_datadir}/vala/vapi/unity-trace.vapi | |
81 | %{_datadir}/vala/vapi/unity.deps | |
82 | %{_datadir}/vala/vapi/unity.vapi | |
83 | %{_datadir}/gir-1.0/Unity-5.0.gir | |
84 | ||
85 | %files -n python-unity | |
86 | %defattr(644,root,root,755) | |
87 | %{py_sitedir}/gi/overrides/Unity.py[co] |