]>
Commit | Line | Data |
---|---|---|
7c02d3df JB |
1 | # |
2 | # Conditional build: | |
8ba816ea | 3 | %bcond_without apidocs # gi-docgen based API documentation |
2a0f40d5 | 4 | %bcond_without vala # Vala bindings |
214c6a78 | 5 | |
71402369 JB |
6 | Summary: GObject-based SSDP (Simple Service Discovery Protocol) library |
7 | Summary(pl.UTF-8): Biblioteka SSDP (Simple Service Discovery Protocol) oparta na GObject | |
2b51c964 | 8 | Name: gssdp |
8ba816ea JB |
9 | # note: 1.4.x is stable, 1.5.x unstable |
10 | Version: 1.4.0.1 | |
9c954a2e | 11 | Release: 1 |
f90f18b8 | 12 | License: LGPL v2+ |
2b51c964 | 13 | Group: Libraries |
8ba816ea JB |
14 | Source0: https://download.gnome.org/sources/gssdp/1.4/%{name}-%{version}.tar.xz |
15 | # Source0-md5: aad066cf237f2f4de8ebf82de4142f27 | |
c39fefa0 | 16 | URL: https://wiki.gnome.org/Projects/GUPnP |
3b97e52a | 17 | BuildRequires: docbook-dtd412-xml |
8ba816ea | 18 | %{?with_apidocs:BuildRequires: gi-docgen >= 2021.1} |
2b3aad2b | 19 | BuildRequires: glib2-devel >= 1:2.54 |
00a4c903 | 20 | BuildRequires: gobject-introspection-devel >= 1.36.0 |
8ba816ea | 21 | BuildRequires: gtk4-devel >= 4 |
ae975581 | 22 | BuildRequires: libsoup-devel >= 2.26.1 |
8ba816ea | 23 | BuildRequires: meson >= 0.54.0 |
0355d2e3 | 24 | BuildRequires: ninja >= 1.5 |
f90f18b8 | 25 | BuildRequires: pkgconfig |
8ba816ea | 26 | BuildRequires: rpm-build >= 4.6 |
3f256248 | 27 | BuildRequires: rpmbuild(macros) >= 1.736 |
28ffac47 | 28 | BuildRequires: tar >= 1:1.22 |
00a4c903 | 29 | %{?with_vala:BuildRequires: vala >= 2:0.20} |
28ffac47 | 30 | BuildRequires: xz |
2b3aad2b | 31 | Requires: glib2 >= 1:2.54 |
2a466a6a | 32 | Requires: libsoup >= 2.26.1 |
2b51c964 | 33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
34 | ||
35 | %description | |
71402369 JB |
36 | GSSDP is a GObject-based API that implements resource discovery and |
37 | announcement over SSDP (Simple Service Discovery Protocol). | |
2b51c964 | 38 | |
f90f18b8 | 39 | %description -l pl.UTF-8 |
71402369 JB |
40 | GSSDP to oparte na bibliotece GObject API implementujące wykrywanie i |
41 | rozgłaszanie zasobów przy użyciu protokołu SSDP (Simple Service | |
42 | Discovery Protocol). | |
f90f18b8 | 43 | |
0355d2e3 JB |
44 | %package sniffer |
45 | Summary: Graphical SSDP sniffer | |
46 | Summary(pl.UTF-8): Graficzny sniffer SSDP | |
47 | Group: X11/Applications/Networking | |
48 | Requires: %{name} = %{version}-%{release} | |
8ba816ea | 49 | Requires: gtk4 >= 4 |
0355d2e3 JB |
50 | |
51 | %description sniffer | |
52 | Graphical SSDP sniffer. | |
53 | ||
54 | %description sniffer -l pl.UTF-8 | |
55 | Graficzny sniffer SSDP. | |
56 | ||
2b51c964 | 57 | %package devel |
71402369 JB |
58 | Summary: Header files for GSSDP |
59 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GSSDP | |
2b51c964 | 60 | Group: Development/Libraries |
61 | Requires: %{name} = %{version}-%{release} | |
2b3aad2b | 62 | Requires: glib2-devel >= 1:2.54 |
ae975581 | 63 | Requires: libsoup-devel >= 2.26.1 |
2b51c964 | 64 | |
65 | %description devel | |
71402369 | 66 | This package contains header files for GSSDP library. |
2b51c964 | 67 | |
f90f18b8 | 68 | %description devel -l pl.UTF-8 |
71402369 | 69 | Ten pakiet zawiera pliki nagłówkowe biblioteki GSSDP. |
f90f18b8 | 70 | |
2b51c964 | 71 | %package static |
71402369 JB |
72 | Summary: Static GSSDP library |
73 | Summary(pl.UTF-8): Statyczna biblioteka GSSDP | |
2b51c964 | 74 | Group: Development/Libraries |
75 | Requires: %{name}-devel = %{version}-%{release} | |
76 | ||
77 | %description static | |
71402369 | 78 | Static GSSDP library. |
2b51c964 | 79 | |
80 | %description static -l pl.UTF-8 | |
71402369 | 81 | Statyczna biblioteka GSSDP. |
2b51c964 | 82 | |
83 | %package apidocs | |
71402369 JB |
84 | Summary: GSSDP API documentation |
85 | Summary(pl.UTF-8): Dokumentacja API GSSDP | |
2b51c964 | 86 | Group: Documentation |
87 | Requires: gtk-doc-common | |
00dc5a84 | 88 | BuildArch: noarch |
2b51c964 | 89 | |
90 | %description apidocs | |
71402369 | 91 | GSSDP API documentation. |
2b51c964 | 92 | |
93 | %description apidocs -l pl.UTF-8 | |
71402369 | 94 | Dokumentacja API GSSDP. |
2b51c964 | 95 | |
7c02d3df JB |
96 | %package -n vala-gssdp |
97 | Summary: Vala binding for GSSDP library | |
98 | Summary(pl.UTF-8): Wiązanie języka Vala do biblioteki GSSDP | |
99 | Group: Development/Libraries | |
100 | Requires: %{name}-devel = %{version}-%{release} | |
00a4c903 | 101 | Requires: vala >= 2:0.20 |
214c6a78 | 102 | BuildArch: noarch |
7c02d3df JB |
103 | |
104 | %description -n vala-gssdp | |
105 | Vala binding for GSSDP library. | |
106 | ||
107 | %description -n vala-gssdp -l pl.UTF-8 | |
108 | Wiązanie języka Vala do biblioteki GSSDP. | |
109 | ||
2b51c964 | 110 | %prep |
111 | %setup -q | |
112 | ||
113 | %build | |
0355d2e3 | 114 | %meson build \ |
8ba816ea | 115 | %{?with_apidocs:-Dgtk_doc=true} |
0355d2e3 JB |
116 | |
117 | %ninja_build -C build | |
2b51c964 | 118 | |
119 | %install | |
120 | rm -rf $RPM_BUILD_ROOT | |
121 | ||
0355d2e3 | 122 | %ninja_install -C build |
fac5c0e3 | 123 | |
8ba816ea JB |
124 | %if %{with apidocs} |
125 | # FIXME: where to package gi-docgen generated docs? | |
126 | install -d $RPM_BUILD_ROOT%{_gtkdocdir} | |
127 | %{__mv} $RPM_BUILD_ROOT%{_docdir}/gssdp-1.2/reference/* $RPM_BUILD_ROOT%{_gtkdocdir} | |
128 | %endif | |
129 | ||
2b51c964 | 130 | %clean |
131 | rm -rf $RPM_BUILD_ROOT | |
132 | ||
133 | %post -p /sbin/ldconfig | |
134 | %postun -p /sbin/ldconfig | |
135 | ||
136 | %files | |
137 | %defattr(644,root,root,755) | |
8ba816ea | 138 | %doc AUTHORS NEWS README.md |
0355d2e3 JB |
139 | %attr(755,root,root) %{_libdir}/libgssdp-1.2.so.*.*.* |
140 | %attr(755,root,root) %ghost %{_libdir}/libgssdp-1.2.so.0 | |
141 | %{_libdir}/girepository-1.0/GSSDP-1.2.typelib | |
142 | ||
143 | %files sniffer | |
144 | %defattr(644,root,root,755) | |
a0028d9a | 145 | %attr(755,root,root) %{_bindir}/gssdp-device-sniffer |
2b51c964 | 146 | |
2b51c964 | 147 | %files devel |
148 | %defattr(644,root,root,755) | |
0355d2e3 JB |
149 | %attr(755,root,root) %{_libdir}/libgssdp-1.2.so |
150 | %{_datadir}/gir-1.0/GSSDP-1.2.gir | |
151 | %{_includedir}/gssdp-1.2 | |
152 | %{_pkgconfigdir}/gssdp-1.2.pc | |
2b51c964 | 153 | |
154 | %files static | |
155 | %defattr(644,root,root,755) | |
0355d2e3 | 156 | %{_libdir}/libgssdp-1.2.a |
2b51c964 | 157 | |
8ba816ea | 158 | %if %{with apidocs} |
2b51c964 | 159 | %files apidocs |
160 | %defattr(644,root,root,755) | |
8ba816ea JB |
161 | %{_gtkdocdir}/GSSDP |
162 | %endif | |
7c02d3df JB |
163 | |
164 | %if %{with vala} | |
165 | %files -n vala-gssdp | |
166 | %defattr(644,root,root,755) | |
0355d2e3 JB |
167 | %{_datadir}/vala/vapi/gssdp-1.2.deps |
168 | %{_datadir}/vala/vapi/gssdp-1.2.vapi | |
7c02d3df | 169 | %endif |