]> git.pld-linux.org Git - packages/libdmapsharing.git/blame - libdmapsharing.spec
- updated to 3.9.6 (pre-4.0), this version builds with current vala; 2.9.x left on...
[packages/libdmapsharing.git] / libdmapsharing.spec
CommitLineData
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
7Summary: A DMAP client and server library
b12ab517 8Summary(pl.UTF-8): Biblioteka klienta i serwera DMAP
195431cb 9Name: libdmapsharing
222e0d7c 10Version: 3.9.6
cb440425 11Release: 1
b12ab517
JB
12License: LGPL v2.1+
13Group: Libraries
14#Source0Download: https://www.flyn.org/projects/libdmapsharing/download.html
15Source0: https://www.flyn.org/projects/libdmapsharing/%{name}-%{version}.tar.gz
222e0d7c 16# Source0-md5: 7043d7c0af3472ade24e896b5b749224
62cc9586 17Patch0: floorf.patch
b12ab517 18URL: https://www.flyn.org/projects/libdmapsharing/index.html
51ce28bb
JB
19BuildRequires: autoconf >= 2.50
20BuildRequires: automake
ee8bf5c2 21BuildRequires: avahi-glib-devel >= 0.6
222e0d7c 22%{?with_check:BuildRequires: check-devel >= 0.12}
b12ab517
JB
23BuildRequires: gdk-pixbuf2-devel >= 2.0
24BuildRequires: glib2-devel >= 1:2.36
ee8bf5c2 25BuildRequires: gobject-introspection-devel >= 1.30.0
b12ab517
JB
26BuildRequires: gstreamer-plugins-base-devel >= 1.0
27BuildRequires: gtk-doc >= 1.0
28# noinst programs only
29#BuildRequires: gtk+2-devel >= 2.0
30#BuildRequires: libgee-devel >= 0.8
cb440425 31BuildRequires: libsoup-devel >= 2.48.0
51ce28bb 32BuildRequires: libtool
195431cb 33BuildRequires: pkgconfig
51ce28bb
JB
34# not needed for releases, noinst only
35#BuildRequires: vala >= 1:0.11.4
b12ab517 36BuildRequires: zlib-devel
ee8bf5c2 37Requires: avahi-glib >= 0.6
b12ab517 38Requires: glib2 >= 1:2.36
cb440425 39Requires: libsoup >= 2.48.0
195431cb
ER
40BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41
42%description
43libdmapsharing is a library you may use to access and share DMAP (DAAP
44& DPAP) content. The library is written in C using GObject and
45libsoup.
46
b12ab517
JB
47The DMAP family of protocols are used by products such as iTunes(TM),
48iPhoto(TM) and the Roku SoundBridge(TM) family to share content such
195431cb
ER
49as music and photos.
50
b12ab517
JB
51%description -l pl.UTF-8
52libdmapsharing to biblioteka służąca do dostępu i współdzielenia
53treści DMAP (DAAP i DPAP). Biblioteka jest napisana w C z użyciem
54bibliotek GObject i libsoup.
55
56Rodzina protokołów DMAP jest wykorzystywana przez produkty takie jak
57iTunes(TM), iPhoto(TM) oraz Roku SoundBridge do współdzielenia treści
58takich jak muzyka czy zdjęcia.
59
195431cb
ER
60%package devel
61Summary: Files needed to develop applications using libdmapsharing
b12ab517 62Summary(pl.UTF-8): Pliki niezbędne do tworzenia aplikacji wykorzystujących libdmapsharing
195431cb
ER
63Group: Development/Libraries
64Requires: %{name} = %{version}-%{release}
ee8bf5c2 65Requires: avahi-glib-devel >= 0.6
b12ab517
JB
66Requires: gdk-pixbuf2-devel >= 2.0
67Requires: glib2-devel >= 1:2.36
68Requires: gstreamer-plugins-base-devel >= 1.0
772a8eb9 69Requires: libsoup-devel >= 2.32.2
195431cb
ER
70
71%description devel
72libdmapsharing implements the DMAP protocols. This includes support
b12ab517
JB
73for DAAP and DPAP. This package provides the include files and other
74resources needed for developing applications using libdmapsharing.
75
76%description devel -l pl.UTF-8
77libdmapsharing implementuje protokoły DMAP. Obejmuje obsługę DAAP i
78DPAP. Ten pakiet zawiera pliki nagłówkowe i inne niezbędne do
79tworzenia aplikacji wykorzystujących libdmapsharing.
80
81%package static
82Summary: Static libdmapsharing library
83Summary(pl.UTF-8): Statyczna biblioteka libdmapsharing
84Group: Development/Libraries
85Requires: %{name}-devel = %{version}-%{release}
86
87%description static
88Static libdmapsharing library.
89
90%description static -l pl.UTF-8
91Statyczna biblioteka libdmapsharing.
195431cb
ER
92
93%package apidocs
94Summary: libdmapsharing API documentation
95Summary(pl.UTF-8): Dokumentacja API biblioteki libdmapsharing
96Group: Documentation
17a42a1f
ER
97%if "%{_rpmversion}" >= "5"
98BuildArch: noarch
99%endif
195431cb
ER
100
101%description apidocs
102API documentation for libdmapsharing library.
103
104%description apidocs -l pl.UTF-8
105Dokumentacja API biblioteki libdmapsharing.
106
ee8bf5c2
JB
107%package -n vala-libdmapsharing
108Summary: Vala API for libdmapsharing library
109Summary(pl.UTF-8): API języka Vala do biblioteki libdmapsharing
110Group: Development/Libraries
111Requires: %{name}-devel = %{version}-%{release}
112Requires: vala >= 1:0.11.4
4960eae8
ER
113%if "%{_rpmversion}" >= "5"
114BuildArch: noarch
115%endif
ee8bf5c2
JB
116
117%description -n vala-libdmapsharing
118Vala API for libdmapsharing library.
119
120%description -n vala-libdmapsharing -l pl.UTF-8
121API 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
144rm -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
153rm -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
This page took 0.098753 seconds and 4 git commands to generate.