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