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 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.38
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 Requires: glib2 >= 1:2.38
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 gupnp-av is a small library that aims to easy the handling and
34 implementation of UPnP A/V profiles.
36 %description -l pl.UTF-8
37 gupnp-av jest małą biblioteką, której celem jest uproszczenie obsługi
38 i implementacji profili UPnP A/V.
41 Summary: Header files for gupnp-av library
42 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gupnp-av
43 Group: Development/Libraries
44 Requires: %{name} = %{version}-%{release}
45 Requires: glib2-devel >= 1:2.38
46 Requires: libxml2-devel >= 2.0
49 Header files for gupnp-av library.
51 %description devel -l pl.UTF-8
52 Pliki nagłówkowe biblioteki gupnp-av.
55 Summary: Static gupnp-av library
56 Summary(pl.UTF-8): Statyczna biblioteka gupnp-av
57 Group: Development/Libraries
58 Requires: %{name}-devel = %{version}-%{release}
61 Static gupnp-av library.
63 %description static -l pl.UTF-8
64 Statyczna biblioteka gupnp-av.
67 Summary: gupnp-av library API documentation
68 Summary(pl.UTF-8): Dokumentacja API biblioteki gupnp-av
70 Requires: gtk-doc-common
71 %if "%{_rpmversion}" >= "5"
76 API and internal documentation for gupnp-av library.
78 %description apidocs -l pl.UTF-8
79 Dokumentacja API biblioteki gupnp-av.
81 %package -n vala-gupnp-av
82 Summary: Vala API for gupnp-av library
83 Summary(pl.UTF-8): API języka Vala dla biblioteki gupnp-av
84 Group: Development/Libraries
85 Requires: %{name}-devel = %{version}-%{release}
86 Requires: vala >= 2:0.22
87 %if "%{_rpmversion}" >= "5"
91 %description -n vala-gupnp-av
92 Vala API for gupnp-av library.
94 %description -n vala-gupnp-av -l pl.UTF-8
95 API języka Vala dla biblioteki gupnp-av.
108 --disable-silent-rules \
109 %{?with_apidocs:--enable-gtk-doc} \
110 --with-html-dir=%{_gtkdocdir}
115 rm -rf $RPM_BUILD_ROOT
118 DESTDIR=$RPM_BUILD_ROOT
120 # obsoleted by pkg-config
121 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgupnp-av-1.0.la
123 %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}}
126 rm -rf $RPM_BUILD_ROOT
128 %post -p /sbin/ldconfig
129 %postun -p /sbin/ldconfig
132 %defattr(644,root,root,755)
133 %doc AUTHORS ChangeLog NEWS README
134 %attr(755,root,root) %{_libdir}/libgupnp-av-1.0.so.*.*.*
135 %attr(755,root,root) %ghost %{_libdir}/libgupnp-av-1.0.so.2
136 %{_libdir}/girepository-1.0/GUPnPAV-1.0.typelib
140 %defattr(644,root,root,755)
141 %attr(755,root,root) %{_libdir}/libgupnp-av-1.0.so
142 %{_datadir}/gir-1.0/GUPnPAV-1.0.gir
143 %{_includedir}/gupnp-av-1.0
144 %{_pkgconfigdir}/gupnp-av-1.0.pc
147 %defattr(644,root,root,755)
148 %{_libdir}/libgupnp-av-1.0.a
152 %defattr(644,root,root,755)
153 %{_gtkdocdir}/gupnp-av
157 %files -n vala-gupnp-av
158 %defattr(644,root,root,755)
159 %{_datadir}/vala/vapi/gupnp-av-1.0.deps
160 %{_datadir}/vala/vapi/gupnp-av-1.0.vapi