File libgpod.spec of Package libgpod
#
# spec file for package libgpod (Version 0.7.95)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: libgpod
Version: 0.7.95
Release: 1
Url: http://www.gtkpod.org/libgpod.html
Group: System/Libraries
License: LGPLv2.1+
Summary: Library to Manipulate Songs and Playlists Stored on an iPod
Source: %{name}-%{version}.tar.bz2
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: glib2-devel
BuildRequires: gtk-doc
BuildRequires: gtk2-devel
BuildRequires: gtk-sharp2
%if 0%{?suse_version} <= 1120
BuildRequires: hal-devel
%endif
BuildRequires: intltool
%if 0%{?suse_version} >= 1130
BuildRequires: libimobiledevice-devel
%endif
BuildRequires: libplist-devel
BuildRequires: libusb-devel
BuildRequires: libxml2-devel
BuildRequires: mono-devel
BuildRequires: python-devel
BuildRequires: python-gobject2-devel
BuildRequires: python-mutagen
BuildRequires: sg3_utils-devel
BuildRequires: swig
BuildRequires: sqlite3-devel
BuildRequires: taglib-devel
BuildRequires: update-desktop-files
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
libgpod is a library meant to abstract access to iPod content. It
provides an easy-to-use API to retrieve the list of files and
playliststored on an iPod, modify them, and save them back to the iPod.
%package -n libgpod4
Group: System/Libraries
License: LGPLv2.1+
Summary: Library to Manipulate Songs and Playlists Stored on an iPod
Recommends: %{name}-lang
%description -n libgpod4
libgpod is a library meant to abstract access to iPod content. It
provides an easy-to-use API to retrieve the list of files and
playliststored on an iPod, modify them, and save them back to the iPod.
%package devel
License: LGPLv2.1+
Group: Development/Libraries/C and C++
Summary: Development files for libgpod
Requires: libgpod4 = %{version}
%description devel
libgpod is a library meant to abstract access to iPod content. It
provides an easy-to-use API to retrieve the list of files and
playliststored on an iPod, modify them, and save them back to the iPod.
This package provides the the development files to use libgpod.
%package doc
License: LGPLv2.1+
Group: System/Libraries
Summary: Documentation for libgpod
Requires: %{name} = %{version}
%description doc
libgpod is a library meant to abstract access to iPod content. It
provides an easy-to-use API to retrieve the list of files and
playliststored on an iPod, modify them, and save them back to the iPod.
This package provides development documentation for libgpod.
%package -n python-gpod
License: LGPLv2.1+
Summary: Library to Manipulate Songs and Playlists Stored on an iPod -- Python Bindings
Group: Development/Languages/Python
Requires: python-mutagen
Provides: libgpod-python = %{version}
Obsoletes: libgpod-python < %{version}
%py_requires
%description -n python-gpod
libgpod is a library meant to abstract access to iPod content. It
provides an easy-to-use API to retrieve the list of files and
playliststored on an iPod, modify them, and save them back to the iPod.
This package provides python bindings.
%package sharp
License: LGPLv2.1+
Summary: Library to Manipulate Songs and Playlists Stored on an iPod -- .NET Bindings
Group: Development/Languages/Mono
%description sharp
libgpod is a library meant to abstract access to iPod content. It
provides an easy-to-use API to retrieve the list of files and
playliststored on an iPod, modify them, and save them back to the iPod.
This package provides .NET bindings.
%package tools
License: LGPLv2.1+
Summary: Tools for libgpod
Group: Development/Libraries/C and C++
Supplements: packageand(%{name}:udev)
%description tools
libgpod is a library meant to abstract access to iPod content. It
provides an easy-to-use API to retrieve the list of files and
playliststored on an iPod, modify them, and save them back to the iPod.
This package includes support tools for libgpod.
%lang_package
%prep
%setup -q
%build
%configure --with-pic \
--disable-static \
%if 0%{?suse_version} <= 1120
--with-hal-callouts-dir=%{_libexecdir}/hal \
%else
--enable-udev \
--without-hal \
%endif
--with-python=yes
make %{?jobs:-j%jobs}
%install
%makeinstall
%find_lang libgpod
rm bindings/python/examples/Makefile*
rm %{buildroot}%{_libdir}/*.la
%fdupes -s %{buildroot}
%clean
rm -rf %{buildroot}
%post -n libgpod4 -p /sbin/ldconfig
%postun -n libgpod4 -p /sbin/ldconfig
%files -n libgpod4
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README README.SysInfo
%{_libdir}/libgpod.so.4*
%files tools
%defattr (-, root, root)
%{_bindir}/ipod-read-sysinfo-extended
%if 0%{?suse_version} <= 1120
%{_libexecdir}/hal/libgpod-callout
%{_datadir}/hal/fdi/policy/20thirdparty/20-libgpod-sysinfo-extended.fdi
%else
%dir /lib/udev
%dir /lib/udev/rules.d
/lib/udev/ipod-set-info
/lib/udev/iphone-set-info
/lib/udev/rules.d/90-libgpod.rules
%endif
%files devel
%defattr (-, root, root)
%{_includedir}/gpod-1.0/
%{_libdir}/libgpod.so
%{_libdir}/pkgconfig/libgpod-1.0.pc
%files doc
%defattr (-, root, root)
%doc %{_datadir}/gtk-doc/html/libgpod/
%files -n python-gpod
%defattr(-, root, root, 0755)
%doc COPYING bindings/python/examples
%{py_sitedir}/gpod/
%files sharp
%defattr (-, root, root)
%dir %{_libdir}/libgpod
%{_libdir}/libgpod/libgpod-sharp.dll*
%{_libdir}/libgpod/libgpod-sharp-test.exe*
%{_libdir}/pkgconfig/libgpod-sharp.pc
%files lang -f libgpod.lang
%changelog