76 lines
2.1 KiB
RPMSpec
76 lines
2.1 KiB
RPMSpec
%global glib2_version 2.38.0
|
||
%global libsoup_version 2.47.3
|
||
|
||
# Packagers: This is the API version of libuhttpmock, as it allows
|
||
# for parallel installation of different major API versions (e.g. like
|
||
# GTK+ 2 and 3).
|
||
%global uhm_api_version 0.0
|
||
|
||
Name: uhttpmock
|
||
Version: 0.5.5
|
||
Release: 1
|
||
Summary: HTTP web service mocking library
|
||
License: LGPLv2
|
||
URL: https://gitlab.com/groups/uhttpmock
|
||
Source0: https://gitlab.freedesktop.org/pwithnall/uhttpmock/-/archive/%{version}/uhttpmock-%{version}.tar.bz2
|
||
|
||
BuildRequires: meson
|
||
BuildRequires: glib2-devel >= %{glib2_version}
|
||
BuildRequires: libsoup-devel >= %{libsoup_version}
|
||
BuildRequires: intltool
|
||
BuildRequires: gobject-introspection-devel
|
||
BuildRequires: gtk-doc
|
||
BuildRequires: vala
|
||
|
||
Requires: glib2%{?_isa} >= %{glib2_version}
|
||
Requires: libsoup%{?_isa} >= %{libsoup_version}
|
||
|
||
%description
|
||
uhttpmock is a project for mocking web service APIs which use HTTP or HTTPS.
|
||
It provides a library, libuhttpmock, which implements recording and
|
||
playback of HTTP request–response traces.
|
||
|
||
%package devel
|
||
Summary: Development files for %{name}
|
||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||
|
||
%description devel
|
||
This package contains libraries, header files and documentation for
|
||
developing applications that use %{name}.
|
||
|
||
%prep
|
||
%setup -q
|
||
|
||
%build
|
||
%meson -Dgtk_doc=true -Dintrospection=true -Dvapi=enabled
|
||
%meson_build
|
||
|
||
%check
|
||
%meson_test
|
||
|
||
%install
|
||
%meson_install
|
||
|
||
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
||
|
||
%ldconfig_scriptlets
|
||
|
||
%files
|
||
%license COPYING
|
||
%doc README NEWS AUTHORS
|
||
%{_libdir}/libuhttpmock-%{uhm_api_version}.so.0*
|
||
%{_libdir}/girepository-1.0/Uhm-%{uhm_api_version}.typelib
|
||
|
||
%files devel
|
||
%{_libdir}/libuhttpmock-%{uhm_api_version}.so
|
||
%{_includedir}/libuhttpmock-%{uhm_api_version}/
|
||
%{_libdir}/pkgconfig/libuhttpmock-%{uhm_api_version}.pc
|
||
%{_datadir}/gir-1.0/Uhm-%{uhm_api_version}.gir
|
||
%{_datadir}/vala/vapi/libuhttpmock-%{uhm_api_version}.deps
|
||
%{_datadir}/vala/vapi/libuhttpmock-%{uhm_api_version}.vapi
|
||
%doc %{_datadir}/gtk-doc/html/libuhttpmock-%{uhm_api_version}/
|
||
|
||
%changelog
|
||
* Mon Jan 02 2023 lin zhang <lin.zhang@turbolinux.com.cn> - 0.5.5-1
|
||
- Init Packaging
|