]>
Commit | Line | Data |
---|---|---|
aeb29a9d JB |
1 | Summary: Explore the D-Bus |
2 | Summary(pl.UTF-8): Eksplorator szyny D-Bus | |
3 | Name: dspy | |
4 | Version: 1.0.0 | |
5 | Release: 1 | |
6 | License: GPL v3+ | |
7 | Group: Development/Tools | |
8 | Source0: https://download.gnome.org/sources/dspy/1.0/%{name}-%{version}.tar.xz | |
9 | # Source0-md5: 09f3cd52ff0045ceea746501b09f1532 | |
10 | URL: https://gitlab.gnome.org/GNOME/d-spy | |
11 | BuildRequires: glib2-devel >= 1:2.68 | |
12 | BuildRequires: gtk4-devel >= 4.2 | |
13 | BuildRequires: libadwaita-devel >= 1.0 | |
14 | BuildRequires: meson >= 0.56.0 | |
15 | BuildRequires: ninja >= 1.5 | |
16 | BuildRequires: pkgconfig | |
17 | BuildRequires: rpmbuild(macros) >= 1.736 | |
18 | BuildRequires: tar >= 1:1.22 | |
19 | BuildRequires: xz | |
20 | Requires(post,postun): glib2 >= 1:2.68 | |
21 | # TODO: use gtk4 variant | |
22 | Requires(post,postun): gtk-update-icon-cache | |
23 | Requires: %{name}-libs = %{version}-%{release} | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | D-Spy is a tool to explore and test end-points and interfaces on the | |
28 | System or Session D-Bus. You can also connect to D-Bus peers by | |
29 | address. D-Spy was originally part of GNOME Builder. | |
30 | ||
31 | %description -l pl.UTF-8 | |
32 | D-Spy to narzędzie do badania i testowania końcówek oraz interfejsów | |
33 | systemowej lub sesyjnej szyny D-Bus. Pozwala także łączyć się z | |
34 | partnerami szyny po adresie. D-Spy pierwotnie był częścią projektu | |
35 | GNOME Builder. | |
36 | ||
37 | %package libs | |
38 | Summary: D-Spy shared library | |
39 | Summary(pl.UTF-8): Biblioteka współdzielona D-Spy | |
40 | Group: Libraries | |
41 | Requires: glib2 >= 1:2.68 | |
42 | Requires: gtk4 >= 4.2 | |
43 | Requires: libadwaita >= 1.0 | |
44 | ||
45 | %description libs | |
46 | D-Spy shared library. | |
47 | ||
48 | %description libs -l pl.UTF-8 | |
49 | Biblioteka współdzielona D-Spy. | |
50 | ||
51 | %package devel | |
52 | Summary: Header files for D-Spy library | |
53 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki D-Spy | |
54 | Group: Development/Libraries | |
55 | Requires: %{name}-libs = %{version}-%{release} | |
56 | Requires: glib2-devel >= 1:2.68 | |
57 | Requires: gtk4-devel >= 4.2 | |
58 | ||
59 | %description devel | |
60 | Header files for D-Spy library. | |
61 | ||
62 | %description devel -l pl.UTF-8 | |
63 | Pliki nagłówkowe biblioteki D-Spy. | |
64 | ||
65 | %package static | |
66 | Summary: D-Spy static library | |
67 | Summary(pl.UTF-8): Biblioteka statyczna D-Spy | |
68 | Group: Development/Libraries | |
69 | Requires: %{name}-devel = %{version}-%{release} | |
70 | ||
71 | %description static | |
72 | D-Spy static library. | |
73 | ||
74 | %description static -l pl.UTF-8 | |
75 | Biblioteka statyczna D-Spy. | |
76 | ||
77 | %prep | |
78 | %setup -q | |
79 | ||
80 | %build | |
81 | %meson build | |
82 | ||
83 | %ninja_build -C build | |
84 | ||
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %ninja_install -C build | |
89 | ||
90 | %clean | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
93 | %post | |
94 | %glib_compile_schemas | |
95 | %update_icon_cache hicolor | |
96 | ||
97 | %postun | |
98 | %glib_compile_schemas | |
99 | %update_icon_cache hicolor | |
100 | ||
101 | %post libs -p /sbin/ldconfig | |
102 | %postun libs -p /sbin/ldconfig | |
103 | ||
104 | %files | |
105 | %defattr(644,root,root,755) | |
106 | %attr(755,root,root) %{_bindir}/d-spy | |
107 | %{_datadir}/appdata/org.gnome.dspy.appdata.xml | |
108 | %{_datadir}/glib-2.0/schemas/org.gnome.dspy.gschema.xml | |
109 | %{_desktopdir}/org.gnome.dspy.desktop | |
110 | %{_iconsdir}/hicolor/scalable/apps/org.gnome.dspy.svg | |
111 | %{_iconsdir}/hicolor/scalable/apps/org.gnome.dspy.devel.svg | |
112 | %{_iconsdir}/hicolor/symbolic/apps/org.gnome.dspy-symbolic.svg | |
113 | ||
114 | %files libs | |
115 | %defattr(644,root,root,755) | |
116 | %attr(755,root,root) %{_libdir}/libdspy-1.so.*.*.* | |
117 | %attr(755,root,root) %ghost %{_libdir}/libdspy-1.so.1 | |
118 | ||
119 | %files devel | |
120 | %defattr(644,root,root,755) | |
121 | %attr(755,root,root) %{_libdir}/libdspy-1.so | |
122 | %{_includedir}/dspy-1 | |
123 | ||
124 | %files static | |
125 | %defattr(644,root,root,755) | |
126 | %{_libdir}/libdspy-1.a |