]>
Commit | Line | Data |
---|---|---|
f5d05c9c ŁK |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without vala # do not build Vala API | |
4 | # | |
a439583d PZ |
5 | Summary: GObject contact aggregation library |
6 | Name: folks | |
61b06340 | 7 | Version: 0.6.9 |
f5d05c9c | 8 | Release: 2 |
a439583d PZ |
9 | License: LGPL v2+ |
10 | Group: Libraries | |
20895c66 | 11 | Source0: http://ftp.gnome.org/pub/GNOME/sources/folks/0.6/%{name}-%{version}.tar.xz |
61b06340 | 12 | # Source0-md5: 49b739a9359a9b030844a2719cf5bb45 |
a439583d | 13 | URL: http://telepathy.freedesktop.org/wiki/Folks |
cb1d7e18 | 14 | BuildRequires: GConf2-devel >= 2.31.0 |
20895c66 MB |
15 | BuildRequires: autoconf >= 2.65 |
16 | BuildRequires: automake >= 1:1.11 | |
99340317 | 17 | BuildRequires: dbus-glib-devel |
20895c66 | 18 | BuildRequires: evolution-data-server-devel >= 3.2.0 |
99340317 MB |
19 | BuildRequires: gettext-devel |
20 | BuildRequires: glib2-devel >= 1:2.24.0 | |
8b3156f3 | 21 | BuildRequires: gobject-introspection-devel >= 1.30.0 |
99340317 MB |
22 | BuildRequires: intltool >= 0.35.0 |
23 | BuildRequires: libgee-devel < 0.7 | |
26b2788e | 24 | BuildRequires: libsocialweb-devel >= 0.25.20 |
20895c66 | 25 | BuildRequires: libtool |
2a61e194 | 26 | BuildRequires: libxml2-devel |
99340317 | 27 | BuildRequires: pkgconfig >= 1:0.21 |
cb1d7e18 | 28 | BuildRequires: readline-devel |
20895c66 | 29 | BuildRequires: tar >= 1:1.22 |
284540fb | 30 | BuildRequires: telepathy-glib-devel >= 0.16.4 |
6d224ed2 | 31 | BuildRequires: tracker-devel >= 0.14.0 |
f5d05c9c | 32 | %if %{with vala} |
6d224ed2 | 33 | BuildRequires: vala >= 2:0.16.0 |
26b2788e | 34 | BuildRequires: vala-libgee < 0.7 |
f5d05c9c | 35 | %endif |
20895c66 | 36 | BuildRequires: xz |
2a61e194 | 37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
a439583d PZ |
38 | |
39 | %description | |
40 | libfolks is a library that aggregates people from multiple sources | |
41 | (e.g. Telepathy connection managers and eventually evolution data | |
42 | server, Facebook, etc.) to create meta-contacts. | |
43 | ||
2a61e194 | 44 | %package devel |
99340317 MB |
45 | Summary: Development files for folks libraries |
46 | Summary(pl.UTF-8): Pliki programistyczne bibliotek folks | |
a439583d PZ |
47 | Group: Development/Libraries |
48 | Requires: %{name} = %{version}-%{release} | |
20895c66 | 49 | Requires: evolution-data-server-devel >= 3.2.0 |
99340317 MB |
50 | Requires: glib2-devel >= 1:2.24.0 |
51 | Requires: libgee-devel < 0.7 | |
26b2788e ŁK |
52 | Requires: libsocialweb-devel >= 0.25.20 |
53 | Requires: telepathy-glib-devel >= 0.16.4 | |
6d224ed2 | 54 | Requires: tracker-devel >= 0.14.0 |
a439583d | 55 | |
2a61e194 | 56 | %description devel |
99340317 MB |
57 | Development files for folks libraries. |
58 | ||
59 | %description devel -l pl.UTF-8 | |
60 | Pliki programistyczne bibliotek folks. | |
a439583d | 61 | |
f5d05c9c ŁK |
62 | %package -n vala-folks |
63 | Summary: folks API for Vala language | |
64 | Summary(pl.UTF-8): API folks dla języka Vala | |
65 | Group: Development/Libraries | |
66 | Requires: %{name}-devel = %{version}-%{release} | |
67 | ||
68 | %description -n vala-folks | |
69 | folks API for Vala language. | |
70 | ||
71 | %description -n vala-folks -l pl.UTF-8 | |
72 | API folks dla języka Vala. | |
73 | ||
74 | ||
a439583d PZ |
75 | %prep |
76 | %setup -q | |
a439583d PZ |
77 | |
78 | %build | |
20895c66 MB |
79 | %{__intltoolize} |
80 | %{__libtoolize} | |
81 | %{__aclocal} -I m4 | |
82 | %{__autoconf} | |
83 | %{__autoheader} | |
84 | %{__automake} | |
a439583d | 85 | %configure \ |
99340317 MB |
86 | --disable-silent-rules \ |
87 | --disable-static \ | |
f5d05c9c | 88 | %{__enable_disable vala vala} |
a439583d | 89 | |
99340317 | 90 | %{__make} |
a439583d PZ |
91 | |
92 | %install | |
93 | rm -rf $RPM_BUILD_ROOT | |
99340317 MB |
94 | |
95 | %{__make} install \ | |
96 | DESTDIR=$RPM_BUILD_ROOT | |
97 | ||
20895c66 | 98 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/folks/*/backends/*/*.la \ |
99340317 MB |
99 | $RPM_BUILD_ROOT%{_libdir}/*.la |
100 | ||
101 | %find_lang %{name} | |
a439583d | 102 | |
2a61e194 | 103 | %clean |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | ||
a439583d PZ |
106 | %post -p /sbin/ldconfig |
107 | %postun -p /sbin/ldconfig | |
108 | ||
99340317 | 109 | %files -f %{name}.lang |
a439583d PZ |
110 | %defattr(644,root,root,755) |
111 | %doc AUTHORS ChangeLog README | |
55e966a3 | 112 | %attr(755,root,root) %{_bindir}/folks-import |
99340317 | 113 | %attr(755,root,root) %{_bindir}/folks-inspect |
a439583d | 114 | %attr(755,root,root) %{_libdir}/libfolks.so.*.*.* |
e1dd2460 | 115 | %attr(755,root,root) %ghost %{_libdir}/libfolks.so.25 |
20895c66 | 116 | %attr(755,root,root) %{_libdir}/libfolks-eds.so.*.*.* |
e1dd2460 | 117 | %attr(755,root,root) %ghost %{_libdir}/libfolks-eds.so.25 |
d5d9c06c | 118 | %attr(755,root,root) %{_libdir}/libfolks-libsocialweb.so.*.*.* |
e1dd2460 | 119 | %attr(755,root,root) %ghost %{_libdir}/libfolks-libsocialweb.so.25 |
20895c66 | 120 | %attr(755,root,root) %{_libdir}/libfolks-telepathy.so.*.*.* |
e1dd2460 | 121 | %attr(755,root,root) %ghost %{_libdir}/libfolks-telepathy.so.25 |
2a61e194 | 122 | %dir %{_libdir}/folks |
6d224ed2 MB |
123 | %dir %{_libdir}/folks/32 |
124 | %dir %{_libdir}/folks/32/backends | |
125 | %dir %{_libdir}/folks/32/backends/eds | |
126 | %attr(755,root,root) %{_libdir}/folks/32/backends/eds/eds.so | |
127 | %dir %{_libdir}/folks/32/backends/key-file | |
128 | %attr(755,root,root) %{_libdir}/folks/32/backends/key-file/key-file.so | |
129 | %dir %{_libdir}/folks/32/backends/libsocialweb | |
130 | %attr(755,root,root) %{_libdir}/folks/32/backends/libsocialweb/libsocialweb.so | |
131 | %dir %{_libdir}/folks/32/backends/telepathy | |
132 | %attr(755,root,root) %{_libdir}/folks/32/backends/telepathy/telepathy.so | |
24c58894 | 133 | %{_libdir}/girepository-1.0/*.typelib |
a439583d PZ |
134 | |
135 | %files devel | |
136 | %defattr(644,root,root,755) | |
99340317 | 137 | %attr(755,root,root) %{_libdir}/libfolks.so |
20895c66 | 138 | %attr(755,root,root) %{_libdir}/libfolks-eds.so |
d5d9c06c | 139 | %attr(755,root,root) %{_libdir}/libfolks-libsocialweb.so |
20895c66 | 140 | %attr(755,root,root) %{_libdir}/libfolks-telepathy.so |
24c58894 | 141 | %{_datadir}/gir-1.0/*.gir |
f5d05c9c ŁK |
142 | %{_includedir}/folks |
143 | %{_pkgconfigdir}/folks.pc | |
144 | %{_pkgconfigdir}/folks-eds.pc | |
145 | %{_pkgconfigdir}/folks-libsocialweb.pc | |
146 | %{_pkgconfigdir}/folks-telepathy.pc | |
147 | ||
148 | %if %{with vala} | |
149 | %files -n vala-folks | |
150 | %defattr(644,root,root,755) | |
d5d9c06c AF |
151 | %{_datadir}/vala/vapi/folks.deps |
152 | %{_datadir}/vala/vapi/folks.vapi | |
20895c66 MB |
153 | %{_datadir}/vala/vapi/folks-eds.deps |
154 | %{_datadir}/vala/vapi/folks-eds.vapi | |
d5d9c06c AF |
155 | %{_datadir}/vala/vapi/folks-libsocialweb.deps |
156 | %{_datadir}/vala/vapi/folks-libsocialweb.vapi | |
157 | %{_datadir}/vala/vapi/folks-telepathy.deps | |
158 | %{_datadir}/vala/vapi/folks-telepathy.vapi | |
f5d05c9c | 159 | %endif |