Package init

This commit is contained in:
overweight 2019-09-30 11:18:20 -04:00
commit 2548c27753
2 changed files with 82 additions and 0 deletions

Binary file not shown.

82
telepathy-logger.spec Normal file
View File

@ -0,0 +1,82 @@
Name: telepathy-logger
Version: 0.8.2
Release: 9
Summary: Centralized Logging for the Telepathy Framework
License: LGPLv2+
URL: https://telepathy.freedesktop.org/components/telepathy-logger/
Source0: https://telepathy.freedesktop.org/releases/telepathy-logger/%{name}-%{version}.tar.bz2
BuildRequires: dbus-devel dbus-glib-devel glib2-devel gnome-doc-utils
BuildRequires: gobject-introspection-devel intltool libxml2-devel
BuildRequires: sqlite-devel telepathy-glib-devel git python python-twisted
Requires: telepathy-filesystem
%description
telepathy-logger is a daemon that centralizes the logging of all
communication within the Telepathy framework. This prevents the
UIs from having to implement their own solution that would end
up into having multiple incomplete databases.
%package devel
Summary: Header files for telepathy-logger
Requires: %{name} = %{version}-%{release}
%description devel
Header files for telepathy-logger
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
%if "%{_libdir}" != "/usr/lib"
sed -i.rpath -e 's|"/lib /usr/lib|"/%{_lib} %{_libdir}|' configure
%endif
%build
%configure --enable-introspection=yes
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%make_build
%install
%make_install
%delete_la
%check
make check
%post -p /sbin/ldconfig
%postun
/sbin/ldconfig
glib-compile-schemas --allow-any-name %{_datadir}/glib-2.0/schemas &>/dev/null ||:
%posttrans
glib-compile-schemas --allow-any-name %{_datadir}/glib-2.0/schemas &>/dev/null ||:
%files
%defattr(-,root,root)
%doc README COPYING
%{_libdir}/*.so.*
%{_libdir}/girepository-1.0/*.typelib
%{_libexecdir}/telepathy-logger
%{_datadir}/dbus-1/services/*.service
%{_datadir}/telepathy/clients/Logger.client
%files devel
%defattr(-,root,root)
%{_libdir}/*.a
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gir-1.0/*.gir
%{_includedir}/telepathy-logger-0.2/telepathy-logger/*.h
%files help
%defattr(-,root,root)
%doc NEWS
%{_datadir}/glib-2.0/schemas/*.xml
%{_datadir}/gtk-doc/html/telepathy-logger/*
%changelog
* Mon Sep 2 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.8.2-9
- Package init