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: 215f626508d76b767f5da7c9b92e87d8
16 URL: http://gupnp.org/
17 BuildRequires: autoconf >= 2.63
18 BuildRequires: automake >= 1:1.11
19 BuildRequires: docbook-dtd412-xml
20 BuildRequires: glib2-devel >= 1:2.34
21 BuildRequires: gobject-introspection-devel >= 1.36.0
22 BuildRequires: gtk-doc >= 1.10
23 BuildRequires: libtool >= 2:2.2
24 BuildRequires: libxml2-devel >= 2.0
25 BuildRequires: pkgconfig
26 BuildRequires: tar >= 1:1.22
27 %{?with_vala:BuildRequires: vala >= 2:0.22}
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 gupnp-av is a small library that aims to easy the handling and
33 implementation of UPnP A/V profiles.
35 %description -l pl.UTF-8
36 gupnp-av jest małą biblioteką, której celem jest uproszczenie obsługi
37 i implementacji profili UPnP A/V.
40 Summary: Header files for gupnp-av library
41 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gupnp-av
42 Group: Development/Libraries
43 Requires: %{name} = %{version}-%{release}
44 Requires: glib2-devel >= 1:2.34
45 Requires: libxml2-devel >= 2.0
48 Header files for gupnp-av library.
50 %description devel -l pl.UTF-8
51 Pliki nagłówkowe biblioteki gupnp-av.
54 Summary: Static gupnp-av library
55 Summary(pl.UTF-8): Statyczna biblioteka gupnp-av
56 Group: Development/Libraries
57 Requires: %{name}-devel = %{version}-%{release}
60 Static gupnp-av library.
62 %description static -l pl.UTF-8
63 Statyczna biblioteka gupnp-av.
66 Summary: gupnp-av library API documentation
67 Summary(pl.UTF-8): Dokumentacja API biblioteki gupnp-av
69 Requires: gtk-doc-common
70 %if "%{_rpmversion}" >= "5"
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
86 %if "%{_rpmversion}" >= "5"
90 %description -n vala-gupnp-av
91 Vala API for gupnp-av library.
93 %description -n vala-gupnp-av -l pl.UTF-8
94 API języka Vala dla biblioteki gupnp-av.
107 --disable-silent-rules \
108 %{?with_apidocs:--enable-gtk-doc} \
109 --with-html-dir=%{_gtkdocdir}
114 rm -rf $RPM_BUILD_ROOT
117 DESTDIR=$RPM_BUILD_ROOT
119 # obsoleted by pkg-config
120 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgupnp-av-1.0.la
122 %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}}
125 rm -rf $RPM_BUILD_ROOT
127 %post -p /sbin/ldconfig
128 %postun -p /sbin/ldconfig
131 %defattr(644,root,root,755)
132 %doc AUTHORS ChangeLog NEWS README
133 %attr(755,root,root) %{_libdir}/libgupnp-av-1.0.so.*.*.*
134 %attr(755,root,root) %ghost %{_libdir}/libgupnp-av-1.0.so.2
135 %{_libdir}/girepository-1.0/GUPnPAV-1.0.typelib
139 %defattr(644,root,root,755)
140 %attr(755,root,root) %{_libdir}/libgupnp-av-1.0.so
141 %{_datadir}/gir-1.0/GUPnPAV-1.0.gir
142 %{_includedir}/gupnp-av-1.0
143 %{_pkgconfigdir}/gupnp-av-1.0.pc
146 %defattr(644,root,root,755)
147 %{_libdir}/libgupnp-av-1.0.a
151 %defattr(644,root,root,755)
152 %{_gtkdocdir}/gupnp-av
156 %files -n vala-gupnp-av
157 %defattr(644,root,root,755)
158 %{_datadir}/vala/vapi/gupnp-av-1.0.deps
159 %{_datadir}/vala/vapi/gupnp-av-1.0.vapi