]>
Commit | Line | Data |
---|---|---|
fa8d29b7 JB |
1 | # |
2 | # Conditional build: | |
e7cd5e15 | 3 | %bcond_without apidocs # gtk-doc based API documentation |
fa8d29b7 | 4 | %bcond_without vala # Vala API |
ce2eaf00 | 5 | |
ec0eb07c JB |
6 | Summary: UPnP library based on GObject and libsoup |
7 | Summary(pl.UTF-8): Biblioteka UPnP oparta na bibliotekach GObject i libsoup | |
aad1ecd9 | 8 | Name: gupnp |
b0f87e52 | 9 | # note: 1.4.x is stable libsoup 2.x based version; for libsoup3 based 1.6+ see gupnp1.6.spec |
000b5107 | 10 | Version: 1.4.4 |
67768090 | 11 | Release: 1 |
3c551657 | 12 | License: LGPL v2+ |
aad1ecd9 | 13 | Group: Libraries |
e7cd5e15 | 14 | Source0: https://download.gnome.org/sources/gupnp/1.4/%{name}-%{version}.tar.xz |
000b5107 | 15 | # Source0-md5: f73c965454a5a37c1b18ca8a11bebbbf |
3bbf163e | 16 | URL: https://wiki.gnome.org/Projects/GUPnP |
63e87f6a | 17 | BuildRequires: docbook-dtd412-xml |
18 | BuildRequires: docbook-dtd44-xml | |
000b5107 | 19 | BuildRequires: docbook-dtd45-xml |
9d51683b | 20 | BuildRequires: docbook-style-xsl |
e5d575d6 | 21 | BuildRequires: glib2-devel >= 1:2.66 |
ff38dd76 | 22 | BuildRequires: gobject-introspection-devel >= 1.36.0 |
e7cd5e15 JB |
23 | BuildRequires: gssdp-devel >= 1.3.0 |
24 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.14} | |
7ce3b8b9 | 25 | BuildRequires: libsoup-devel >= 2.48.0 |
3c551657 | 26 | BuildRequires: libuuid-devel >= 1.36 |
6705dc39 | 27 | BuildRequires: libxml2-devel >= 1:2.6.30 |
9d51683b | 28 | BuildRequires: libxslt-progs |
e7cd5e15 | 29 | BuildRequires: meson >= 0.54.0 |
15b1a2f7 | 30 | BuildRequires: ninja >= 1.5 |
3c551657 | 31 | BuildRequires: pkgconfig |
e7cd5e15 | 32 | BuildRequires: rpm-build >= 4.6 |
63e87f6a | 33 | BuildRequires: rpm-pythonprov |
15b1a2f7 | 34 | BuildRequires: rpmbuild(macros) >= 1.736 |
204e4a43 | 35 | BuildRequires: sed >= 4.0 |
446a531e | 36 | BuildRequires: tar >= 1:1.22 |
ff38dd76 | 37 | %{?with_vala:BuildRequires: vala >= 2:0.20} |
e7cd5e15 | 38 | %{?with_vala:BuildRequires: vala-gssdp >= 1.3.0} |
446a531e | 39 | BuildRequires: xz |
e5d575d6 | 40 | Requires: glib2 >= 1:2.66 |
e7cd5e15 | 41 | Requires: gssdp >= 1.3.0 |
7ce3b8b9 | 42 | Requires: libsoup >= 2.48.0 |
8d14f33e | 43 | Requires: libuuid >= 1.36 |
aad1ecd9 | 44 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
45 | ||
46 | %description | |
47 | GUPnP is an object-oriented open source framework for creating UPnP | |
48 | devices and control points, written in C using GObject and libsoup. | |
49 | The GUPnP API is intended to be easy to use, efficient and flexible. | |
50 | ||
3c551657 JB |
51 | %description -l pl.UTF-8 |
52 | GUPnp to zorientowany obiektowo, mający otwarte źródła szkielet do | |
53 | tworzenia urządzeń i punktów sterujących UPnP, napisany w C z użyciem | |
54 | bibliotek GObject i libsoup. API GUPnp ma być łatwe w użyciu, wydajne | |
55 | i elastyczne. | |
56 | ||
aad1ecd9 | 57 | %package devel |
58 | Summary: Header files for gupnp | |
59 | Summary(pl.UTF-8): Pliki nagłówkowe gupnp | |
60 | Group: Development/Libraries | |
61 | Requires: %{name} = %{version}-%{release} | |
e5d575d6 | 62 | Requires: glib2-devel >= 1:2.66 |
e7cd5e15 | 63 | Requires: gssdp-devel >= 1.3.0 |
7ce3b8b9 | 64 | Requires: libsoup-devel >= 2.48.0 |
3c551657 | 65 | Requires: libuuid-devel >= 1.36 |
6705dc39 | 66 | Requires: libxml2-devel >= 1:2.6.30 |
aad1ecd9 | 67 | |
68 | %description devel | |
69 | This package contains header files for the Linux SDK for UPnP Devices | |
70 | (gupnp). | |
71 | ||
72 | %description devel -l pl.UTF-8 | |
73 | Ten pakiet zawiera pliki nagłówkowe dla linuksowego pakietu | |
74 | programistycznego do urządzeń UPnP (gupnp). | |
75 | ||
76 | %package static | |
3c551657 JB |
77 | Summary: Static gupnp libraries |
78 | Summary(pl.UTF-8): Statyczne biblioteki gupnp | |
aad1ecd9 | 79 | Group: Development/Libraries |
80 | Requires: %{name}-devel = %{version}-%{release} | |
81 | ||
82 | %description static | |
3c551657 | 83 | Static gupnp libraries. |
aad1ecd9 | 84 | |
85 | %description static -l pl.UTF-8 | |
3c551657 | 86 | Statyczne biblioteki gupnp. |
aad1ecd9 | 87 | |
88 | %package apidocs | |
89 | Summary: gupnp API documentation | |
90 | Summary(pl.UTF-8): Dokumentacja API gupnp | |
91 | Group: Documentation | |
92 | Requires: gtk-doc-common | |
ce2eaf00 | 93 | BuildArch: noarch |
aad1ecd9 | 94 | |
95 | %description apidocs | |
96 | gupnp API documentation. | |
97 | ||
98 | %description apidocs -l pl.UTF-8 | |
99 | Dokumentacja API gupnp. | |
100 | ||
fa8d29b7 JB |
101 | %package -n vala-gupnp |
102 | Summary: Vala API for gupnp library | |
103 | Summary(pl.UTF-8): API języka Vala dla biblioteki gupnp | |
104 | Group: Development/Libraries | |
105 | Requires: %{name}-devel = %{version}-%{release} | |
ff38dd76 | 106 | Requires: vala >= 2:0.20 |
e7cd5e15 | 107 | Requires: vala-gssdp >= 1.3.0 |
ef09a656 | 108 | BuildArch: noarch |
fa8d29b7 JB |
109 | |
110 | %description -n vala-gupnp | |
111 | Vala API for gupnp library. | |
112 | ||
113 | %description -n vala-gupnp -l pl.UTF-8 | |
114 | API języka Vala dla biblioteki gupnp. | |
115 | ||
aad1ecd9 | 116 | %prep |
117 | %setup -q | |
118 | ||
15b1a2f7 | 119 | %{__sed} -i -e '1s,/usr/bin/env python3,%{__python3},' tools/gupnp-binding-tool-1.2 |
204e4a43 | 120 | |
aad1ecd9 | 121 | %build |
15b1a2f7 JB |
122 | %meson build \ |
123 | -Dcontext_manager=network-manager \ | |
e7cd5e15 | 124 | %{?with_apidocs:-Dgtk_doc=true} |
15b1a2f7 JB |
125 | |
126 | %ninja_build -C build | |
aad1ecd9 | 127 | |
128 | %install | |
129 | rm -rf $RPM_BUILD_ROOT | |
130 | ||
15b1a2f7 | 131 | %ninja_install -C build |
266c66c7 | 132 | |
aad1ecd9 | 133 | %clean |
134 | rm -rf $RPM_BUILD_ROOT | |
135 | ||
136 | %post -p /sbin/ldconfig | |
137 | %postun -p /sbin/ldconfig | |
138 | ||
139 | %files | |
140 | %defattr(644,root,root,755) | |
e7cd5e15 | 141 | %doc AUTHORS NEWS README.md |
15b1a2f7 JB |
142 | %attr(755,root,root) %{_bindir}/gupnp-binding-tool-1.2 |
143 | %attr(755,root,root) %{_libdir}/libgupnp-1.2.so.*.*.* | |
e7cd5e15 | 144 | %attr(755,root,root) %ghost %{_libdir}/libgupnp-1.2.so.1 |
15b1a2f7 | 145 | %{_libdir}/girepository-1.0/GUPnP-1.2.typelib |
43309f65 | 146 | %{_mandir}/man1/gupnp-binding-tool-1.2.1* |
aad1ecd9 | 147 | |
148 | %files devel | |
149 | %defattr(644,root,root,755) | |
15b1a2f7 JB |
150 | %attr(755,root,root) %{_libdir}/libgupnp-1.2.so |
151 | %{_datadir}/gir-1.0/GUPnP-1.2.gir | |
152 | %{_includedir}/gupnp-1.2 | |
153 | %{_pkgconfigdir}/gupnp-1.2.pc | |
aad1ecd9 | 154 | |
155 | %files static | |
156 | %defattr(644,root,root,755) | |
15b1a2f7 | 157 | %{_libdir}/libgupnp-1.2.a |
aad1ecd9 | 158 | |
e7cd5e15 | 159 | %if %{with apidocs} |
aad1ecd9 | 160 | %files apidocs |
161 | %defattr(644,root,root,755) | |
162 | %{_gtkdocdir}/gupnp | |
e7cd5e15 | 163 | %endif |
fa8d29b7 JB |
164 | |
165 | %if %{with vala} | |
166 | %files -n vala-gupnp | |
167 | %defattr(644,root,root,755) | |
15b1a2f7 JB |
168 | %{_datadir}/vala/vapi/gupnp-1.2.deps |
169 | %{_datadir}/vala/vapi/gupnp-1.2.vapi | |
fa8d29b7 | 170 | %endif |