commit f40cb908988e9283037d244e66c10b5bd2b4d394a9c7f9015ad365f73c117cfe Author: Michal Suchanek Date: Mon Jan 18 12:56:05 2021 +0000 Accepting request 860520 from home:badshah400:branches:hardware (New dependency for updated switcheroo-control) umockdev: Mock hardware devices for creating unit tests and bug reporting OBS-URL: https://build.opensuse.org/request/show/860520 OBS-URL: https://build.opensuse.org/package/show/hardware/umockdev?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/umockdev-0.15.4.tar.xz b/umockdev-0.15.4.tar.xz new file mode 100644 index 0000000..7482be6 --- /dev/null +++ b/umockdev-0.15.4.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:af4b885ea6fecc52e4aeeb3989b2c09f7e0e81531fb8a7183ca9c1ab37976826 +size 456984 diff --git a/umockdev.changes b/umockdev.changes new file mode 100644 index 0000000..36efc9e --- /dev/null +++ b/umockdev.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Jan 5 14:42:00 UTC 2021 - Atri Bhattacharya + +- Initial package. diff --git a/umockdev.spec b/umockdev.spec new file mode 100644 index 0000000..efd2d7e --- /dev/null +++ b/umockdev.spec @@ -0,0 +1,127 @@ +# +# spec file for package umockdev +# +# Copyright (c) 2021 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define shlib libumockdev0 +%define shlibpre libumockdev-preload0 +Name: umockdev +Version: 0.15.4 +Release: 0 +Summary: Mock hardware devices for creating unit tests and bug reporting +License: LGPL-2.1-or-later +URL: https://github.com/martinpitt/umockdev/ +Source: https://github.com/martinpitt/umockdev/releases/download/%{version}/%{name}-%{version}.tar.xz +BuildRequires: cmake +BuildRequires: gtk-doc +BuildRequires: meson +BuildRequires: pkgconfig +BuildRequires: python3 +BuildRequires: vala +BuildRequires: pkgconfig(gio-2.0) +BuildRequires: pkgconfig(glib-2.0) +BuildRequires: pkgconfig(gobject-introspection-1.0) +BuildRequires: pkgconfig(gudev-1.0) +BuildRequires: pkgconfig(libudev) + +%description +umockdev mocks Linux devices for creating integration tests for hardware +related libraries and programs. It also provides tools to record the properties +and behaviour of particular devices, and to run a program or test suite under a +test bed with the previously recorded devices loaded. + +%package -n %{shlib} +Summary: Shared library for umockdev + +%description -n %{shlib} +umockdev mocks Linux devices for creating integration tests for hardware +related libraries and programs. + +This package provides the shared library for %{name}. + +%package -n %{shlibpre} +Summary: Shared library for umockdev-preload + +%description -n %{shlibpre} +umockdev mocks Linux devices for creating integration tests for hardware +related libraries and programs. + +This package provides the shared library for umockdev-preload. + +%package devel +Summary: Headers and sources for developing apps with umockdev +Requires: %{shlibpre} = %{version} +Requires: %{shlib} = %{version} +Requires: typelib-1_0-UMockdev-1_0 = %{version} + +%description devel +umockdev mocks Linux devices for creating integration tests for hardware +related libraries and programs. + +This package provides the headers and sources needed to build software against +umockdev. + +%package -n typelib-1_0-UMockdev-1_0 +Summary: Introspection bindings for umockdev -- a hardware mocking tool + +%description -n typelib-1_0-UMockdev-1_0 +umockdev mocks Linux devices for creating integration tests for hardware +related libraries and programs. + +This package provides the GObject Introspection bindings for the library +umockdev. + +%prep +%setup -q + +%build +%meson +%meson_build + +%install +%meson_install + +%post -n %{shlib} -p /sbin/ldconfig +%postun -n %{shlib} -p /sbin/ldconfig +%post -n %{shlibpre} -p /sbin/ldconfig +%postun -n %{shlibpre} -p /sbin/ldconfig + +%files +%license COPYING +%doc NEWS README.rst +%{_bindir}/* + +%files -n %{shlib} +%license COPYING +%{_libdir}/libumockdev.so.* + +%files -n %{shlibpre} +%license COPYING +%{_libdir}/libumockdev-preload.so.* + +%files devel +%license COPYING +%{_includedir}/umockdev-1.0/ +%{_libdir}/*.so +%{_libdir}/pkgconfig/*.pc +%{_datadir}/gir-1.0/*.gir +%dir %{_datadir}/vala/vapi +%{_datadir}/vala/vapi/*.vapi + +%files -n typelib-1_0-UMockdev-1_0 +%{_libdir}/girepository-1.0/UMockdev-1.0.typelib + +%changelog