]>
Commit | Line | Data |
---|---|---|
7c02d3df JB |
1 | # |
2 | # Conditional build: | |
2a0f40d5 | 3 | %bcond_without vala # Vala bindings |
214c6a78 | 4 | |
71402369 JB |
5 | Summary: GObject-based SSDP (Simple Service Discovery Protocol) library |
6 | Summary(pl.UTF-8): Biblioteka SSDP (Simple Service Discovery Protocol) oparta na GObject | |
2b51c964 | 7 | Name: gssdp |
c4e26e43 MB |
8 | # note: 1.0.x is stable, 1.1.x unstable |
9 | Version: 1.0.1 | |
9c954a2e | 10 | Release: 1 |
f90f18b8 | 11 | License: LGPL v2+ |
2b51c964 | 12 | Group: Libraries |
c4e26e43 MB |
13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gssdp/1.0/%{name}-%{version}.tar.xz |
14 | # Source0-md5: 5d5cc05b7ab7985ef51f0d3feeca92e1 | |
2b51c964 | 15 | URL: http://gupnp.org/ |
28ffac47 | 16 | BuildRequires: autoconf >= 2.64 |
4b6feacb | 17 | BuildRequires: automake >= 1:1.11 |
3b97e52a | 18 | BuildRequires: docbook-dtd412-xml |
dfefb17c | 19 | BuildRequires: glib2-devel >= 1:2.32 |
00a4c903 JB |
20 | BuildRequires: gobject-introspection-devel >= 1.36.0 |
21 | BuildRequires: gtk+3-devel >= 3.0 | |
98b810c5 | 22 | BuildRequires: gtk-doc >= 1.14 |
ae975581 | 23 | BuildRequires: libsoup-devel >= 2.26.1 |
28ffac47 | 24 | BuildRequires: libtool >= 2:2.2 |
f90f18b8 | 25 | BuildRequires: pkgconfig |
28ffac47 | 26 | BuildRequires: tar >= 1:1.22 |
00a4c903 | 27 | %{?with_vala:BuildRequires: vala >= 2:0.20} |
28ffac47 | 28 | BuildRequires: xz |
dfefb17c | 29 | Requires: glib2 >= 1:2.32 |
00a4c903 | 30 | Requires: gtk+3 >= 3.0 |
2a466a6a | 31 | Requires: libsoup >= 2.26.1 |
2b51c964 | 32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
33 | ||
34 | %description | |
71402369 JB |
35 | GSSDP is a GObject-based API that implements resource discovery and |
36 | announcement over SSDP (Simple Service Discovery Protocol). | |
2b51c964 | 37 | |
f90f18b8 | 38 | %description -l pl.UTF-8 |
71402369 JB |
39 | GSSDP to oparte na bibliotece GObject API implementujące wykrywanie i |
40 | rozgłaszanie zasobów przy użyciu protokołu SSDP (Simple Service | |
41 | Discovery Protocol). | |
f90f18b8 | 42 | |
2b51c964 | 43 | %package devel |
71402369 JB |
44 | Summary: Header files for GSSDP |
45 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GSSDP | |
2b51c964 | 46 | Group: Development/Libraries |
47 | Requires: %{name} = %{version}-%{release} | |
dfefb17c | 48 | Requires: glib2-devel >= 1:2.32 |
ae975581 | 49 | Requires: libsoup-devel >= 2.26.1 |
2b51c964 | 50 | |
51 | %description devel | |
71402369 | 52 | This package contains header files for GSSDP library. |
2b51c964 | 53 | |
f90f18b8 | 54 | %description devel -l pl.UTF-8 |
71402369 | 55 | Ten pakiet zawiera pliki nagłówkowe biblioteki GSSDP. |
f90f18b8 | 56 | |
2b51c964 | 57 | %package static |
71402369 JB |
58 | Summary: Static GSSDP library |
59 | Summary(pl.UTF-8): Statyczna biblioteka GSSDP | |
2b51c964 | 60 | Group: Development/Libraries |
61 | Requires: %{name}-devel = %{version}-%{release} | |
62 | ||
63 | %description static | |
71402369 | 64 | Static GSSDP library. |
2b51c964 | 65 | |
66 | %description static -l pl.UTF-8 | |
71402369 | 67 | Statyczna biblioteka GSSDP. |
2b51c964 | 68 | |
69 | %package apidocs | |
71402369 JB |
70 | Summary: GSSDP API documentation |
71 | Summary(pl.UTF-8): Dokumentacja API GSSDP | |
2b51c964 | 72 | Group: Documentation |
73 | Requires: gtk-doc-common | |
00dc5a84 ER |
74 | %if "%{_rpmversion}" >= "5" |
75 | BuildArch: noarch | |
76 | %endif | |
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 | |
7c02d3df JB |
84 | %package -n vala-gssdp |
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 ER |
90 | %if "%{_rpmversion}" >= "5" |
91 | BuildArch: noarch | |
92 | %endif | |
7c02d3df JB |
93 | |
94 | %description -n vala-gssdp | |
95 | Vala binding for GSSDP library. | |
96 | ||
97 | %description -n vala-gssdp -l pl.UTF-8 | |
98 | Wiązanie języka Vala do biblioteki GSSDP. | |
99 | ||
2b51c964 | 100 | %prep |
101 | %setup -q | |
102 | ||
103 | %build | |
104 | %{__gtkdocize} | |
105 | %{__libtoolize} | |
d3f7563e | 106 | %{__aclocal} -I m4 |
2b51c964 | 107 | %{__autoconf} |
108 | %{__autoheader} | |
109 | %{__automake} | |
110 | %configure \ | |
71402369 | 111 | --disable-silent-rules \ |
3473168a | 112 | --enable-gtk-doc \ |
71402369 | 113 | --with-html-dir=%{_gtkdocdir} |
3473168a | 114 | |
2b51c964 | 115 | %{__make} |
116 | ||
117 | %install | |
118 | rm -rf $RPM_BUILD_ROOT | |
119 | ||
120 | %{__make} install \ | |
121 | DESTDIR=$RPM_BUILD_ROOT | |
122 | ||
fac5c0e3 MB |
123 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
124 | ||
2b51c964 | 125 | %clean |
126 | rm -rf $RPM_BUILD_ROOT | |
127 | ||
128 | %post -p /sbin/ldconfig | |
129 | %postun -p /sbin/ldconfig | |
130 | ||
131 | %files | |
132 | %defattr(644,root,root,755) | |
2a0f40d5 | 133 | %doc AUTHORS NEWS README |
a0028d9a | 134 | %attr(755,root,root) %{_bindir}/gssdp-device-sniffer |
f90f18b8 | 135 | %attr(755,root,root) %{_libdir}/libgssdp-1.0.so.*.*.* |
28ffac47 | 136 | %attr(755,root,root) %ghost %{_libdir}/libgssdp-1.0.so.3 |
8725a0f3 | 137 | %{_libdir}/girepository-1.0/GSSDP-1.0.typelib |
4585aa2c | 138 | %{_datadir}/gssdp |
2b51c964 | 139 | |
2b51c964 | 140 | %files devel |
141 | %defattr(644,root,root,755) | |
f90f18b8 | 142 | %attr(755,root,root) %{_libdir}/libgssdp-1.0.so |
8725a0f3 | 143 | %{_datadir}/gir-1.0/GSSDP-1.0.gir |
f90f18b8 | 144 | %{_includedir}/gssdp-1.0 |
2b51c964 | 145 | %{_pkgconfigdir}/gssdp-1.0.pc |
146 | ||
147 | %files static | |
148 | %defattr(644,root,root,755) | |
149 | %{_libdir}/libgssdp-1.0.a | |
150 | ||
151 | %files apidocs | |
152 | %defattr(644,root,root,755) | |
153 | %{_gtkdocdir}/gssdp | |
7c02d3df JB |
154 | |
155 | %if %{with vala} | |
156 | %files -n vala-gssdp | |
157 | %defattr(644,root,root,755) | |
158 | %{_datadir}/vala/vapi/gssdp-1.0.deps | |
159 | %{_datadir}/vala/vapi/gssdp-1.0.vapi | |
160 | %endif |