]>
Commit | Line | Data |
---|---|---|
c96b1dc3 JB |
1 | Summary: Mock hardware devices for creating unit tests |
2 | Summary(pl.UTF-8): Imitowanie urządzeń sprzętowych na potrzeby testów jednostkowych | |
3 | Name: umockdev | |
5402dc70 | 4 | Version: 0.15.5 |
9c7e9b80 | 5 | Release: 1 |
c96b1dc3 JB |
6 | License: LGPL v2.1+ |
7 | Group: Libraries | |
5f22412d JB |
8 | #Source0Download: https://github.com/martinpitt/umockdev/releases |
9 | Source0: https://github.com/martinpitt/umockdev/releases/download/%{version}/%{name}-%{version}.tar.xz | |
5402dc70 | 10 | # Source0-md5: d614799753d49ed5eff45e6eabcf0e10 |
c96b1dc3 | 11 | URL: https://github.com/martinpitt/umockdev |
c96b1dc3 JB |
12 | BuildRequires: glib2-devel >= 1:2.32.0 |
13 | BuildRequires: gobject-introspection-devel >= 1.32 | |
14 | BuildRequires: gtk-doc >= 1.14 | |
05afd7e3 | 15 | BuildRequires: libgudev-devel >= 232 |
a4e75fd8 JB |
16 | BuildRequires: meson |
17 | BuildRequires: ninja >= 1.5 | |
ded14442 | 18 | BuildRequires: python3 >= 1:3 |
05afd7e3 | 19 | BuildRequires: rpm-build >= 4.6 |
dba7b399 | 20 | BuildRequires: tar >= 1:1.22 |
c96b1dc3 | 21 | BuildRequires: udev-devel |
c96b1dc3 | 22 | BuildRequires: vala >= 2:0.16.1 |
dba7b399 | 23 | BuildRequires: xz |
c96b1dc3 JB |
24 | Requires: glib2 >= 1:2.32.0 |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | umockdev mocks Linux devices for creating integration tests for | |
29 | hardware related libraries and programs. It also provides tools to | |
30 | record the properties and behaviour of particular devices, and to run | |
31 | a program or test suite under a test bed with the previously recorded | |
32 | devices loaded. This allows developers of software like gphoto or | |
33 | libmtp to receive these records in bug reports and recreate the | |
34 | problem on their system without having access to the affected | |
35 | hardware. | |
36 | ||
37 | %description -l pl.UTF-8 | |
38 | umockdev imituje urządzenia pod Linuksem w celu tworzenia testów | |
39 | integracyjnych dla bibliotek i programów związanych ze sprzętem. | |
40 | Dostarcza także narzędzia do nagrywania właściwości i zachowania | |
41 | określonych urządzeń oraz uruchamiania programów lub testów w | |
42 | środowisku testowym z wczytanymi wcześniej nagranymi danymi | |
ae8a26dd ER |
43 | urządzenia. Pozwala to programistom z projektów takich jak gphoto czy |
44 | libmtp otrzymywać takie nagrania w zgłoszeniach błędów i odtwarzać we | |
45 | własnym systemie bez dostępu do sprzętu dotkniętego problemem. | |
c96b1dc3 JB |
46 | |
47 | %package devel | |
48 | Summary: Header files for umockdev library | |
49 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki umockdev | |
50 | Group: Development/Libraries | |
51 | Requires: %{name} = %{version}-%{release} | |
52 | Requires: glib2-devel >= 1:2.32.0 | |
a4e75fd8 | 53 | Obsoletes: umockdev-static < 0.15 |
c96b1dc3 JB |
54 | |
55 | %description devel | |
56 | Header files for umockdev library. | |
57 | ||
58 | %description devel -l pl.UTF-8 | |
59 | Pliki nagłówkowe biblioteki umockdev. | |
60 | ||
c96b1dc3 JB |
61 | %package -n vala-umockdev |
62 | Summary: Vala API for umockdev library | |
63 | Summary(pl.UTF-8): API języka Vala do biblioteki umockdev | |
64 | Group: Development/Libraries | |
65 | Requires: %{name}-devel = %{version}-%{release} | |
66 | Requires: vala >= 2:0.16.1 | |
ae8a26dd | 67 | BuildArch: noarch |
c96b1dc3 JB |
68 | |
69 | %description -n vala-umockdev | |
70 | Vala API for umockdev library. | |
71 | ||
72 | %description -n vala-umockdev -l pl.UTF-8 | |
73 | API języka Vala do biblioteki umockdev. | |
74 | ||
75 | %package apidocs | |
76 | Summary: umockdev API documentation | |
77 | Summary(pl.UTF-8): Dokumentacja API biblioteki umockdev | |
78 | Group: Documentation | |
348eb0f1 | 79 | BuildArch: noarch |
c96b1dc3 JB |
80 | |
81 | %description apidocs | |
82 | API documentation for umockdev library. | |
83 | ||
84 | %description apidocs -l pl.UTF-8 | |
85 | Dokumentacja API biblioteki umockdev. | |
86 | ||
87 | %prep | |
88 | %setup -q | |
89 | ||
90 | %build | |
a4e75fd8 JB |
91 | %meson build \ |
92 | -Dgtk_doc=true | |
93 | ||
94 | %ninja_build -C build | |
c96b1dc3 JB |
95 | |
96 | %install | |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
a4e75fd8 | 99 | %ninja_install -C build |
c96b1dc3 JB |
100 | |
101 | %clean | |
102 | rm -rf $RPM_BUILD_ROOT | |
103 | ||
104 | %post -p /sbin/ldconfig | |
105 | %postun -p /sbin/ldconfig | |
106 | ||
107 | %files | |
108 | %defattr(644,root,root,755) | |
109 | %doc NEWS README.rst docs/script-format.txt | |
110 | %attr(755,root,root) %{_bindir}/umockdev-record | |
111 | %attr(755,root,root) %{_bindir}/umockdev-run | |
112 | %attr(755,root,root) %{_bindir}/umockdev-wrapper | |
113 | %attr(755,root,root) %{_libdir}/libumockdev.so.*.*.* | |
114 | %attr(755,root,root) %ghost %{_libdir}/libumockdev.so.0 | |
115 | %attr(755,root,root) %{_libdir}/libumockdev-preload.so.*.*.* | |
116 | %attr(755,root,root) %ghost %{_libdir}/libumockdev-preload.so.0 | |
117 | %{_libdir}/girepository-1.0/UMockdev-1.0.typelib | |
118 | ||
119 | %files devel | |
120 | %defattr(644,root,root,755) | |
121 | %attr(755,root,root) %{_libdir}/libumockdev.so | |
a4e75fd8 | 122 | %attr(755,root,root) %{_libdir}/libumockdev-preload.so |
c96b1dc3 JB |
123 | %{_datadir}/gir-1.0/UMockdev-1.0.gir |
124 | %{_includedir}/umockdev-1.0 | |
125 | %{_pkgconfigdir}/umockdev-1.0.pc | |
126 | ||
c96b1dc3 JB |
127 | %files -n vala-umockdev |
128 | %defattr(644,root,root,755) | |
129 | %{_datadir}/vala/vapi/umockdev-1.0.vapi | |
130 | ||
131 | %files apidocs | |
132 | %defattr(644,root,root,755) | |
133 | %{_gtkdocdir}/umockdev |