!1 Init Packaging, Add source files.

From: @dwl301 
Reviewed-by: @zhang__3125 
Signed-off-by: @zhang__3125
This commit is contained in:
openeuler-ci-bot 2023-01-30 08:10:47 +00:00 committed by Gitee
commit 5c0f2e3aa6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 77 additions and 0 deletions

BIN
d-spy-1.4.0.tar.xz Normal file

Binary file not shown.

73
d-spy.spec Normal file
View File

@ -0,0 +1,73 @@
Name: d-spy
Version: 1.4.0
Release: 1
Summary: D-Bus explorer
License: GPLv3+ and LGPLv3+
URL: https://gitlab.gnome.org/GNOME/d-spy
Source0: https://download.gnome.org/sources/d-spy/1.4/d-spy-%{version}.tar.xz
BuildRequires: gcc
BuildRequires: meson
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(gtk4)
BuildRequires: pkgconfig(libadwaita-1)
BuildRequires: /usr/bin/appstream-util
BuildRequires: /usr/bin/desktop-file-validate
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%description
D-Spy is a tool to explore and test end-points and interfaces on the System or
Session D-Bus. You can also connect to D-Bus peers by address. D-Spy was
originally part of GNOME Builder.
%package libs
Summary: Libraries for %{name}
%description libs
The %{name}-libs package contains %{name} shared libraries.
%package devel
Summary: Development files for %{name}
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%autosetup -p1
%build
%meson
%meson_build
%install
%meson_install
%check
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/org.gnome.dspy.appdata.xml
desktop-file-validate %{buildroot}%{_datadir}/applications/org.gnome.dspy.desktop
%files
%license COPYING
%doc NEWS
%{_bindir}/d-spy
%{_datadir}/appdata/org.gnome.dspy.appdata.xml
%{_datadir}/applications/org.gnome.dspy.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.dspy.gschema.xml
%{_datadir}/icons/hicolor/scalable/apps/org.gnome.dspy*.svg
%{_datadir}/icons/hicolor/symbolic/apps/org.gnome.dspy-symbolic.svg
%files libs
%license COPYING.lgpl3
%{_libdir}/libdspy-1.so.1*
%files devel
%{_includedir}/dspy-1/
%{_libdir}/libdspy-1.so
%{_libdir}/pkgconfig/dspy-1.pc
%changelog
* Mon Jan 02 2023 lin zhang <lin.zhang@turbolinux.com.cn> - 1.4.0-1
- Init Packaging

4
d-spy.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: gitlab.gnome
src_repo: d-spy
tag_prefix: "^"
seperator: "."