]>
Commit | Line | Data |
---|---|---|
195431cb ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
222e0d7c | 4 | %bcond_with check # check/testing support (note: library links with libcheck!) |
b12ab517 | 5 | %bcond_without static_libs # static library build |
195431cb ER |
6 | |
7 | Summary: A DMAP client and server library | |
b12ab517 | 8 | Summary(pl.UTF-8): Biblioteka klienta i serwera DMAP |
195431cb | 9 | Name: libdmapsharing |
222e0d7c | 10 | Version: 3.9.6 |
cb440425 | 11 | Release: 1 |
b12ab517 JB |
12 | License: LGPL v2.1+ |
13 | Group: Libraries | |
14 | #Source0Download: https://www.flyn.org/projects/libdmapsharing/download.html | |
15 | Source0: https://www.flyn.org/projects/libdmapsharing/%{name}-%{version}.tar.gz | |
222e0d7c | 16 | # Source0-md5: 7043d7c0af3472ade24e896b5b749224 |
62cc9586 | 17 | Patch0: floorf.patch |
b12ab517 | 18 | URL: https://www.flyn.org/projects/libdmapsharing/index.html |
51ce28bb JB |
19 | BuildRequires: autoconf >= 2.50 |
20 | BuildRequires: automake | |
ee8bf5c2 | 21 | BuildRequires: avahi-glib-devel >= 0.6 |
222e0d7c | 22 | %{?with_check:BuildRequires: check-devel >= 0.12} |
b12ab517 JB |
23 | BuildRequires: gdk-pixbuf2-devel >= 2.0 |
24 | BuildRequires: glib2-devel >= 1:2.36 | |
ee8bf5c2 | 25 | BuildRequires: gobject-introspection-devel >= 1.30.0 |
b12ab517 JB |
26 | BuildRequires: gstreamer-plugins-base-devel >= 1.0 |
27 | BuildRequires: gtk-doc >= 1.0 | |
28 | # noinst programs only | |
29 | #BuildRequires: gtk+2-devel >= 2.0 | |
30 | #BuildRequires: libgee-devel >= 0.8 | |
cb440425 | 31 | BuildRequires: libsoup-devel >= 2.48.0 |
51ce28bb | 32 | BuildRequires: libtool |
195431cb | 33 | BuildRequires: pkgconfig |
51ce28bb JB |
34 | # not needed for releases, noinst only |
35 | #BuildRequires: vala >= 1:0.11.4 | |
b12ab517 | 36 | BuildRequires: zlib-devel |
ee8bf5c2 | 37 | Requires: avahi-glib >= 0.6 |
b12ab517 | 38 | Requires: glib2 >= 1:2.36 |
cb440425 | 39 | Requires: libsoup >= 2.48.0 |
195431cb ER |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
41 | ||
42 | %description | |
43 | libdmapsharing is a library you may use to access and share DMAP (DAAP | |
44 | & DPAP) content. The library is written in C using GObject and | |
45 | libsoup. | |
46 | ||
b12ab517 JB |
47 | The DMAP family of protocols are used by products such as iTunes(TM), |
48 | iPhoto(TM) and the Roku SoundBridge(TM) family to share content such | |
195431cb ER |
49 | as music and photos. |
50 | ||
b12ab517 JB |
51 | %description -l pl.UTF-8 |
52 | libdmapsharing to biblioteka służąca do dostępu i współdzielenia | |
53 | treści DMAP (DAAP i DPAP). Biblioteka jest napisana w C z użyciem | |
54 | bibliotek GObject i libsoup. | |
55 | ||
56 | Rodzina protokołów DMAP jest wykorzystywana przez produkty takie jak | |
57 | iTunes(TM), iPhoto(TM) oraz Roku SoundBridge do współdzielenia treści | |
58 | takich jak muzyka czy zdjęcia. | |
59 | ||
195431cb ER |
60 | %package devel |
61 | Summary: Files needed to develop applications using libdmapsharing | |
b12ab517 | 62 | Summary(pl.UTF-8): Pliki niezbędne do tworzenia aplikacji wykorzystujących libdmapsharing |
195431cb ER |
63 | Group: Development/Libraries |
64 | Requires: %{name} = %{version}-%{release} | |
ee8bf5c2 | 65 | Requires: avahi-glib-devel >= 0.6 |
b12ab517 JB |
66 | Requires: gdk-pixbuf2-devel >= 2.0 |
67 | Requires: glib2-devel >= 1:2.36 | |
68 | Requires: gstreamer-plugins-base-devel >= 1.0 | |
772a8eb9 | 69 | Requires: libsoup-devel >= 2.32.2 |
195431cb ER |
70 | |
71 | %description devel | |
72 | libdmapsharing implements the DMAP protocols. This includes support | |
b12ab517 JB |
73 | for DAAP and DPAP. This package provides the include files and other |
74 | resources needed for developing applications using libdmapsharing. | |
75 | ||
76 | %description devel -l pl.UTF-8 | |
77 | libdmapsharing implementuje protokoły DMAP. Obejmuje obsługę DAAP i | |
78 | DPAP. Ten pakiet zawiera pliki nagłówkowe i inne niezbędne do | |
79 | tworzenia aplikacji wykorzystujących libdmapsharing. | |
80 | ||
81 | %package static | |
82 | Summary: Static libdmapsharing library | |
83 | Summary(pl.UTF-8): Statyczna biblioteka libdmapsharing | |
84 | Group: Development/Libraries | |
85 | Requires: %{name}-devel = %{version}-%{release} | |
86 | ||
87 | %description static | |
88 | Static libdmapsharing library. | |
89 | ||
90 | %description static -l pl.UTF-8 | |
91 | Statyczna biblioteka libdmapsharing. | |
195431cb ER |
92 | |
93 | %package apidocs | |
94 | Summary: libdmapsharing API documentation | |
95 | Summary(pl.UTF-8): Dokumentacja API biblioteki libdmapsharing | |
96 | Group: Documentation | |
17a42a1f ER |
97 | %if "%{_rpmversion}" >= "5" |
98 | BuildArch: noarch | |
99 | %endif | |
195431cb ER |
100 | |
101 | %description apidocs | |
102 | API documentation for libdmapsharing library. | |
103 | ||
104 | %description apidocs -l pl.UTF-8 | |
105 | Dokumentacja API biblioteki libdmapsharing. | |
106 | ||
ee8bf5c2 JB |
107 | %package -n vala-libdmapsharing |
108 | Summary: Vala API for libdmapsharing library | |
109 | Summary(pl.UTF-8): API języka Vala do biblioteki libdmapsharing | |
110 | Group: Development/Libraries | |
111 | Requires: %{name}-devel = %{version}-%{release} | |
112 | Requires: vala >= 1:0.11.4 | |
4960eae8 ER |
113 | %if "%{_rpmversion}" >= "5" |
114 | BuildArch: noarch | |
115 | %endif | |
ee8bf5c2 JB |
116 | |
117 | %description -n vala-libdmapsharing | |
118 | Vala API for libdmapsharing library. | |
119 | ||
120 | %description -n vala-libdmapsharing -l pl.UTF-8 | |
121 | API języka Vala do biblioteki libdmapsharing. | |
122 | ||
195431cb ER |
123 | %prep |
124 | %setup -q | |
62cc9586 | 125 | %patch0 -p1 |
195431cb ER |
126 | |
127 | %build | |
62cc9586 | 128 | %{__libtoolize} |
222e0d7c | 129 | %{__aclocal} -I m4 |
62cc9586 JR |
130 | %{__autoconf} |
131 | %{__autoheader} | |
132 | %{__automake} | |
195431cb | 133 | %configure \ |
222e0d7c | 134 | %{!?with_check:--disable-check} \ |
ee8bf5c2 | 135 | --disable-silent-rules \ |
b12ab517 | 136 | %{?with_static_libs:--enable-static} \ |
222e0d7c | 137 | %{!?with_check:--disable-tests} \ |
b12ab517 JB |
138 | --with-html-dir=%{_gtkdocdir} \ |
139 | --with-mdns=avahi | |
195431cb ER |
140 | |
141 | %{__make} | |
142 | ||
143 | %install | |
144 | rm -rf $RPM_BUILD_ROOT | |
222e0d7c | 145 | |
195431cb ER |
146 | %{__make} install \ |
147 | INSTALL="install -p" \ | |
148 | DESTDIR=$RPM_BUILD_ROOT | |
149 | ||
222e0d7c | 150 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libdmapsharing-4.0.la |
195431cb ER |
151 | |
152 | %clean | |
153 | rm -rf $RPM_BUILD_ROOT | |
154 | ||
155 | %post -p /sbin/ldconfig | |
156 | %postun -p /sbin/ldconfig | |
157 | ||
158 | %files | |
159 | %defattr(644,root,root,755) | |
b12ab517 | 160 | %doc AUTHORS ChangeLog NEWS README README-Memory TODO |
222e0d7c JB |
161 | %attr(755,root,root) %{_libdir}/libdmapsharing-4.0.so.*.*.* |
162 | %attr(755,root,root) %ghost %{_libdir}/libdmapsharing-4.0.so.3 | |
163 | %{_libdir}/girepository-1.0/Dmap-4.0.typelib | |
195431cb ER |
164 | |
165 | %files devel | |
166 | %defattr(644,root,root,755) | |
222e0d7c JB |
167 | %attr(755,root,root) %{_libdir}/libdmapsharing-4.0.so |
168 | %{_includedir}/libdmapsharing-4.0 | |
169 | %{_datadir}/gir-1.0/Dmap-4.0.gir | |
170 | %{_pkgconfigdir}/libdmapsharing-4.0.pc | |
b12ab517 JB |
171 | |
172 | %if %{with static_libs} | |
173 | %files static | |
174 | %defattr(644,root,root,755) | |
222e0d7c | 175 | %{_libdir}/libdmapsharing-4.0.a |
b12ab517 | 176 | %endif |
195431cb ER |
177 | |
178 | %if %{with apidocs} | |
179 | %files apidocs | |
180 | %defattr(644,root,root,755) | |
222e0d7c | 181 | %{_gtkdocdir}/libdmapsharing-4.0 |
195431cb | 182 | %endif |
ee8bf5c2 JB |
183 | |
184 | %files -n vala-libdmapsharing | |
185 | %defattr(644,root,root,755) | |
222e0d7c | 186 | %{_datadir}/vala/vapi/libdmapsharing-4.0.vapi |