3 %bcond_without apidocs # do not build and package API docs
4 %bcond_without vala # Vala API
6 Summary: Library for building UPnP A/V applications
7 Summary(pl.UTF-8): Biblioteka do budowania aplikacji UPnP A/V
9 # note: 0.12.x is stable, 0.13.x unstable
14 Source0: http://ftp.gnome.org/pub/GNOME/sources/gupnp-av/0.12/%{name}-%{version}.tar.xz
15 # Source0-md5: f09e99ae20271b0a8cadce806098ae8b
16 Patch0: %{name}-pc.patch
17 URL: http://gupnp.org/
18 BuildRequires: autoconf >= 2.63
19 BuildRequires: automake >= 1:1.11
20 BuildRequires: docbook-dtd412-xml
21 BuildRequires: glib2-devel >= 1:2.38
22 BuildRequires: gobject-introspection-devel >= 1.36.0
23 BuildRequires: gtk-doc >= 1.10
24 BuildRequires: libtool >= 2:2.2
25 BuildRequires: libxml2-devel >= 2.0
26 BuildRequires: pkgconfig
27 BuildRequires: tar >= 1:1.22
28 %{?with_vala:BuildRequires: vala >= 2:0.22}
30 Requires: glib2 >= 1:2.38
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 gupnp-av is a small library that aims to easy the handling and
35 implementation of UPnP A/V profiles.
37 %description -l pl.UTF-8
38 gupnp-av jest małą biblioteką, której celem jest uproszczenie obsługi
39 i implementacji profili UPnP A/V.
42 Summary: Header files for gupnp-av library
43 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gupnp-av
44 Group: Development/Libraries
45 Requires: %{name} = %{version}-%{release}
46 Requires: glib2-devel >= 1:2.38
47 Requires: libxml2-devel >= 2.0
50 Header files for gupnp-av library.
52 %description devel -l pl.UTF-8
53 Pliki nagłówkowe biblioteki gupnp-av.
56 Summary: Static gupnp-av library
57 Summary(pl.UTF-8): Statyczna biblioteka gupnp-av
58 Group: Development/Libraries
59 Requires: %{name}-devel = %{version}-%{release}
62 Static gupnp-av library.
64 %description static -l pl.UTF-8
65 Statyczna biblioteka gupnp-av.
68 Summary: gupnp-av library API documentation
69 Summary(pl.UTF-8): Dokumentacja API biblioteki gupnp-av
71 Requires: gtk-doc-common
75 API and internal documentation for gupnp-av library.
77 %description apidocs -l pl.UTF-8
78 Dokumentacja API biblioteki gupnp-av.
80 %package -n vala-gupnp-av
81 Summary: Vala API for gupnp-av library
82 Summary(pl.UTF-8): API języka Vala dla biblioteki gupnp-av
83 Group: Development/Libraries
84 Requires: %{name}-devel = %{version}-%{release}
85 Requires: vala >= 2:0.22
88 %description -n vala-gupnp-av
89 Vala API for gupnp-av library.
91 %description -n vala-gupnp-av -l pl.UTF-8
92 API języka Vala dla biblioteki gupnp-av.
106 --disable-silent-rules \
107 %{?with_apidocs:--enable-gtk-doc} \
108 --with-html-dir=%{_gtkdocdir}
113 rm -rf $RPM_BUILD_ROOT
116 DESTDIR=$RPM_BUILD_ROOT
118 # obsoleted by pkg-config
119 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgupnp-av-1.0.la
121 %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}}
124 rm -rf $RPM_BUILD_ROOT
126 %post -p /sbin/ldconfig
127 %postun -p /sbin/ldconfig
130 %defattr(644,root,root,755)
131 %doc AUTHORS ChangeLog NEWS README
132 %attr(755,root,root) %{_libdir}/libgupnp-av-1.0.so.*.*.*
133 %attr(755,root,root) %ghost %{_libdir}/libgupnp-av-1.0.so.2
134 %{_libdir}/girepository-1.0/GUPnPAV-1.0.typelib
138 %defattr(644,root,root,755)
139 %attr(755,root,root) %{_libdir}/libgupnp-av-1.0.so
140 %{_datadir}/gir-1.0/GUPnPAV-1.0.gir
141 %{_includedir}/gupnp-av-1.0
142 %{_pkgconfigdir}/gupnp-av-1.0.pc
145 %defattr(644,root,root,755)
146 %{_libdir}/libgupnp-av-1.0.a
150 %defattr(644,root,root,755)
151 %{_gtkdocdir}/gupnp-av
155 %files -n vala-gupnp-av
156 %defattr(644,root,root,755)
157 %{_datadir}/vala/vapi/gupnp-av-1.0.deps
158 %{_datadir}/vala/vapi/gupnp-av-1.0.vapi