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