libgovirt/libgovirt.spec

82 lines
2.1 KiB
RPMSpec
Raw Normal View History

2019-12-12 17:35:26 +08:00
Name: libgovirt
2022-12-02 16:42:13 +08:00
Version: 0.3.9
Release: 2
2019-12-12 17:35:26 +08:00
Summary: A GObject-based library to access oVirt REST API
License: LGPLv2+
2022-12-02 16:42:13 +08:00
URL: https://gitlab.gnome.org/GNOME/libgovirt
2019-12-12 17:35:26 +08:00
Source0: http://ftp.gnome.org/pub/GNOME/sources/libgovirt/0.3/%{name}-%{version}.tar.xz
2022-12-02 16:42:13 +08:00
Patch1: 0001-Fix-i18n-generation.patch
Patch2: 0002-Suppress-cast-align-error.patch
2019-12-12 17:35:26 +08:00
2022-12-02 16:42:13 +08:00
BuildRequires: glib2-devel intltool rest-devel >= 0.9.1
2019-12-12 17:35:26 +08:00
BuildRequires: gobject-introspection-devel glib-networking dconf gnupg2
2022-12-02 16:42:13 +08:00
BuildRequires: meson
2019-12-12 17:35:26 +08:00
%description
GoVirt is a GObject wrapper for the oVirt REST API [1]. It will
only provide very basic functionality as the goal is to
autogenerate a full wrapper as it is already done for the python
bindings.
%package devel
Summary: Development files for libgovirt
Requires: %{name} = %{version}-%{release} pkgconfig glib2-devel
%description devel
The libgovirt-devel package contains development files for applications
that use libgovirt.
%prep
%autosetup -n %{name}-%{version} -p1
%build
2022-12-02 16:42:13 +08:00
%meson
%meson_build
2019-12-12 17:35:26 +08:00
%install
2022-12-02 16:42:13 +08:00
%meson_install
2019-12-12 17:35:26 +08:00
%delete_la_and_a
%find_lang %{name} --with-gnome
%check
2022-12-02 16:42:13 +08:00
%meson_test
2019-12-12 17:35:26 +08:00
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files -f %{name}.lang
%doc AUTHORS COPYING MAINTAINERS README
%{_libdir}/%{name}.so.2*
%{_libdir}/girepository-1.0/GoVirt-1.0.typelib
%files devel
%{_libdir}/%{name}.so
%dir %{_includedir}/govirt-1.0/
%dir %{_includedir}/govirt-1.0/govirt/
%{_includedir}/govirt-1.0/govirt/*.h
%{_libdir}/pkgconfig/govirt-1.0.pc
%{_datadir}/gir-1.0/GoVirt-1.0.gir
%changelog
* Mon Feb 27 2023 laokz <zhangkai@iscas.ac.cn> - 0.3.9-2
- Backport upstream patch to fix cast-align error on some arches
2022-12-02 16:42:13 +08:00
* Fri Dec 2 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 0.3.9-1
- Upgrade to version 0.3.9
2022-06-16 18:14:55 +08:00
* Thu Jun 16 2022 SimpleUpdate Robot <tc@openeuler.org> - 0.3.8-1
- Upgrade to version 0.3.8
2020-05-22 18:52:31 +08:00
* Fri May 22 2020 huanghaitao<huanghaitao8@huawei.com> - 0.3.4-11
- Update tests certificates to fix test error
2020-01-16 17:49:39 +08:00
* Fri Jan 10 2020 yangjian<yangjian79@huawei.com> - 0.3.4-10
- Change the Source to valid address
* Thu Dec 12 2019 Jiangping Hu <hujiangping@huawei.com> - 0.3.4-9
2019-12-12 17:35:26 +08:00
- Package init