#unable to parse ../../docs/reference/xml/*.xml
#make[3]: [gpod_doc.i] Error 6 (ignored)
# - mountdir perms?: %dir %{_localstatedir}/run/%{name}
-%include /usr/lib/rpm/macros.mono
#
+# Conditional build:
+%bcond_without dotnet # without .NET support
+%bcond_without python # without Python bindings
+
+%ifarch x32
+%undefine with_dotnet
+%endif
+
+%{?with_dotnet:%include /usr/lib/rpm/macros.mono}
Summary: Shared library to access the contents of an iPod
Summary(pl.UTF-8): Biblioteka współdzielona do dostępu do zawartości iPodów
Name: libgpod
-Version: 0.8.0
-Release: 6
+Version: 0.8.3
+Release: 0.1
License: GPL v2
Group: Libraries
-Source0: http://downloads.sourceforge.net/gtkpod/%{name}-%{version}.tar.gz
-# Source0-md5: 6660f74cc53293dcc847407aa5f672ce
+Source0: http://downloads.sourceforge.net/gtkpod/%{name}-%{version}.tar.bz2
+# Source0-md5: f8a0b7a34e768e33a708e8dd172bd6f8
Source1: %{name}.tmpfiles
Patch0: %{name}-gcc43.patch
Patch1: %{name}-monodir.patch
BuildRequires: autoconf >= 2.52
BuildRequires: automake
BuildRequires: docbook-dtd412-xml
-BuildRequires: dotnet-gtk-sharp2-devel >= 2.12.0
BuildRequires: gdk-pixbuf2-devel >= 2.6.0
-BuildRequires: gettext-devel
+BuildRequires: gettext-tools
BuildRequires: glib2-devel >= 1:2.16.0
BuildRequires: gtk-doc >= 1.0
BuildRequires: intltool >= 0.35
-BuildRequires: libimobiledevice-devel >= 0.9.7
+BuildRequires: libimobiledevice-devel >= 1.1.5
BuildRequires: libplist-devel >= 1.0.0
+BuildRequires: libsmbios-devel
BuildRequires: libtool
BuildRequires: libusb-devel
BuildRequires: libxml2-devel
-BuildRequires: mono-devel >= 1.9.1
BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.647
+BuildRequires: sg3_utils-devel >= 1.26
+BuildRequires: sqlite3-devel
+BuildRequires: zlib-devel
+# for noinst test only
+#BuildRequires: taglib-devel
+%if %{with dotnet}
+BuildRequires: dotnet-gtk-sharp2-devel >= 2.12.0
+BuildRequires: mono-devel >= 1.9.1
+BuildRequires: rpmbuild(monoautodeps)
+%endif
+%if %{with python}
BuildRequires: python-devel >= 2.1.1
BuildRequires: python-eyeD3 >= 0.6.6
BuildRequires: python-mutagen >= 1.8
BuildRequires: python-pygobject-devel >= 2.8.0
BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(monoautodeps)
-BuildRequires: sg3_utils-devel >= 1.26
-BuildRequires: sqlite3-devel
BuildRequires: swig-python >= 1.3.24
-BuildRequires: zlib-devel
-BuildRequires: libsmbios-devel
-# for noinst test only
-#BuildRequires: taglib-devel
+%endif
Suggests: udev-libgpod = %{version}-%{release}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
library.
%description -n udev-libgpod -l pl.UTF-8
-Reguły i program dla UDEV do przygotowywania urządzeń iPod do
-użytku z biblioteką libgpod.
+Reguły i program dla UDEV do przygotowywania urządzeń iPod do użytku z
+biblioteką libgpod.
%package devel
Summary: Header files for libgpod library
Group: Development/Languages/Python
Requires: %{name} = %{version}-%{release}
Requires: python-eyeD3 >= 0.6.6
-%pyrequires_eq python-libs
+Requires: python-libs
%description -n python-gpod
This is the libgpod Python support package.
%configure \
--disable-silent-rules \
--enable-gtk-doc \
+ --enable-mono%{!?with_dotnet:=no} \
--with-html-dir=%{_gtkdocdir} \
--with-temp-mount-dir=%{_localstatedir}/run/%{name} \
- --with-python=yes \
+ --with-python=%{!?with_python:no}%{?with_python:yes} \
--without-hal \
--enable-udev
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/usr/lib/tmpfiles.d
+install -d $RPM_BUILD_ROOT%{systemdtmpfilesdir}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/gpod/*.la \
- $RPM_BUILD_ROOT%{_libdir}/libgpod.la
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libgpod.la
-install %{SOURCE1} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/%{name}.conf
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
+%if %{with python}
+%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/gpod/*.la
%py_postclean
+%endif
%find_lang %{name} --all-name
%attr(755,root,root) %{_libdir}/libgpod.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libgpod.so.4
%dir %{_localstatedir}/run/%{name}
-/usr/lib/tmpfiles.d/%{name}.conf
+%{systemdtmpfilesdir}/%{name}.conf
%files -n udev-libgpod
%defattr(644,root,root,755)
%defattr(644,root,root,755)
%{_gtkdocdir}/libgpod
+%if %{with python}
%files -n python-gpod
%defattr(644,root,root,755)
%dir %{py_sitedir}/gpod
%{py_sitedir}/gpod/*.py[co]
%attr(755,root,root) %{py_sitedir}/gpod/_gpod.so
+%endif
+%if %{with dotnet}
%files -n dotnet-%{name}-sharp
%defattr(644,root,root,755)
%dir %{_prefix}/lib/libgpod
%files -n dotnet-%{name}-sharp-devel
%defattr(644,root,root,755)
%{_pkgconfigdir}/libgpod-sharp.pc
+%endif