Initial package.
This commit is contained in:
parent
331da86cdc
commit
4cf1e2c408
BIN
uhttpmock-0.5.5.tar.bz2
Normal file
BIN
uhttpmock-0.5.5.tar.bz2
Normal file
Binary file not shown.
75
uhttpmock.spec
Normal file
75
uhttpmock.spec
Normal file
@ -0,0 +1,75 @@
|
||||
%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
|
||||
4
uhttpmock.yaml
Normal file
4
uhttpmock.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: gitlab
|
||||
src_repo: https://gitlab.com/uhttpmock/uhttpmock.git
|
||||
tag_prefix: ^v
|
||||
seperator: .
|
||||
Loading…
x
Reference in New Issue
Block a user