2023-11-03 10:10:10 +08:00
|
|
|
%global dbus_ver 0.95
|
|
|
|
|
%global dbus_glib_ver 0.90
|
|
|
|
|
%global glib_ver 2.36.0
|
|
|
|
|
%global gobj_ver 1.30
|
|
|
|
|
%global vala_ver 0.16.0
|
|
|
|
|
|
|
|
|
|
Name: telepathy-glib
|
|
|
|
|
Version: 0.24.2
|
|
|
|
|
Release: 1
|
|
|
|
|
Summary: GLib bindings for Telepathy
|
|
|
|
|
|
|
|
|
|
# LGPL-2.1-or-later: overall
|
|
|
|
|
# FSFAP: examples/client/ et al. (not included in the binary)
|
|
|
|
|
# FSFAP: tests/contact-search-result.c et al.
|
|
|
|
|
# SPDX confirmed
|
|
|
|
|
License: LGPL-2.1-or-later
|
|
|
|
|
URL: http://telepathy.freedesktop.org/wiki/FrontPage
|
|
|
|
|
Source0: http://telepathy.freedesktop.org/releases/%{name}/%{name}-%{version}.tar.gz
|
|
|
|
|
# https://gitlab.freedesktop.org/telepathy/telepathy-glib/-/issues/145
|
|
|
|
|
# https://gitlab.freedesktop.org/telepathy/telepathy-glib/-/merge_requests/3
|
|
|
|
|
# https://gitlab.freedesktop.org/telepathy/telepathy-glib/-/merge_requests/3.patch
|
|
|
|
|
Patch0: backport-telepathy-glib-test-cm-with-newer-glib.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
# Tests
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
|
|
|
|
|
BuildRequires: pkgconfig(dbus-1) >= %{dbus_ver}
|
|
|
|
|
BuildRequires: pkgconfig(dbus-glib-1) >= %{dbus_glib_ver}
|
|
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= %{glib_ver}
|
|
|
|
|
BuildRequires: pkgconfig(gobject-2.0) >= %{glib_ver}
|
|
|
|
|
BuildRequires: pkgconfig(gio-2.0) >= %{glib_ver}
|
|
|
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0) >= %{gobj_ver}
|
|
|
|
|
|
|
|
|
|
BuildRequires: gtk-doc >= 1.17
|
|
|
|
|
BuildRequires: vala
|
|
|
|
|
BuildRequires: vala-devel
|
|
|
|
|
BuildRequires: libxslt
|
|
|
|
|
BuildRequires: python3
|
|
|
|
|
# For tests/dbus
|
|
|
|
|
BuildRequires: dbus-daemon
|
2019-09-30 11:18:18 -04:00
|
|
|
|
2023-11-03 10:10:10 +08:00
|
|
|
%description
|
|
|
|
|
Telepathy-glib is the glib bindings for the telepathy unified framework
|
|
|
|
|
for all forms of real time conversations, including instant messaging, IRC,
|
|
|
|
|
voice calls and video calls.
|
2019-09-30 11:18:18 -04:00
|
|
|
|
2023-11-03 10:10:10 +08:00
|
|
|
%package vala
|
|
|
|
|
Summary: Vala bindings for %{name}
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
Requires: vala
|
|
|
|
|
BuildArch: noarch
|
2019-09-30 11:18:18 -04:00
|
|
|
|
2023-11-03 10:10:10 +08:00
|
|
|
%description vala
|
|
|
|
|
Vala bindings for %{name}.
|
2019-09-30 11:18:18 -04:00
|
|
|
|
2023-11-03 10:10:10 +08:00
|
|
|
%package devel
|
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
Requires: %{name}-vala = %{version}-%{release}
|
|
|
|
|
Requires: telepathy-filesystem
|
2019-11-06 19:54:04 +08:00
|
|
|
|
2023-11-03 10:10:10 +08:00
|
|
|
%description devel
|
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
|
developing applications that use %{name}.
|
2019-09-30 11:18:18 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2023-11-03 10:10:10 +08:00
|
|
|
%autosetup -p1
|
|
|
|
|
|
2020-10-29 19:00:55 +08:00
|
|
|
# Explicitly switch to python3
|
2023-11-03 10:10:10 +08:00
|
|
|
touch timestamp
|
|
|
|
|
env LANG=C grep -rl python . | while read f
|
|
|
|
|
do
|
|
|
|
|
sed -i $f \
|
2020-10-29 19:00:55 +08:00
|
|
|
-e 's|/usr/bin/python$|/usr/bin/python3|' \
|
|
|
|
|
-e 's|/usr/bin/env[ \t]*python$|/usr/bin/python3|' \
|
|
|
|
|
%{nil}
|
2023-11-03 10:10:10 +08:00
|
|
|
# Explicitly set timestamp of the modified files to the same time
|
|
|
|
|
# so that autotool won't be called after configure
|
|
|
|
|
touch -r timestamp $f
|
|
|
|
|
done
|
|
|
|
|
# Also modify the following timestamp
|
|
|
|
|
touch -r timestamp config.h.in
|
|
|
|
|
|
2019-09-30 11:18:18 -04:00
|
|
|
%build
|
2023-11-03 10:10:10 +08:00
|
|
|
%configure \
|
|
|
|
|
--enable-static=no \
|
|
|
|
|
--disable-silent-rules \
|
|
|
|
|
--enable-introspection=yes \
|
|
|
|
|
--enable-vala-bindings=yes \
|
|
|
|
|
%{nil}
|
2020-10-29 19:00:55 +08:00
|
|
|
|
2023-11-03 10:10:10 +08:00
|
|
|
%{make_build}
|
2019-09-30 11:18:18 -04:00
|
|
|
|
|
|
|
|
%install
|
2023-11-03 10:10:10 +08:00
|
|
|
%{make_install}
|
|
|
|
|
find $RPM_BUILD_ROOT -name '*.la' -delete
|
2019-09-30 11:18:18 -04:00
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make check
|
|
|
|
|
|
2023-11-03 10:10:10 +08:00
|
|
|
%ldconfig_scriptlets
|
2019-09-30 11:18:18 -04:00
|
|
|
%files
|
2019-11-06 19:54:04 +08:00
|
|
|
%license COPYING
|
2023-11-03 10:10:10 +08:00
|
|
|
%doc AUTHORS NEWS README
|
|
|
|
|
%{_libdir}/libtelepathy-glib.so.0
|
|
|
|
|
%{_libdir}/libtelepathy-glib.so.0.*
|
|
|
|
|
%{_libdir}/girepository-1.0/TelepathyGLib-0.12.typelib
|
|
|
|
|
|
|
|
|
|
%files vala
|
|
|
|
|
%{_datadir}/vala/vapi/telepathy-glib.deps
|
|
|
|
|
%{_datadir}/vala/vapi/telepathy-glib.vapi
|
2019-09-30 11:18:18 -04:00
|
|
|
|
|
|
|
|
%files devel
|
2023-11-03 10:10:10 +08:00
|
|
|
%doc %{_datadir}/gtk-doc/html/%{name}/
|
|
|
|
|
%{_libdir}/libtelepathy-glib.so
|
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
%{_includedir}/telepathy-1.0/%{name}/
|
|
|
|
|
%{_datadir}/gir-1.0/TelepathyGLib-0.12.gir
|
2019-09-30 11:18:18 -04:00
|
|
|
|
|
|
|
|
%changelog
|
2023-11-03 10:10:10 +08:00
|
|
|
* Fri Nov 03 2023 liweigang <weigangli99@gmail.com> - 0.24.2-1
|
|
|
|
|
- update to version 0.24.2
|
|
|
|
|
|
2020-10-29 19:00:55 +08:00
|
|
|
* Wed Oct 21 2020 jinzhimin <jinzhimin2@huawei.com> - 0.24.1-12
|
|
|
|
|
- modify buildrequire to python3
|
|
|
|
|
|
2019-11-06 19:54:04 +08:00
|
|
|
* Mon Oct 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.24.1-11
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:modify the location of COPYING
|
|
|
|
|
|
2019-09-30 11:18:18 -04:00
|
|
|
* Sat Aug 31 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.24.1-10
|
|
|
|
|
- Package init
|