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